News for hackers. Stuff that matters.
Re:MiniVM: A zero-dependency cross-language runtime on par w... by childintime on Saturday January 08, 2022 @09:22AM (#29851896)
This is a nice Forth-style bytecode interpreter, that is easy to generate code for. Close to WASM, but much simpler.

The thing that attracts me most is that the bytecode format can be easily translated to a more compact format, allowing it serve as an intermediate format for _many_ homegrown instruction sets.

So a GCC or LLVM backend needs to be on the roadmap. Code generation is a blast. Only the number of registers should be user-configurable to make this useful.

Re:MiniVM: A zero-dependency cross-language runtime on par w... by rahimiali on Saturday January 08, 2022 @04:54PM (#29856741)
In what way is this forth-like? The opcodes take immediates and registers as arguments, whereas forth-like would be much more stack-based than this, right?
Re:MiniVM: A zero-dependency cross-language runtime on par w... by jng on Saturday January 08, 2022 @05:33PM (#29857190)
The bytecodes aren't but the interpreter is, look up threaded code.