r/Compilers • u/dynamicship31 • Jun 01 '26
So I actually started developing it
I understand that I previously stated that I wouldn't build Kenim but since I saw nobody was interested in it I decided to start developing it myself ig. I am now currently working on the parser for Kenim. My main problem will be deciding the backend: llvm? qbe? straight asm?
Could u guys atleast suggest the backend to use?
0
Upvotes
View all comments
Show parent comment
2
u/Inconstant_Moo Jun 02 '26
let x = int 5;
let x = int 3;
Under the hood, this is just creating new immutable bindings. You can think of it as:
x1 returns 5
x2 returns 3
But what good does that do to anyone? You've made variables mutable in the semantics of the language, and then you tell me it's fine because you've created new immutable bindings "under the hood", where no-one can tell. You say yourself: "From the developer's perspective they're redeclaring a variable, but nothing is actually being mutated". But the point of immutability of variables is to protect the developer from mutability, not the underlying implementation.
If you don't understand that, then you're trying to write a functional programming language while not understanding what one is or what the point is of having one. And I have to agree with u/jessepence's guess. You had some half-formed ideas and you talked to them with an LLM that told you you were inventing an exciting new paradigm and then helped you develop it --- badly.
What you're actually doing is trying to reinvent the wheel only you're making it square. It's not a bad stab at it for someone whose first language is Fortran; nonetheless, if you want to make a contribution to langdev, you need to step outside the AI bubble you've made for yourself and look at what some human beings have already thought of over the last seventy years or so.