News for hackers. Stuff that matters.
Re:Hard-won lessons: Five years with Node.js by josteink on Thursday April 20, 2017 @10:26AM (#14156901)
This is really simple. Do you use V8 to compile your code or to run it?

Just because V8 has a compiler, doesn't make it a compiler. Do you see the difference?

Re:Hard-won lessons: Five years with Node.js by beaconstudios on Thursday April 20, 2017 @10:48AM (#14157125)
V8 compiles code into bytecode and runs that. This is really simple.

V8 is a JIT compiler. It both compiles code and runs it. For your original complaint about not being able to compile JS up front, you're talking about Ahead-Of-Time (AOT) compilation. You don't seem very familiar with the relevant terminology.

In fact, I just looked it up and apparently V8 compiles JS directly to machine code rather than bytecode: https://en.wikipedia.org/wiki/Chrome_V8.

Re:Hard-won lessons: Five years with Node.js by slikts on Friday April 21, 2017 @04:18AM (#14163865)
V8 compiles to native code with the exception of low memory devices (512M or less), for which it has a (relatively recently introduced) bytecode compiler, so it uses an interpreter in that one case.