2 ms·
Verilog? ...just kidding (maybe). Assuming we're talking about a pure interpreter, pretty much anything that makes it straightforward to work with bytes and/o
by wk_end 1y ago
Verilog?
...just kidding (maybe).
Assuming we're talking about a pure interpreter, pretty much anything that makes it straightforward to work with bytes and/or arrays is going to work fine. I probably wouldn't recommend Haskell, just because most operations are going to involve imperatively mutating the state of the machine, so pure FP won't win you much.
The basic process of interpretation is just: "read an opcode, then dispatch on it". You'll probably have some memory address space to maintain. And that's kind of it? Most languages can do that fine. So your preference should be based on just about everything else: how comfortable are you using it, how much do you like its abilities to interface with your host platform, how much do you like type checking, and so on.