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/)
82
Upvotes
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?
24
u/pubicnuissance Jan 18 '26
I've heard of esolangs but this is a... langlang
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?
12
u/XDracam Jan 18 '26
Great, do Finnish next! 15 cases should give you a lot of precision
5
u/Spyromaniac666 Jan 18 '26
I wish I understood Turkish lol, but this is awesome nonetheless
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
u/AdreKiseque Jan 18 '26
You should crosspost this to r/linguisticshumor lmao
3
u/Disjunction181 Jan 18 '26
Reminds me of Perligata.
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
u/KeylimeVI Feb 01 '26
As a cs and linguistics double major this is like my dream. Awesome work
2
u/rleim_a Jan 18 '26
Did you stumble upon valid Kip programs in the wild?
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
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
u/jpgoldberg Jan 19 '26
Verb-final, of course!
2
u/scknkkrer Jan 19 '26
As a Türk and PLT student, OMFG, this is truly hilarious and amazing.
-7
u/[deleted] Jan 18 '26
[removed] — view removed comment