r/ProgrammingLanguages • u/Relevant_South_1842 • Mar 26 '26
Discussion MIR intermediate compiler
https://github.com/vnmakarov/mir
i have been looking at MIR as a JIT backend for a language I’m building. Tiny, fast startup, not LLVM. Looks almost too good. Has anyone here built something on top of it?
For my language. I am thinking of having two modes, compiled and dynamic (neither of which I want to touch). Luajit for the default/dynamic and compiled functions if typed. I was going to just (try to) do (subset of)c transpilation with tinyC but then found something smaller, and faster and maybe easier to use?
25
Upvotes
View all comments
Show parent comment
5
u/max123246 Mar 26 '26
Mlir with tablegen pretty much locks you into using C++ as well