News for hackers. Stuff that matters.
Re:Reason ML toolchain by aaron-lebo on Tuesday February 06, 2018 @04:50PM (#16320196)
I came to this conclusion over the weekend. Really wanted to use one of those compile to JS languages, but after doing some interop and looking at their output, you're fighting the browser. Even Clojurescript, which is supposed to have has great code elimination will produce much bigger outputs then regular JS.

One way to look at it is immutable.js minified is 55 KB. That's about 5,000 lines of JS. If you're using a functional language, you've gotta bring along those immutable datastructures somehow, and 5k lines of Clojure is gonna output greater than 5k lines of JS.

Re:Reason ML toolchain by yawaramin on Tuesday February 06, 2018 @06:12PM (#16320856)
Keep a watch for the new Reason standard library, it will bring some stunning reductions in output code size. I mean, right now the output code size is about as minimal as you can get while looking like hand-written JS ... but what's coming might blow all the other immutable libs out of the water thanks to optimisations it can do using static typing information.
Re:Reason ML toolchain by iLemming on Wednesday February 07, 2018 @09:13PM (#16329656)
don't forget Clojurescript employs Google Closure compiler that has the best in the market dead-code elimination. Code on prod can be pretty small.