3 ms·
I'm no compiler writer, but presumably rust has some form of internal IR it compiles to before it gets turned into LLVM IR. Why not just write an interpreter fo
by lacampbell 9y ago
I'm no compiler writer, but presumably rust has some form of internal IR it compiles to before it gets turned into LLVM IR. Why not just write an interpreter for that layer and be done with it? The point of a REPL to me is to be responsive, not to run code amazingly quickly.
- steveklabnik 9y ago"Miri" is named such because Rust's IR here is called MIR. It's a relatively recent addition though.
- tatterdemalion 9y agoYes, thats what the second point is.