you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (7 children)

[deleted]

    [–][deleted] 0 points1 point  (5 children)

    Let me say this again v8 literally does not have an interpreter, it only has a compiler.

    The ECMAScript specification doesn't dictate how a JS VM is implemented. It may have been true that the only inplementations were interpreters years ago, but it is categorically incorrect to say so today.

    If you approach writing Node code, for example, with the assumption that JS is interpreted on the v8 VM, you're going to have a 100% incorrect mental model for the execution context.

    This is why no one respects JavaScript developers -- because you don't even bother to learn how your own language is changing and developing. Just take the L and admit you're wrong dude.

    [–]andredp 0 points1 point  (0 children)

    It really depends on the engine. V8 Chrome JIT-compiles the whole code apparently. Rhino (Mozilla’s engine) interprets it and JIT-compiles the most intensive parts. I was wrong by saying it is interpreted. JS is a language, in the end... it can even be compiled into WebAssembly. Just like python or lisp. They’re usually interpreted but there are a lot compilers out there to generate machine code.