4 ms·
What makes you think Haxe is simpler to compile than these two?
by agersant 12y ago
What makes you think Haxe is simpler to compile than these two?
- TazeTSchnitzel 12y agoHmm, well. For emscripten, the code is run through the C preprocessor, then clang and LLVM have to sucessively "lower" it several times, and then generate asm.js. Haxe, on the other hand, is a high-level language that could be compiled to JavaScript much more simply. But then, I'm not sure why Dart would be slow, then, given it's also quite high-level. Tree-shaking of the standard library? Having to compile the standard library?
- seabrookmx 12y agoHaxe is multi-targeted. It compiles to PHP, C++, Neko Bytecode, etc. Being a high-level language, and using the same compiler infrastructure, it would have to be transpiled into a fairly low-level IR for the consumption of the various backends before being spit out as JS again. I think the fact that its high level makes it much LESS simple. It definitely isn't just mapping Haxe constructs to JS. It is much too feature rich.