r/ProgrammingLanguages • u/KILLinefficiency • Jun 22 '26
Kal: An Interpreted Programming Language
Hey everyone!
After a roller coaster journey, I am proud to present my personal project: Kal.
Kal is a lightweight interpreted programming language that attempts at combining various paradigms of programming to give a great developer experience. It's written entirely from scratch in C++ with no third party dependencies. It's also completely free and open source distributed under GNU GPL v3 license.
Moreover, Kal can also be embedded into C++, Python and JavaScript programs to enhance your existing codebases.
Kal's Official Website: https://kal-lang.vercel.app/
Mirror: https://killinefficiency.github.io/KalWebsite/
GitHub Repository: https://github.com/KILLinefficiency/Kal
(Website looks better on a bigger screen.)
Please note that this is the very first release (v:0.1.0) and Kal is still under active development (alpha). I would really appreciate a star on the repository to help it gain greater visibility.
As a proponent of human effort, I am glad to say that Kal and its ecosystem is completely handcrafted with no AI/LLM assistance used anywhere.
One last thing, "Kal" is pronounced like "Cal" in "Calendar".
Please feel free to reach out to me regarding Kal!
8
u/KILLinefficiency Jun 22 '26
Per AutoModerator's request I hereby confirm that this project did not use an LLM as part of the development process.
6
u/oscarryz Yz Jun 23 '26
I like the language. I couldn't find how to express structs, but I guess the alternative is to use dictionaries?
I think I read most of the information on the website, but if you happen to have a Learn X in Y minutes style of page, that would be great. The documentation you have is complete, but some users ( like those in this subreddit) don't really need to know what a variable is. Nothing wrong with your current format, it just takes a bit longer.
Kudos!
5
u/elder_george Jun 23 '26
The language will hardly get traction among speakers of Slavic languages, because in many of them "kal" means "feces" or, at the very least, "mud" =(
Then again, every possible word likely sounds like a dirty word in one of the existing languages, so don't let this discourage you!
2
u/Blyfh Jun 23 '26
You have a typo in this example:
I like the period as a statement delimiter. It's clean. Reminds me of Prolog!
I also think you're missing an "is null" here:
If functions can be invoked before their declaration, what happens if I do this?
Just looping infinetely?
Also, I don't really see the use for inert. It seems to be be like a one-time function call that's implicitly fixed to some parameters/variables. Changing the variables beforehand can lead to unexpected side effects if these variables are used in intert variables. I'd find it better if intert takes a "snapshot" of its given variables, copying their value so that changing them later on won't affect the inert variable evaluation.
Overall I really like the syntax! It's clean and intuitive. I'm a big fan of Haskell's zero-paren parameter syntax, so seeing it used here in statements and function calls is nice. :)
2
u/AnArgFan Jun 24 '26
I like kal's loop It's look like my own languages loop
2
u/MoreSecurity3297 Jun 29 '26
Cool stuff! Are there any specific use cases where you feel kal outshines python and/or typescript?
3
u/6502zx81 Jun 22 '26
The project's site forces dark mode and small fonts on me. Also, I didn't see exsmple code. So I moved on.
2
u/[deleted] Jun 23 '26
[removed] — view removed comment
2
u/[deleted] Jun 24 '26 edited Jun 24 '26
[removed] — view removed comment