Hacker News new | ask | show | jobs
by osrec 2210 days ago
Ah, understood. So, almost like Java compiling a class to bytecode before running in the JVM?
1 comments

Yes, something like that. Interestingly enough, Dart has a mode to compile to the AST, so that when you run it, the interpreter does not need to parse the text again and check the types, it just starts straight off an AST. The TS compiler and V8 could definitely do something similar.