Write Software in Latin (2025) [video]
Comments
Transcript
This is saying there only two things hard things in computer science cach and validation and naming things. I mean I just disagreed but I think there's still
things we can improve or like where we can see there's actually something there and it
still doesn't work. Do I have to turn it on or something or just say next slide? There we go.
Cash relation is a a separate issue but why is naming thing things so hard? Next slide.
I made it work on there. World War II. Uh, Germany lost America one. There it goes. Computers helped.
Um, so actually the Americans found cracked the Nazi code, Enigma. Uh, the computer was called
Colossus. I think this is a replica something. Um, and all the program is done in English. Uh,
on the INAC computer. Uh, and that is actually why today everything is done in English because
America won, right? Like they were they were the first ones. They did it. But is is it best? Is it
the best? Uh, is German German would have been worse actually. That that's actually two real
pictures. Not not the same person though. And German is not very concise. Right. So this is
a hill license foy which is like the fibergrade in Austria. Germany doesn't do that but Austria they
do that. So it's not very like we're pretty like for a computer scientist you know World War II
kind of a W but not so much for Germans. Uh and we can see that so the right side here this is Game
of Thrones this is just an example. Uh 704 pages for the first part. So, uh, what is it called? Uh,
yeah, just Game of Thrones. But in German, it doesn't fit in one book. They actually had it
split up. They had to split it up into two books. And each of them is almost the size of the I mean,
maybe 100 pages off or something. And why is that? Well, it's just kind of designed that way. I mean,
whoever designed German and it's Yeah, German is very rigid. You have to follow the rules.
English is very flexible because you know that was conquered by the French or the nomance or
whatever. So it like kind of got a lot of flexibility in that sense. However, German
has one thing and it's very precise. English is not precise. Let me show you. Uh the this should
be animated so just think it one by one. Right? So in English we saw her duck that could mean two
things and this is the two options could either be like yeah or right same thing we fed her cat
food two meanings in German you literally can't make a second sentence that means both at the
same time they are hunting dogs same right uh I mean I I could read it in German but that wouldn't
really add much to the entropy of the system uh and also one thing that really is annoying
in programming especially is nouns and verbs are often exactly the same word like to write
the right to pay the pay to house the house to object the object and you're naming functions
then you're like okay selfp pay is this returning like a thing that's called pay or is it doing the
paying to pay to pay or to get pay so that was that's an observation I made in the last 31
But what if I told you there's always been a precise and concise language
used for two millennia in science and philosophy? Latin. Latino.
Oh, it's 10 reasons, but I narrow it down to six reasons because we're running out of time. So,
oh, but that could be base six. This is uh six reasons, but in B six or B seven, something like
that. The first one is backwards comparus. Why? So that one old English right bewolf. Uh and
uh wait it depends on how you look. So this is left for you, right for me. And this one is
uh modern English. You can see it changed quite a bit. Bewolf. This is things yet same in English.
If you remember Bewolf, this is her now. Feel old yet? Not like Can you read that? Like this. This
maybe one word and old a little bit similar, but Oh, and is is this all the same? So that's that's
something. However, in Latin, this is from uh 1687 Latin. Uh what's his name? Uh Isaac Newton. Yeah,
he just wrote in Latin. Why not? Half a century earlier. Galo Cidios Nunio like he already
painted. That's kind of what it looks like. Sum theologica 400 years earlier. No, 300. Yeah,
something like that. Almost 300 a little bit over. Also Latin exact same language before that. I
think 700 years earlier also philosophy book uh 523 before that 100 AD about aqueducts the audu
uh the exact same language maybe like a few modifications here and there then 120 years
earlier than that the architectura remark polio and I mentioned the off by one bug that that he
removed this one actually mentions like I think that's the first one we know where someone me
uh like did that like you have to be very mindful of the off by one
error in when you like allocate columns for a temple. So if you want to learn
more about that yeah there's a there's a book. So it's a big advantage back Latin
has been completely backwards compatible for 2,000 years. It's longer than C++. So
the other one which is really cool is that the pronunciation because like the
root for most things that are written is actually really intercompatible in
in Anglica in English it's not really that much so I can do it.
So thus cause draw so thought through sorrow hiccup hiccup hawk and lo so all ending with o
u g but all completely sounding differently why probably the French but you know there's
different different reasons for that and you can see how it all sounds kind of different but in in
Latin this should also be animated so I'm just bombboarding you so I kind of like this is a
proper Latin syntax and there like kind of wrote it down how like a and it has been tested more or
less how like someone else would would read it. So in like classical Latin you would read it like
like
pretty similar. I mean maybe and so forth like the maybe we skipped the
Polish one but the English one like proter knows homopter no transmis
and so forth. Thought this was fun but maybe it wasn't enough. So and
and maybe the same one with like uh it go Japanese
Actually, uh, Latin and Japanese have similar structure of of words. So, that's interesting.
Hope I'm not going over time. What's the time? All right. All right. Another thing that's pretty
cool, especially for programming, is there's different ands and ors. It's like in English
you have and and or but in Latin for example and you have like three you have at which connects two
classes then you have a which is like and but the second one is more important so put an emphasis
and then K is just you just connect two words together. So for example, you know, if you say
like, oh, read the disk and memory and commit. I mean, the structure is very a little bit tricky in
English, but in Latin you can disco. So it's the same as as above, but here you can see the these
one are connected. So it's like oh read disk and memory and then a separate action is to commit or
here we're like oh actually the commit is the more important thing. It's like you actually
want to make sure that it's that it's written to the to the thing. So there you have more tools to
express that very concisely. And here's a little table. I mean there's there's more of course to
say there's like whole kinds. We have and not like two different ones. Five different versions of or
not. Or if not if you ever need that. Another one which I think is pretty cool. There's no articles
really unartically. Um, so this is from Bitcoin ABC source and the left one is what the source
says and the right one is how the like a grammar checker would tell you how it should sound like.
So it says check input scripts but you wouldn't say that oh yeah go ahead and check input scripts
and it would say check the input scripts. So if get next block script flags you would say get the
next block script flex or connect block which is perfectly fine variable name of course but it's
not correct grammatically correct. it's connect a block. Whereas in Latin, Latin doesn't have any of
these. Greek does, but uh Latin doesn't. So, it already is prepared to not have all the problems
with uh with the uh with the articles. Yeah, it's patched out already. The next one is cases. And
this is like really the the meme in Latin kind of where it's like here the pronouns of guys who use
Kaiser pronouns and bio uh that's a joke or the did you guys know Kyson right where go home this
is motion to arts isn't it boy with the Romanos I don't know and that's really useful if you like
for example read block from disk read from this you can just put that like a discore right the
the the the ending already says the motion motion from or the direction to memor where where to go
with that or you can combine it read from the disc to remember Lego disco memorial kind of
works or composition this this this is a trick one customers tables what what does it mean is it like
there's all these like possible combinations that that it could be because you don't put
the apostrophe in the So I mean you you can re rewatch it. I'm not going to go through that for
sure. But in Latin so customers is mtor table is index. Every single one of these combinations is
a different word. So you can be very precise with how the like composition of the thing
is. There's no like uh amig like I mean there can be ambiguity depending on the declination.
Here I picked one where it's less ambiguous, but that's pretty cool. And then this is my favorite
because this is actually something that I run into and then like ah that would be great. So
that's a participion for so we actually I don't know if you know that modi salutant which is like
the what the gladiators said to like all the I don't know how to say it in English but like the
ones who are going to die or like who are meant to die. Exactly. And those who are about to die
is just one word in Latin muri turus but that's actually a a declination conjugation of muri which
is to die. So just like in English we have the past participle like write written. So something
that is written we have that Latin of course has that too scripturus but we don't have the
equivalent in English is like oh that which will be written. There's no just simple word for that.
But the Latins do have that and that's actually really important because there's many cases where
something will happen in future in program. So for example you fetch something and what is that thing
like how do you call that? It's like something that will be written but like good luck writing
that writing that down. So it's the right future I guess and then if you do a awaited you get the
you get the written exactly in Latin we have the scriptus which is the password the modern one but
the thing that will be written is scriptorus and uh it just makes like a nice like you just
have more Lego blocks to build your uh variable names and comments and documentation and so forth.
Oh, there's an R missing. Yeah, I like it with a hard R.
So, conclusion, Latin is backwards compatible for 2,000 years and it
has forms that allows to express engineering ideas very precisely. And that's it. I I mean,
there would be great if there was a more conclusion there, but I just wanted to like this is something I discovered and I was like that's that's pretty cool. Yeah.