Is anybody use Data Structure Interpretation techniques in Nim?
I'd like to see source code samples for things like eval/apply, bytecode interpreting, objects message passing engines, or maybe some more complex methods like interpreting object graphs, or implementing DataFlow at the metaprogramming level.
Byte code interpreting is done in the Nim compiler itself:
https://github.com/nim-lang/Nim/blob/devel/compiler/vmdef.nim#L25 https://github.com/nim-lang/Nim/blob/devel/compiler/vm.nim https://github.com/nim-lang/Nim/blob/devel/compiler/vmgen.nim
But it's production code, not example code.
And the experiments I did before jumping the gun, with about 12 steps of growing complexity:
For message passing between multiple threads you can use Nim channels or my research project on a new Nim multi-threading runtime:
For async channels you can have a look here: https://github.com/status-im/nim-chronos/pull/45
Regarding bytecode interpretations: