3 ms·
PureScript is a game changer. Compilation is fairly simple (unlike GHCJS), full Haskell'ish type system and modern/compact syntax, picked up a lot of momentum l
by cies 11y ago
PureScript is a game changer. Compilation is fairly simple (unlike GHCJS), full Haskell'ish type system and modern/compact syntax, picked up a lot of momentum lately.
It find it by far the best AltJS implementation currently available.
Have a look at the code implementing the transformer functions, so clean!
https://github.com/sharkdp/cube-composer/blob/master/src/Transformer.purs https://github.com/sharkdp/cube-composer/blob/master/src/Tra...
Nice demo!
- sharkdp 11y agoThank you! I started this project with plain JS + lodash, went on to JS + ramda and ended up using PureScript. I absolutely recommend it. I also have been using Haste before (Haskell to JavaScript), but I really like the lightweight architecture around PureScript, the super-simple FFI and the generated JS.
- cies 11y agoThanks for these insights. I used the Fay project to compile Haskell to JS for some time. But in the next overhaul I probably switch to GHCJS, as for my project interop with server-side Haskell code it a requirement. If I did not need that interop I go for PureScript in a heartbeat. CoffeeScript/TypeScript/ES6/Opal, they all don't come close to what PureScript delivers.