mratsim 2 months ago

I'm playing a lot with VM, interpreters, JIT and recently compilers in Nim.

Here is a JIT brainfuck VM:

Nim macros are extremely useful for assemblers and emulators as contrary to many codebases which needs to use an intermediate code generation step via text files [1][2][3] you can directly use them with type checking and all Nim facilities while keeping an easy to read syntax:

[1]: Xbyak -

[2]: NNPack + PeachPy -

[3]: Apache Milagro Crypto -