https://github.com/michidk/rost
Aren’t you müde from writing Rust programs in English? Do you like saying “scheiße” a lot? Would you like to try something different, in an exotic and funny-sounding language? Would you want to bring some German touch to your programs?
rost (German for Rust) is here to save your day, as it allows you to write Rust programs in German, using German keywords, German function names, German idioms.
Too bad that’s based on macros. A full preprocessor could require that all keywords and names in each scope form a prefix code, and then allow us to freely concatenate them.
PETA isn’t going to like all those
für
loopsFür is short for fuer. The umlauts are tiny “e” on top of the letters
That’s how umlauts historically evolved, but nowadays I wouldn‘t say ü short for ue, but its own letter (even though you still can write it as ue if you don’t have it available on your keyboard or whatever)
Well, my point is that it’s not considered a u, and Austrian and Swiss don’t use it.
Also, fun fact, some romance languages like French and Brazilian Portuguese have an identical diacritic to umlaut but it’s different. It’s meant to mean the vowel is separate (like in the word naïve)
We call it tréma. Aka diaeresis. It explicitly tells you to pronounce two vowels near each other separately.
A typical use is to indicate a normally silent vowel must be read out. For example “maïs” (MA-EE-S’) is completely different from “mais” (MAY).
TIL thanks !
Bruh why does it feel more natural in German.
I like the branch names auch
Finally, a language where CamelCase feels natural
*KamelKiste
That was excellent
The ruby on rails generators do this sort of magic. It’s fun while you’re using it, but a nightmare to remember how to use on a 10 year old project.
Yeah, Excel does that, it always fascinated me. It was so weird writing =KDYŽ instead of =IF in Excel. Different times, I guess.
Does that get translated if someone else with a different language opens that file?
No idea, but I would hope so.
Yes, but it would be funny if you could just switch languages in the middle of your sheet, чтобы можно было начать на русском, continue in English,وانتهى باللغة العربية.
Tap for spoiler
I hope that the built in translation in iOS can translate to Arabic well
Don’t worry, the arabic translation is correct
It’s formal Arabic, as is expected of any translator
The best part is that if your version of Excel is German, you can’t write
=IF()
. You have to use=FALLS()
.It’s always fun to google a function and then the translation.
I’m pretty sure it’s not
FALLS()
butWENN()
, at least the last time I used Excel.Could be. I try to avoid Excel. And I believe “wenn” is a wrong translation, whether the function has that name or not.
Internally Excel saves it in English (or some internal code) and translates it when opened.
My company switched from Excel-Interops, where you had to send the German function name to Excel. Now we write .xlsx files directly and have to send the English function name. But when opened it displays all functions in German (or whatever localization Excel is set to).
Wofür steht ‘wd’??? Wochendag oder wie??? GEFEUERT werden muss die Person!
Abor dor Klaus aus Leipzsch saacht das doch so…
I want a programming language that supports German style composite words
Java
Seriously, fuck Excel for this. I always hate to look up function names in German.
Yes, I also hate it!
The Italian version of Excel had the brilliant idea of translating the
MID()
function intoSTRINGA.ESTRAI()
, which means “extract string”.Seriously, what the fuck.
The localisation of office software functions is atrocious in all languages. They should have defaulted to Volapuk, so that at least we could all suffer together.
It should have been Latin so at least you could feel like a magician or something
At least the names are extremely self-documenting. Some of those German variable names are long enough they might even be self-aware!
Some German words are self-aware
A key reason English became the preeminent language of scientific and technical communication, and thus the source of keywords in programming languages, is because German (the other candidate) fell out of favour due to the two world wars. So, were it not for Prussian militarism, our programming languages may have instead been based on German (along with most scientific literature being in German).
Also because, as a person who has studied multiple languages, German is hard and English is Easy with capital E.
No genders for nouns (German has three), no declinations, no conjugations other than “add an s for third person singular”, somewhat permissive grammar…
It has its quirks, and pronunciation is the biggest one, but nowhere near German (or Russian!) declinations, Japanese kanjis, etc.
Out of the wannabe-esperanto languages, English is in my opinion the easiest one, so I’m thankful it’s become the technical Lingua Franca.
Had the world settled on German, someone might be making a similar argument that the world dodged a bullet by choosing a language with phonetic orthography and words composed of logical building blocks rather than a mess like English
Also English is an odd germanic-romance bastard child that Western Europeans tend to like because it has a decent number of cognates for everyone and a simple grammar IF you’re only aiming for simple conversational English. The barrier to entry is quite low, especially if you don’t give a shit about having a thick accent and straight up mispronouncing tricky words (as anyone knows who had a conversation in English with a non-fluent Italian/Spanish/French person).
OTOH German used to be relatively widely spoken in Eastern Europe, and Slavic languages also use declensions AFAIK, and also even post WWII German held quite a bit of momentum in academic circles.
So if the Soviet block had gone the Chinese route and become an economic behemoth instead of withering and dying at the dawn of the Information Age, German being the lingua franca (or at least giving English a run for its money) would have been a distinct possibility IMO.Making fun of people has more “stank” in English (not a hard fact, just my opinion).
* Yiddish has entered the conversation
French fucking Excel formulas is an abomination and needs to die.
I’m am immigrant in Brazil and have to deal with Portuguese excel almost everyday. At least I know my Python and only use excel to do simple things.
Edit: all my scripts end with pd.to_excel() tho
Python-Python or Portugol?
I hear the French usually program in French as well. I do not want to ever work in France.
Nah, just that WinDev thing.
On the plus side we have actual holidays and good luck bothering me outside of hours, haha!On the plus side we have actual holidays and good luck bothering me outside of hours, haha!
I mean we have that here in Estonia too :P
The French are doing what??
I mean how?
Specifically, I need to understand it for scientific reasons.Norwegian as well. It’s basically impossible to find the documentation. Translation has somehow changed the order of words, som direct translation of formulaes is not helpful for searches either.
integer
Was soll der Quatsch denn heißen? Wer ist hier integer? Bei uns heißt das Ganzzahl, verdammt!!1!
*wütende Programmierergeräusche*
I am german and I feel physical pain reading this code
I know there is a programming language called windev, all in French, just in case you want to suffer. I would except a good exception handling mechanism in a French base language.
An example from their website: ` TotalCA est un monétaire = CalculCAMoisEnCours()
SI TotalCA >= 1 250 000 ALORS LIB_Objectif= “Objectif dépassé !” LIB_Objectif.Couleur= VertFoncé
SINON SI TotalCA <= 200 000 ALORS LIB_Objectif= “Objectif non atteint” LIB_Objectif.Couleur= RougeClair FIN
FIN `
I’d love to swap else with alors in all languages
I think that’s actually a
then
keywordY’know, from back when it was common for languages to do
if
foothen
baz
Here, they are famous for their pinup calendars…
In college, we had to use Hungarian pseudocode. I still have PTSD from it, especially as the teacher was a psycho that had a meltdown every time her “how do you do fellow kids” moment terribly backfired, most infamously by putting Twilight references into a test (everybody audibly cringed reading the tests).
My experience with German programming languages is with Siemens PLC’s, since the programming language changes together with the IDE when you set the language to German. Looking at Structured Text / Instruction List having U (und) instead of A (and) operator and bunch of other things was interesting.
But IIRC there were also higher programming languages that are in other languages? Wasn’t there one for arabic? Was this it: https://github.com/nasser/---/
The pain is real. Now I wanna design/implement a programming language in the Egyptian dialect (j/k. fuck no)
As an Arab, I now want to learn to code in Qalb so I can romantically say that I know the workings of the heart <3
Also, how about we make a programming language called ب and have it just stand for برمجه (“Barmaja”: literally programming in Arabic)
Maybe that was the one I’ve originally seen. Not sure which one :D
Of course… even an Arabic programming language has a recursive acronym name
silently goes to German GitHub to learn German words