3 ms·
I played with JITs in Nim recently I found it quite enjoyable. Here is my mandatory Brainfuck VM[1] and this is my opcode tables and probably what I like best
by mratsim 8y ago
I played with JITs in Nim recently I found it quite enjoyable.
Here is my mandatory Brainfuck VM[1] and this is my opcode tables and probably what I like best about Nim metaprogramming[2]
[1]: https://github.com/numforge/laser/blob/9fbb8d2a/examples/ex07_jit_brainfuck_vm.nim https://github.com/numforge/laser/blob/9fbb8d2a/examples/ex0...
[2]: https://github.com/numforge/laser/blob/9fbb8d2a/laser/photon_jit/x86_64/x86_64_ops.nim https://github.com/numforge/laser/blob/9fbb8d2a/laser/photon...