dragome-sdk icon indicating copy to clipboard operation
dragome-sdk copied to clipboard

When will asm.js support be available?

Open mirkosertic opened this issue 9 years ago • 7 comments

I'd like to compile an application to asm.js. When will support for this be available, or is it already?

mirkosertic avatar Nov 06 '14 20:11 mirkosertic

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?

fpetrola avatar Nov 06 '14 20:11 fpetrola

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.

mirkosertic avatar Nov 07 '14 16:11 mirkosertic

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.

fpetrola avatar Nov 08 '14 00:11 fpetrola

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.

ghost avatar Apr 11 '16 10:04 ghost

http://asmjs.org/spec/latest/#annotations

ghost avatar Apr 11 '16 17:04 ghost

What about garbage collection in asm.js?

fpetrola avatar Apr 11 '16 20:04 fpetrola

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?

ghost avatar Apr 11 '16 20:04 ghost