So while going through the list of examples, such as this one: http://try.purescript.org/example/arrays .. I wonder how optimized that JS is. It looks ridiculous long (and slow) to just add and multiply two variables together in a list…. I’d love to see what that looks like in v8…
Yes, arrays in PureScript are immutable which can lead to some unusual JavaScript. This is probably not a great example to include on the Try PureScript code. Performance-critical code using arrays should probably use mutable arrays in the form of STArray.
So while going through the list of examples, such as this one: http://try.purescript.org/example/arrays .. I wonder how optimized that JS is. It looks ridiculous long (and slow) to just add and multiply two variables together in a list…. I’d love to see what that looks like in v8…
Sounds cool though…
Yes, arrays in PureScript are immutable which can lead to some unusual JavaScript. This is probably not a great example to include on the Try PureScript code. Performance-critical code using arrays should probably use mutable arrays in the form of STArray.
So is the only documentation for this a $10 ebook? None of the other links on the main site appear to have much substance.
Seriously.
This was posted in HN: https://leanpub.com/purescript/read
The book is free to read online.
The link called “Documentation” points here: http://purescript.readthedocs.org/en/latest/ - pretty thorough, I think?
How about a 10-minute quickstart?
My point is that the barrier to entry is needlessly high with an enormous eBook.
https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=purescript+tutorial
Which included links such as:
http://www.purescript.org/posts/First-Steps/ http://curtis.io/posts/purescript-for-web-development.html
There are also pre-baked ready-to-go grunt/bower projects on Github for getting going quickly with PureScript.