3 ms·
For those like me who didn't know: https://bun.sh/ https://bun.sh/. "Bun is a fast all-in-one JavaScript runtime. Bundle, transpile, install and run JavaScrip
by mwexler 4y ago
For those like me who didn't know:
https://bun.sh/ https://bun.sh/. "Bun is a fast all-in-one JavaScript runtime. Bundle, transpile, install and run JavaScript & TypeScript projects — all in Bun. Bun is a new JavaScript runtime with a native bundler, transpiler, task runner and npm client built-in."
- tantalor 4y ago"Run TypeScript" is misnomer, unless I'm missing something, it compiles TS -> JS and "runs" that.
- lioeters 4y ago"Run JavaScript" is a misnomer, it compiles JS -> bytecode and "runs" that.
- seanw444 4y ago"Run bytecode" is a misnomer, it compiles bytecode -> machine code and "runs" that.
- cheeselip420 4y ago"Runs machine code" is a misnomer, the CPU will translate machine code to microcode and "run" that.
- tantalor 4y agoIt 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-killers#4-switch-case https://github.com/petkaantonov/bluebird/wiki/Optimization-k...