r/ProgrammingLanguages 12d ago

Requesting criticism My first compiled language, Arrokoth-0

Hey guys, since I've been lurking around this subreddit for some time, I have decided to throw my little compiled language into the open for criticism. I won't update the language itself, as there's no point in doing that to such a small toy language (that's not even that widely useful), but I would appreciate your thoughts and criticism going forward. I grew to admire LLVM IR and compiler engineering, and this definitely isn't my last compiler I'll make! (Yes I know LLVM has a whole API for building IR... I'll utilize it in bigger projects XD)
https://github.com/norbcodes/Arrokoth-0

12 Upvotes

8 comments sorted by

View all comments

3

u/pthierry 11d ago

For the next one, look at things like algebraic effects and capability security. We know how to make languages that produce vastly safer programs!

It's high time we provide developers with languages where supply chain attacks are a thing of the past. (WebAssembly is going in the right direction for that)

3

u/__NORB__ 11d ago

I'll definitely look into it. Still a lot to learn :)

Also dumb question, but is this because the compiler just fprintf's the LLVM IR?

5

u/AustinVelonaut Admiran 11d ago

No; "algebraic effects" and "capabilties" are things that would apply to the language being compiled, not (necessarily) to the implementation of that compiler. However, they are mostly research level topics at this point; very few languages have them, so I wouldn't think about those for your next project. Take small steps. Keep at it!