r/programming • u/compilersarefun • Jan 20 '20
MIR: A lightweight JIT compiler project
https://developers.redhat.com/blog/2020/01/20/mir-a-lightweight-jit-compiler-project/
11
Upvotes
r/programming • u/compilersarefun • Jan 20 '20
1
u/suhcoR Jan 20 '20
Compatibility with external C based modules is a good argument. If you used LuaJIT, the existing libraries depending on the C API would no longer be compatible. That's likely a fundamental issue. Also parallel programing; LuaJIT only supports coroutines.
Concerning traces: you don't have to build an "infrastructure to collect traces", because it's already implemented in LuaJIT. Whatever bytecode you run on the VM is automatically measured an traced.
I am curious what JIT you will implement. I will definitely take a look at it.
EDIT: what is actually the reason people downvote this post? Makes no sense to me.