|
|
|
|
|
by NinjaWarrior
4824 days ago
|
|
> I would imagine that people would rarely write asm.js code, but instead they would generate it from statically typed languages (TypeScript, Dart, Haxe). Current asm.js is just for C/C++. Those altJS languages can't make use of asm.js (Haxe->C++->LLVM->Emscripten->asm.js might be possible but I think it's meaningless). asm.js is the answer of Mozilla for "the web standards can't handle AAA games" but I believe this is far from an ideal solution. And I agree with the worry of the poster that this ugly hack makes JavaScript more ugly, both on the specs and VMs. To be honest, I trembled when I saw the Math.imul proposion to see how some people are so obsessed with JavaScript... |
|
There is already asm.js support for lljs, some thoughts on support in things like JSIL (C#) and Haxe (as you mentioned).
And in principle anything that compiles to LLVM IR or C/C++ would work through emscripten.