HN user

gb

682 karma
Posts17
Comments126
View on HN

PureScript isn't just for business logic at all - it has its own UI libraries, React bindings, DOM API bindings, and so on. It is more often used for front-ends than anything else that I've seen.

You only need to use one of spago or bower (spago being the recommended choice now), and that's because npm style dependencies are not suitable for PS.

As for why you'd choose it over TypeScript... well, you'd do so if you want to use a functional language that doesn't allow arbitrary effects and has a sound type system.

Really nice. I tried something like this many years ago in Flash, but the results this can produce are far more impressive!

The article did mention it:

Dematerialization is an idea that goes back at least as far as the 1920s (with R. Buckminster Fuller’s concept of “ephemerialization”)

An advantage of using the most general signature possible is it restricts the things you can actually do with the values involved, which can make it easier to provide correct implementations.

Java Developers 12 years ago

The main advantage is when doing something like this is Haskell the code you pass around can't have arbitrary side effects, so you don't actually need to worry so much about where it is called.

The exact quote from the linked BBC article is:

"In the most serious crimes [such as] child abduction communications data... is absolutely vital. I love watching, as I probably should stop telling people, crime dramas on the television. There's hardly a crime drama where a crime is solved without using the data of a mobile communications device."

Lifting for strength and lifting for large muscles are actually quite different. It is likely a huge bodybuilder type will be strong relative to the average person, but that's not their primary goal, and correspondingly you can be strong without that look too.

Certainly delete can be useful, but nulling a property has almost the same effect (apart from hasOwnProperty still returning true) - if you're looking at optimising at the level this article is talking about avoiding delete might well be sensible.

Coincidentally I just started working on one last weekend too. http://github.com/garyb/fiction

It's more Scheme influenced (but not at all RnRS compliant) and as of about half an hour ago has working define-syntax/syntax-rules style macros.

The code isn't as nice though ;). I just wanted to get it working so I could rewrite it in itself.

I didn't read it is arrogance, he's contrasting the praise he was receiving at the time with his own opinion of Paul Rand's genuis.

Clearing or filling large areas of <canvas> is cripplingly slow in every browser I've tried so far, so I'd assume it's that.

Hopefully that'll be worked on at some point in the not too distant future as it's one of the biggest problems I encounter when dealing with canvas at the moment.

Pretty sure this the pentatonic scale actually - so all black notes. It almost certainly woule be more cacophonous even if it was just all white notes, never mind the full scale.

Justified text is hard to get right as it needs typographic attention to prevent rivers or loose lines appearing - something that's not going to be realistic in the flexible layouts of the web.

Also, apparently dyslexic people have a particularly hard time reading justified text, but I don't have any good sources for that.