r/Compilers • u/MrTomatoes32 • 2d ago
My Programming Language
Hey everyone! In my last post, I briefly mentioned that I've been tinkering with my own programming language. Well, it's finally time to properly introduce it: Meet - Kir.
Kir - is a statically typed language built completely from scratch - including its own custom compiler and virtual machine. My goal was to create something with a clean, readable syntax (heavily inspired by Kotlin, which I've used a lot) while giving the language its own distinct identity.
Here’s a quick taste of what it looks like:
fun calculateDamage(base: int, multiplier: float): float {
let damage = base * multiplier
return damage
}
fun main() {
let baseDamage = 25
let multiplier = 1.5
let result = calculateDamage(baseDamage, multiplier)
}
The project is still under active development as I flesh out features, optimize the architecture, and nail down the design. I'm aiming to drop the first public version in 2027.
Super excited to share more updates as things come together! What do you guys think?
5
2
u/PhosXD 2d ago
What are the goals of your language?
What are the problems it is looking to solve that other languages don't do better?
Do you have a foundational direction or a core idea that your language revolves around? If so, can it be practically applied in the field(s) you mean it to be?
Answer those questions to yourself & I think you will better understand what you want or should do with this project!
From what I can see, *syntactically* this looks very familiar (which is a good thing, if that's what your going for) & it does look clean though everyone has their own opinions on what is best. Also as another comment said, there isn't much of an example to go off of, we cant really see the strengths & weaknesses of the language structure. I for one have a lot of questions, like do you support modules? How deep does the typing system actually go (can you define custom types & extend existing one?). How is memory managed? Do you use garbage collection & reference counting?
3
-1
9
u/SnooHobbies950 2d ago
Could you explain to us what makes your programming language special? The example is not particularly revealing.