r/Compilers • • Jun 01 '26

Programming Language Without LLVM

Is it possible to build a new system programming language without LLVM? Can language have simple syntax? What if a tiny compiler installs packages and compiles code fast?

https://rux-lang.dev/blog/language-without-llvm

0 Upvotes

13 comments sorted by

View all comments

Show parent comment

3

u/Inconstant_Moo Jun 01 '26 edited Jun 02 '26

Do you realize what this means?!

Of course he does, this is why he uses the word "currently" in the very sentence you quoted, and lists it again further down under "what's missing" and "current limitations", and promises that "a proper allocator is next".

They built 10 separates stages for a compiler that doesn't even optimize register usage!

They built 10 separates stages for a compiler that's going to optimize lots of things. It appears that OP is one of those alien creatures who actually designs their architecture before they start implementing their features, instead of doing all the fun stuff first and then refactoring everything twelve times like normal people do.

What on earth are we talking about here?!

The docs explain what they're talking about to the extent of saying which international standards the types satisfy and why they're implemented. E.g: "float128 : Quadruple-precision according to IEEE 754. Useful for compensated summation, high-accuracy numerical integration, and as a reference implementation when validating lower-precision algorithms. Software-emulated on most hardware."

This looks suspiciously like human beings doing a really good job of software engineering.