7 ms·
This is very good. Thank you for writing this and sharing this. I began writing a multithreaded interpreter. I just use strings for instructions to begin with
by samsquire 4y ago
This is very good.
Thank you for writing this and sharing this.
I began writing a multithreaded interpreter. I just use strings for instructions to begin with. Adding bytecode support would be straightforward.
Then I began writing a compiler for a high level language and the codegen targeting the interpreter. The language looks similar to JavaScript and I plan to add multithreading support that the interpreter supports.
Code is here
https://GitHub.com/samsquire/multiversion-concurrency-control https://GitHub.com/samsquire/multiversion-concurrency-contro...
There was a very interesting article about Deegen a generated Lua interpreter.
Java's template interpreter is interesting too.
HolyC is interesting since it compiles at runtime and then runs the code.