Hacker News new | ask | show | jobs
by ohhmaagawd 4464 days ago
Why is compile to JavaScript any different than compile to byte code? Is the "frail" comment from experience or intuition?
1 comments

You'd think this would be obvious. It's an inefficient and poorly designed "bytecode":

- The only number representation available is floating point.

- Concurrency is impossible except for the nearly useless web workers API; this prevents a language author from exposing any other type of concurrency mechanism.

- Anyone wishing to implement the "byte code" specification must implement or integrate a full Javascript parser and runtime.

On top of that, you have no control over memory management (which makes properly implementing lots of languages impossible).