Hacker News new | past | comments | ask | show | jobs | submit login

Best of luck... ;-P

Seriously, asm.js already comes pretty close to a standardized VM at a low level. But we intend to grow it to include integration with structured binary data and GC, to the point where it'll provide very similar functionality to VM's like the JVM or CLR.

The big real-world benefits of asm.js over a boil-the-ocean VM are that (a) the content is already 100% compatible and quite highly optimized in existing browsers and engines, and (b) it's far easier for engines to implement on top of their existing technology.

The biggest downside is that the syntax is weird. But that's just not a big deal for compilers. They can generate whatever weird syntax they want. You could even implement your preferred bytecode format as an IR and compile that to asm.js if you wanted, but I'm not sure compiler-writers would even care that much. They'd do just as well to have IR data structures in the internals of their compiler, without needing a special surface syntax for it.




I am getting the feeling that marketing asm.js needs to emphasize a few things:

- It is JS.

- It is effectively an IL for every JS backend.

- It is constructed to contain proven equivalences with familiar models in advance.

To me these points alone suffice shut down the standard bytecode idea by either meeting or exceeding it everywhere. Finally:

- Today.

Nothing needed breaking to build it. You've got your eggs and omelet too.

Edit: format.


>> "To me these points alone suffice shut down the standard bytecode idea by either meeting or exceeding it everywhere."

Today




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: