Forth in Rust: vm opcode, indirect threaded code, decently fast, < 2000 lines of code


I’m looking for a “Forth in Rust” impl worth reading / studying. Goals are:

  • < 2000 lines of code (< 500 would be even better)
  • uses a VM / op code, uses indirect threaded code
  • decently fast
  • readable code

Suggestions ?



Welcome to Rust :wink:

On the top of my head I don’t know of any, but there is this (incomplete) list of programming languages inplemented in Rust (you seem to be interested in implementations):

Update: Searching for “Rust Forth” showed up these:

And some discussion:

I haven’t checked any of these but I hope they help you.