Better HN
topnewbestaskshowjobs
Log inSign up

dddbbb

348 karma · joined Jan 27, 2020 (6y ago) · 54 submissions

Submissions

comment 6y ago · link · parent

That's still coming via the API. They may be blocking any large chunks of text from being reproduced, rather than individual characters (which would be harder to police).

comment 6y ago · link · parent

They used to be custom machines. Now they are just what you say, software and a keyboard.

comment 6y ago · link · parent

But the example the poster you are replying to gave shows that GPT-3 can take the square root of a user-defined function composed with itself. It clearly can perform arithmetic, and we don't need to trust OpenAI now that users can interact with the model.

comment 6y ago · link · parent

The type signature of division in Haskell merely requires that it takes two fractional `a`s and returns another `a`.

  1 / 0 :: Double
evaluates to Infinity.

  1 / 0 :: Rational
throws a runtime exception. A division by zero producing zero would be perfectly sensible in Haskell, and perhaps even desired if you are totally averse to runtime errors. The Pony language infamously does this.

comment 6y ago · link · parent

One of the authors, Philip Wadler, contributed heavily to the design of Haskell. So I presume it's friendly joking.

comment 6y ago · link · parent

I honestly think that Haskell's combined speed/correctness/maintainability is exceptional, none is in isolation, but I can't think of any reasonably production-ready language that has such a great combination of all three.

comment 6y ago · link · parent

The oldest person in the world was born in 1903, before George Orwell, Frida Kahlo and Lyndon Johnson. It's genuinely hard to fathom.

comment 6y ago · link · parent

Yes, but the author is a student making use of their open source software. I think that's in the spirit of hacking.

comment 6y ago · link · parent

I work at a large tech company on a young team (average age is late twenties). In my experience many don't view working from home regularly as a benefit. I understand that must change drastically when you're middle aged, have a family to live around and a spacious house in the suburbs. But most younger people want to live in the middle of the city (i.e. small, often shared apartments but a short commute) and have no responsibilities outside of work, in this situation WFH loses a lot of its lustre.

comment 6y ago · link · parent

I agree, I also think there is some weirdness going on with the 'we can presume it has infinite memory'. There seems to be many assumptions of different strength all waved with that same phrase, depending on the system in question.

comment 6y ago · link · parent

Are those not submitted by the people themselves to aid in their job search?

comment 6y ago · link · parent

I find those quite odd. It seems overly ornate compared to the rest of the font, which doesn't even contain the 'fi' ligature.

comment 6y ago · link · parent

Why would you make a comparison by gzipping one and not the other? Running gzip on the msgpack example reduced it from 304 to 248 bytes.

comment 6y ago · link · parent

It doesn't mesh well with the retweet functionality if a user can retroactively change the content.

comment 6y ago · link · parent

Well that is the first line of the article... But yes, I wonder how it will fit into the Twitter ecosystem. The two most successful implementations of this are Snapchat and Instagram: Snapchat was only a communication platform before stories, and Instagram profiles tend to be very deliberate and curated. Neither of these really apply to Twitter.

comment 6y ago · link · parent

  partition p xs = foldr (select p) ([],[]) xs
  select p x ~(ts,fs) | p x       = (x:ts,fs)
                      | otherwise = (ts, x:fs)
That is the entirety of `partition` in the standard library.

comment 6y ago · link · parent

The paper you linked shows that one Haskell implementation does not exactly correspond to a specific algorithm, then gives an alternative definition which does correspond. What does that have to do with the statement 'Haskell is not math'?

comment 6y ago · link · parent

Plenty of serious researchers in top universities are studying the intersection of mathematics and functional programming, and I don't think that they're somehow not 'real mathematicians'.

Here's a paper by the author of this post, formalising a popular Haskell pattern in category theory: https://arxiv.org/abs/2001.07488

EDIT: switched to non-PDF link.

comment 6y ago · link · parent

The phrase appears 6 chapters into a graduate mathematic text on category theory. If one reads the preceding chapters, it is a useful but pithy explanation for what a monad is, using terms which have all already been covered. Its use outside of that context is basically just a joke towards the Haskell community being overly mathematical.

comment 6y ago · link · parent

> An employee familiar with the planned move said that British privacy rules, which at least for now track GDPR, would continue to apply to that government’s requests for data from Google’s U.S. headquarters.

It quite literally says the opposite of that. I don't think Google could continue to do business in the UK if they just ignore regulation, nor could they ask users to waive their own rights.

All this seems to be is moving the location at which data-related requests for the UK are handled, which is probably because the Irish office is smaller and it is easier to keep them focussed solely on EU law.

comment 6y ago · link · parent

They explicitly say in the introduction that this is a toy version, and then in the conclusion that a future post will look at a more complete substitute.

comment 6y ago · link · parent

Dhall[1] is a similar concept, though instead of augmenting a particular format, it is an implementation of a simple pure functional programming language (with a very expressive type system which guarantees termination). Dhall programs can then be evaluated to several different formats (currently JSON, YAML and XML).

[1]: https://dhall-lang.org/

comment 6y ago · link · parent

They use the map emoji (️), the display is implementation dependent. New Zealand appears for me on my Mac, though I have to zoom a lot to see it.
12