What does HackerNews think of mir?
A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR
But in general it seems to be very hard to beat the bang for buck from generating C and compiling that - even with something simple like tcc
C kinda can be used as scripting language with MIR project https://github.com/vnmakarov/mir
It released version 0.1 just a few days ago, and I've successfully used it as an alternative and fast C compiler with Nelua.
GNU lightning succeeds in what it sets out to do, which is to offer a simple and minimal JIT code-generator. It offers nothing in the way of optimisation, by design. Most projects looking for a code-generator are looking for something with great optimisation built-in, so they're not wrong to go with LLVM or the JVM rather than GNU lightning (or something similar like Mir [0][1]). I don't think the average compiler would gain much by targeting GNU lightning.
With all that said, GNU Guile, a Scheme interpreter, uses a fork of GNU lightning, insufferably named lightening. [3]
[0] https://github.com/vnmakarov/mir
[1] https://lists.gnu.org/archive/html/lightning/2020-02/msg0001...
[2] https://wingolog.org/archives/2019/05/24/lightening-run-time...
"Plans to try MIR light-weight JIT first for CRuby or/and MRuby implementation"
"MIR is strongly typed"
Is there an explanation of how the project bridges the gap between dynamically-typed Ruby and statically-typed MIR?More generally, I'd love to see something like MRuby+MIR be successful. It would be great to see an alternative to the aging LuaJIT.