Yeah, please don’t abandon current hand written interpreter.
I couldn’t find any public documentation of how to use MIR or what’s the language about (it seems pretty preliminar, plus there’s a warning that says that it’s not used for production) so I won’t do anything for now.
Very true. MIR is not complete yet, but has been in development for quite a while.
Here is some guy using it since 2019 for some language and seem to be impressed by performance First use of MIR JIT in Ravi
And c2mir in MIR project itself can also be considered as kinda docs on how to use it :)
MIR author mentioned LLVM API instability. I think it means he’s going to make MIR API very stable. Also MIR is very small compared to LLVM.
What I see people who use LLVM for their language implementation are tired of LLVM API instability, difficulties to support different versions of LLVM, LLVM size and compilation speed, difficulties to get review of their patches for LLVM, etc.