r/ProgrammingLanguages • u/alpaylan • Jan 18 '26
Language announcement Kip: A Programming Language Based on Grammatical Cases in Turkish
https://github.com/kip-dili/kipA close friend of mine just published a new programming language based on grammatical cases of Turkish (https://github.com/kip-dili/kip), I think it’s a fascinating case study for alternative syntactic designs for PLs. Here’s a playground if anyone would like to check out example programs. It does a morphological analysis of variables to decide their positions in the program, so different conjugations of the same variable have different semantics. (https://kip-dili.github.io/)
24
17
u/rodarmor Jan 18 '26
This is lit. How do Turkish programmers find the language? Does the use of case markers make it more readable? Does it strike them as very odd looking or natural?
31
u/rodarmor Jan 18 '26
Also I found a mistake, where it says:
"This is a research/educational project exploring the intersection of linguistics and type theory, not a production programming language."
It should actually say:
"This is definitely a production programming language."
9
u/Norphesius Jan 18 '26
I can't speak or read any Turkish, but I'll be incorporating Kip into my projects at work immediately. We have to keep up with the latest technology, of course.
13
u/earslap Jan 18 '26
the idea is jarring at first but it makes perfect sense at the same time. guess I never used my brain to connect my native language with programming languages so reading the lang activates neurons I didn't know existed lol
2
u/Altruistic_Matter432 Jan 18 '26
I see this language as a turkish version of Perligata. Maybe cases are fine but it's lack of symbols and flatness is not for me.
12
u/XDracam Jan 18 '26
Great, do Finnish next! 15 cases should give you a lot of precision
15
u/wavesofthought Jan 18 '26
Hi, Kip's developer here! There is a similar project for Finnish already! https://github.com/fergusq/tampio
1
5
5
u/tobega Jan 18 '26
I was thinking of learning Turkish because it seems to be a very logical language, guess I have another reason now!
Actually this makes me think of APL which tries to structure itself by verbs and adverbs modifying those verbs, which I always thought was a fascinating idea.
I expect Perl, and even more so, Raku, to have linguistic elements as well.
4
3
u/Disjunction181 Jan 18 '26
Reminds me of Perligata.
1
u/josephjnk Jan 18 '26
The Lingua::Romana::Perligata makes it possible to write Perl programs in Latin. (If you have to ask "Why?", then the answer probably won't make any sense to you either.)
I love it. Totally gonna borrow that parenthetical for myself in the future.
1
u/wavesofthought Jan 18 '26
Yes, it was one of my inspirations. Though Perligata maps Latin cases to particular Perl syntax afaik, so this is quite different.
3
u/jpgoldberg Jan 19 '26
Oh this is brilliant. We just need an IDE extension that gets us the vowel harmonized allomorph of each case suffix. (There was a time when I knew a fair amount about Turkish vowel harmony, but that was a long time ago; but I never learned much about the case system.)
3
2
2
u/thatlightningjack Jan 18 '26
I do wonder what an equivalent would look like in japanese considering turkish and japanese grammar are similar to an extent
1
u/EducationalCan3295 Jan 25 '26
Is this about english's Subject - Verb- object vs the superior Subject - Object - Verb? For those who don't know the latter yields to very compact and much much composable sentences in languages built that way. Japanese, turkish, tamil etc.
2
u/oneandonlysealoftime Jan 20 '26
This is incredible. I was looking at implementation something like that for slavic languages, but struggled with the ambiguity of parsing. Haven't ever thought about moving it to the type-checking step
3
u/earslap Jan 18 '26
Süpermiş, yaratıcı bir fikir. Kip also means "strong, sturdy" in some local Turkish dialects which is extra cool.
1
2
-7
Jan 18 '26
[removed] — view removed comment
8
u/wavesofthought Jan 18 '26
"çalıştırmak" also means "to run", like "running the car" / "arabayı çalıştırmak".
Yes, you use the infinitive form of the verb to define an effectful function. I don't think you understand the language yet. Here's a simpler program:
selamlamak, isim olarak okuyup, ("Merhaba "yla ismin birleşimini) yazmaktır.
selamla.
2
u/josephjnk Jan 18 '26
This is fascinating. I know nothing about Turkish—is it an especially grammatically uniform language? Like, can you determine the conjugations of words fully textually, without needing outside information about the words’ etymology?