3 ms·
FWIW:BuckleScript(https://github.com/bloomberg/bucklescript https://github.com/bloomberg/bucklescript) is to my knowledge the only compiler which compiles an ex
by hongbozhang 10y ago
FWIW:BuckleScript(https://github.com/bloomberg/bucklescript https://github.com/bloomberg/bucklescript) is to my knowledge the only compiler which compiles an existing language(not a language designed for compilation to JS) to JS without name mangling.
It is a serious piece of work, the compiler is compiled to JS too, so you can play it in the playground(even work offline):
https://bloomberg.github.io/bucklescript/js-demo/ https://bloomberg.github.io/bucklescript/js-demo/
It also generates very small code output, for example `hello world` is 20 bytes instead of 100K bytes