Hacker News new | ask | show | jobs
by lioeters 1393 days ago
"Run JavaScript" is a misnomer, it compiles JS -> bytecode and "runs" that.
2 comments

"Run bytecode" is a misnomer, it compiles bytecode -> machine code and "runs" that.
"Runs machine code" is a misnomer, the CPU will translate machine code to microcode and "run" that.
It might, if the code can be optimized. There are all sorts of reasons why it might not. For example, at one point in time, a switch statement with more than 128 cases could not be optimized.

https://github.com/petkaantonov/bluebird/wiki/Optimization-k...