4 ms·
You might find something interesting if you were to look at virtual-machines - many are used for implementing scripting-languages, so while you'd not be writing
by stevekemp 4y ago
You might find something interesting if you were to look at virtual-machines - many are used for implementing scripting-languages, so while you'd not be writing assembly-code, you'd be writing "bytecode" programs.
You could write bytecode for Lua, or bytecode for Python for example.
I had a fun few weeks writing a simple virtual-machine, and a "compiler" which turns a simple assembly-language-like input into bytecodes which are then interpreted:
https://github.com/skx/go.vm/ https://github.com/skx/go.vm/
Other examples, along with lua/python which were already mentioned, might include "Writing a compiler in go" this turns a scripting-language into a set of opcodes which a VM executes:
* https://compilerbook.com/ https://compilerbook.com/