dragome-sdk
dragome-sdk copied to clipboard
When will asm.js support be available?
I'd like to compile an application to asm.js. When will support for this be available, or is it already?
It's not available yet, I don't know how much effort would be required to implement this. Is asm.js available in several browsers or just Firefox?
ASM.js is basically a JavaScript subset, so it is available by all modern browsers. Firefox and the Chrome V8 engine have already very optimized JIT-Compilers for this purpose.
Some research over asm.js told me there is no automatic memory management such as a garbage collector, you need to handle memory manually. So it seems more complicated than I thought, may be bytecode conversion is not the most difficult part to adapt, introducing garbage collector functionality could be harder.
Type mechanism introduced with the ASM.js could be used to help JIT capable Javascript engines to run faster which eliminates a lot of overhead on type determination of variables.
http://asmjs.org/spec/latest/#annotations
What about garbage collection in asm.js?
I believe there is no need to manage memory if asm.js is used only for annotating types. Benefits of using asm.js for only type annotation are arguable. I have no data on that front the back the benefits up. For example, would the performance increase be significant or minuscule?