News for hackers. Stuff that matters.
Re:What asm.js is and isn't by derefr on Thursday June 20, 2013 @04:18PM (#5914660)
To put it another way: asm.js is not separate virtual machine; it really is "just Javascript", both in intention and when executed.

But it is a separate abstract machine with its own formal semantics, including its own type system et al.

Don't get confused: you can treat anything as an abstract machine and formalize its semantics. For example, "x86 minus the PUSH and POP instructions" could be formalized as an abstract machine that you can work with. The resulting machine only exists on the level of formalism; you might actually execute the code you're written for this machine on an x86, just having not emitted any LOADs or STOREs. In the same way, targeting the asm.js abstract machine doesn't mean there has to be an asm.js VM: the formalism just targets a subset of Javascript that current Javascript VMs already have useful optimizations for.

There are no comments on this comment yet.