3 ms·
Uh... does this list of "languages that compile to Javascript" count? :) https://github.com/jashkenas/coffeescript/wiki/list-of-languages-that-compile-to-js ht
by acemarke 9y ago
Uh... does this list of "languages that compile to Javascript" count? :) https://github.com/jashkenas/coffeescript/wiki/list-of-languages-that-compile-to-js https://github.com/jashkenas/coffeescript/wiki/list-of-langu...
More specifically, Emscripten seems to be exactly what you're describing: https://github.com/kripken/emscripten https://github.com/kripken/emscripten
- mmanulis 9y agoThese are more like transpiling, right? That is, there is a direct translation from <language> into JS? I was thinking more along the lines of how a compiler works, translating into some kind of AST and then converting into JS from the AST.
- acemarke 9y ago"Transpiling" _is_ compiling. The term is just used to refer to output that is another high-level language, rather than some kind of assembly or bytecode. While I haven't looked at the implementations of any of those compilers, I would assume that most of them do actually parse their source language into an appropriate AST, and write out JS based on that AST.
- mmanulis 9y agoGot it. Thanks for the links too, helps to get some context around this.