3 ms·
If you defer the actual execution of the code to something else - another VM, a CPU directly, whatever, it is not an interpreter, it is just a compiler. Definit
by sklogic 10y ago
If you defer the actual execution of the code to something else - another VM, a CPU directly, whatever, it is not an interpreter, it is just a compiler. Definitely not the kind of interpreters being discussed in this thread.
If you have to implement this VM interpreter and all the runtime on your own, this is exactly where the hard part starts.
- AnimalMuppet 10y agoSo by "interpreter" you mean "sandboxing interpreter" or something like it? OK, I can buy that doing that is harder than just emitting code...
- sklogic 10y agoBy interpreters here I mean this kind: https://news.ycombinator.com/item?id=11755303 https://news.ycombinator.com/item?id=11755303 I.e., an ad hoc AST-level interpretation, flat VM interpreters, tracing JITs, etc.