Wondering how I can make a reasonably fast VM interpreter in rust. Typically a statically typed language would be compiled to bytecode, without type information (like Java). But this would seem to involve a lot of unsafe when interpreted, no?
I'm aware of Miri as something to look at, but it doesn't seem to be performance-oriented (is that right?).
Ok, reading here (transmute in std::mem - Rust) I guess I can reinterpret certain types without being unsafe. So all my loads into VM registers can be done with from_ne_bytes. Perhaps I'm good to go