Re:JavaScript libraries should be written in TypeScript
by pka on Wednesday March 16, 2016 @01:07PM
(#11298883)
Just for the obligatory record: Purescript is basically "Elm evolved". Everything Elm does, Purescript does better (FFI for example is such a chore in Elm). Drawback: the learning curve is basically as steep as Haskell's.
Re:JavaScript libraries should be written in TypeScript
by skeeterbug on Wednesday March 16, 2016 @03:30PM
(#11300031)
My experience with Purescript/pulp was rather negative. Basic commands were throwing errors (pulp init IIRC) so I decided to not even consider it for anything serious.
Re:JavaScript libraries should be written in TypeScript
by pka on Wednesday March 16, 2016 @04:02PM
(#11300241)
The tooling is not perfect, that's absolutely true. I have to say though that any imperfections (which are going to get fixed anyway) are well worth it if you want a pure strongly typed language for the web. There's simply nothing better (except the full-blown Haskell-to-js compilers, like GHCJS and Haste of course).
I recommend you try again and file a bug or look for help in irc if something breaks again (although I've never seen pulp init throw an error).
Re:JavaScript libraries should be written in TypeScript
by skeeterbug on Wednesday March 16, 2016 @06:16PM
(#11301101)
My memory could be off (on which command failed). I think I still have the repo on my home machine, so I could re-visit and file a bug report. At the time I kept pursuing elm instead. Reports of better FFI with JS is why I had explored PureScript.
Re:JavaScript libraries should be written in TypeScript
by skeeterbug on Thursday March 17, 2016 @01:37AM
(#11302766)
Update: The bug is with pulp server https://github.com/bodil/pulp/issues/133
Details about our experience with Elm in production: https://www.youtube.com/watch?v=R2FtMbb-nLs