Hacker News new | ask | show | jobs
by tantalor 1394 days ago
"Run TypeScript" is misnomer, unless I'm missing something, it compiles TS -> JS and "runs" that.
1 comments

"Run JavaScript" is a misnomer, it compiles JS -> bytecode and "runs" that.
"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...