10 ms·
Rost – Rust Programming in German
- deleted 2y ago[deleted]
- impish9208 2y agoWill the negation for if statements go at end?
- fatih-erikli-cg 2y ago[dead]
- deleted 2y ago[deleted]
- h4ck_th3_pl4n3t 2y agoThis is so hard to read for an English native person, well done. I also propose Eierlegende Wollmilchsau as a type, that would be fun!
- Mad_ad 2y agoits also hard to read for a german. coding in english is the only viable thing after learning everything in english
- dailykoder 2y agoOh nice. Today I actually wanted to start learning Rust. As a native german this will make things a lot easier. Thank you!
- ingohelpinger 2y agoDeutsche Sprache, schwere Sprache.
- bowsamic 2y agoRichtig toll
- rob74 2y agoHmmm... if you are going to use only Bavarian paraphernalia to symbolize "German Rust", you might as well go all the way and use Bavarian instead of German for some extra laughs? Ok, TBF most programming keywords are rather scientific, and dialects are less used in academia, so that might be tricky. Also, I would bet that most Germans would also use "fn" as a two-letter shorthand for "Funktion". But it just had to be different, so they chose "fk" for "FunKtion"...
- stefanka 2y agoI saw "fkt" as a more common abbreviation for "Funktion", that'd be only one extra character
- tasuki 2y agoIf we allow for one more character, we can get the even clearer "fukt".
- eru 2y agoWhich would be perfectly acceptable in German. In contrast, when I worked for Goldman Sachs business unit 'Fixed Income, Currency and Commodities' I made sure not use their abbreviation in polite German company.
- rmetzler 2y agoWhat does „änd“ mean in the example?
- luesterklemme 2y agoI guess "änderbar".
- SyrupThinker 2y agoPossibly “(ver)änderbar” (changeable) to have a distinct keyword. “Mutierbar” would also work fine in German, but it was probably changed with the same reasoning that fn was to fk.
- spacechild1 2y agoBecause they desperately needed some Umläute :)
- vlowrian 2y agoAs a German native speaker, it's surprisingly hard to read the code examples. Seems like all common concepts of programming languages like access modifiers, types etc. are hardwired to their English terms in my brain.
- nottorp 2y agoI've never been able to even use localized UIs on anything that goes on my computers and my phone. My native Romanian looks either foreign or silly when it's on the "File" menu. It's probably what you got used to when you first learned it though. Because I am also slow at reading math / the theoretical part of IT in English because I learned it ... in Romanian. Edit: to the point that I didn't remember the "theoretical part of IT" is "Computer Science" when posting in a hurry :)
- rob74 2y agoWith me it goes so far that I switch everything that can be switched (e.g. Android on my phone) to English. It's not just the terms, it's also the frequent translation errors. One "oldie but goodie" example is a Windows utility (I think it was Registry Editor, but not sure anymore) that translated "key" with "Taste" - which means key on a keyboard, not key as in a thing that opens doors or allows you to uniquely identify a bit of data, that would have been "Schlüssel".
- vladde 2y agoI do the same thing. When helping friends with their computer problems, having to translate words in a menu is such a hassle, especially when the translations aren't obvious. When it turns out they were using a different version and didn't have that option, we still had to figure out what translates to what – if the option even is there at all.
- DogRunner 2y agoI am a German native speaker as well. That is horrible idea!
- 2y ago
- gtirloni 2y agoAny plans to add support for it in the Linux kernel?
- eru 2y agoObviously, the Linux kernel would need a Swedish version. (Swedish is Linus Torvalds' native language.)
- Xophmeister 2y agoHe's Finnish, not Swedish.
- dagw 2y agoBoth Finnish and Swedish are official languages in Finland. Linus' parents are from the region of Finland that primarily speaks Swedish, so Linus grew up speaking Swedish at home.
- gyulai 2y agoWhat makes it really funny is that the joke was lost on Microsoft in the mid 90s when you might program macros for MS Office in a version of BASIC that actually did get its keywords translated.
- cetu86 2y agoStill to this day, when I occasionally use Excel/Libre Office Calc I never know wether to write `sum(` or `summe(`. Function names depend on the localization settings of the system I'm working on.
- ensocode 2y agoThis. I am always wondering if this was a serious decision. In my view it doesn't make any sense to switch function names by locale. It just confuses
- tasuki 2y agoPresumably one uses the same locale everywhere? So switching by locale should not be a problem? Supporting multiple languages is a problem all right: googling, communication, etc...
- hulitu 2y ago> Presumably one uses the same locale everywhere? It depends. > So switching by locale should not be a problem? Until you get an Excel file written in another locale. The coolest one i had was one with Japanese formulas.
- nindalf 2y agoIt seems obvious in hindsight that everyone, non-native speakers included, prefer to read syntax in English. But was it as obvious 30 years ago? I mean sure, hurdur Microsoft dumb, it's a classic joke. But if that was the first attempt at translating keywords, then how is it "really funny"? It just gets my goat when people make fun of innovators with the benefit of hindsight.
- 4ndrewl 2y agoI was expecting something along the lines of https://aloneonahill.com/blog/if-php-were-british/ https://aloneonahill.com/blog/if-php-were-british/
- skitter 2y agoWhy limit yourself to one language, when you can have 23 of them in the same Datei? https://github.com/charyan/unirust https://github.com/charyan/unirust
- andai 2y agoThey chose the right license!
- xg15 2y agoBehold the almighty SONSTWENN!
- flohofwoe 2y agoThe interesting thing is that the weird 'else' keyword actually was invented by German speakers: https://github.com/e-n-f/if-then-else/blob/master/if-then-else.md https://github.com/e-n-f/if-then-else/blob/master/if-then-el...
- eru 2y agoVery interesting write-up at your link! The early English alternatives were even longer than the common German suggestions we have here. Btw, 'sonstwenn' seems really silly. 'ansonsten' or just 'sonst' might be more idiomatic. Hmm, the actual code uses 'anderenfalls', which also works, but is a bit longer than 'sonst'.
- mschild 2y agoI'm German. Lived abroad for close to a decade although back in Germany for the past 4 now. Generally, I have no issue switching between German and English for anything, be it movies, books, conversation, etc. Coding is just something though that my German brain will refuse to do. It feels foreign and just downright weird. That's the best I can describe it. I even started learning to code in German. German is also one the languages that generally has a ton of resources translated and translated well. I just cannot do it though. Syntax and technical terms in German just turn my brain to mush.
- Timwi 2y agoSame here, though with one exception: things that are not usually written out in English words (operators and punctuation) still have German names to me. In my head I still say “Stern”, “Klammer zu”, etc. when reading code like “x = *y;” and error messages like “')' expected”. I read “==” as “gleich gleich” and “!=” as “nicht gleich”.
- jjallen 2y agoAs an American moving back there from Switzerland and scared to lose the German I know, maybe this is exactly what I need. Though I will say that “benutze” is much longer than “use” haha. Would be hilarious to make a Swiss German version. Edit: the words are abbreviated which makes it that much harder for a non native German speaker. Seems like German is much longer on average. That’s one plus of English over German. I do wish more languages had capitalized nouns though
- ithkuil 2y agoLanguage vocabulary and syntax design has been influenced by how "fit" the terms are for use. Fitness includes the length. Now it's true that English is particularly full of short terms. But I wonder how a programming language would have evolved if one had chosen German (or another) language from the get go instead of having a translation
- eru 2y ago> Though I will say that “benutze” is much longer than “use” haha. I would have probably just gone with 'nutze' instead.
- keyle 2y agoBordel! Also https://github.com/bnjbvr/rouille https://github.com/bnjbvr/rouille
- dan00 2y agoYou really shouldn't be limited by only one language: https://github.com/charyan/unirust https://github.com/charyan/unirust
- skrebbel 2y agoI'm offended that nouns aren't capitalized. This is nowhere near proper German.
- eru 2y agoOh, no, this is Weimar Republik style, peak Germanity. There were lots of avant-garde movements that were sure that capital letters in general were just about to be phased out in a few years time.
- skrebbel 2y agowow missed opportunity
- FirmwareBurner 2y agoDer Kommentarenbereich ist nun Eigentum der Bundesrepublik Deutschland
- eru 2y agoOr FRoG for short, in English.
- enigma101 2y agoNein Nein Nein. Nicht gut. Hans lass sein. German in Programming seems like the worst idea ever made. DampfSchifffahrtGesellschaftsVertragsKlasse = nil
- defrost 2y agoDas Rust is nicht fur fingerpoken und mittengrabben. https://www.netlingo.com/word/das-blinkenlights.php https://www.netlingo.com/word/das-blinkenlights.php
- fscaramuzza 2y agowaiting for the italian version Past
- bradley13 2y agoUm...just no. I ran an informal Reddit survey some years ago, and got responses from all over the world. Literally everyone programs in English. FWIW I teach in a German-speaking area, and all of my material is in English.
- isaakengineer 2y agothe irony must be lost on me here, but I began writing Rust in German and never I had as much fun programming as since I began using German as main language. Forgetting about Kamel or Kebab case? Love it. German is awesome for programming, imao. PS. I speak Persian, know Arabic, Serbian too but none offer the ease of text to code as German.
- piokoch 2y agoHorrible idea, but I am not surprised someone decided to do this. In Germany employees have guarantee that they can speak German at work, does not matter the company is international, on the meetings, emails are people from USA, India, Ukraine, Poland. German has to be used if a single German employee wants that. I have a friend who works in such place. DeepL is a most important piece of software he uses, the problem starts if DeepL messes up some details. Meetings are a nightmare, communication is a nightmare. Managers try to mitigate all that, by avoiding employees from Germany in the projects, what is pretty funny, as company is multinational, but of German origin, and most of the managers are Germans... This attitude is just one of the many factors that led to https://www.amazon.pl/Kaput-German-Miracle-Wolfgang-Munchau/dp/1800753438 https://www.amazon.pl/Kaput-German-Miracle-Wolfgang-Munchau/...
- miroljub 2y agoWhy would it be wrong that an employee working in his country prefer to use his native language for communication? If the team is mixed, that means someone would need to learn and use a foreign language. Why does it have to be always only English? That being said, I still prefer a programming language in English, but it's not like there are no precedents here. Many Germans are used to writing Excel formulas in German. Why not code? Or, better yet, why not a built-in translation layer in a programming language, that would allow writing code in any language, and translate that on the fly to and from a universal internal format?
- hulitu 2y ago> Many Germans are used to writing Excel formulas in German. And many Japanese are used to writing Excel formulas in Japanese. Excel is such a crap program. Good luck with spreadsheets which have formulas in anothe language. > Or, better yet, why not a built-in translation layer in a programming language, that would allow writing code in any language, and translate that on the fly Because some words' meaning is context dependent. "We don't need no education"
- miroljub 2y ago
- stared 2y ago10 min vibe-translating (Cursor + Claude 3.7, OpenAI for logo) and here we have Rdza - a Polish version: https://github.com/stared/rdza https://github.com/stared/rdza Polish can into Rust!
- homarp 2y agosee also https://github.com/phaux/rdza https://github.com/phaux/rdza
- nathell 2y agoMeh, it’s just trivial keyword substitution; not very interesting. `użyj std::zbiory::Słownik;` doesn’t sound right: we’d expect a genitive here. The Right Thing for Polish would be to leverage the Polish inflection and freeform syntax, in the vein of Perl’s Lingua::Romana::Perligata [0]. [0]: https://metacpan.org/dist/Lingua-Romana-Perligata/view/lib/Lingua/Romana/Perligata.pm https://metacpan.org/dist/Lingua-Romana-Perligata/view/lib/L...
- hoc 2y agoThe promptly emerging Excel-Schmerz reminds me that the author avoided the use of floating point numbers in the provided example for a reason. In german Excel it's might be ok due to its original focus on numbers, but replacing decimal "." with the german "," also forces you to use a semicolon everywhere where you would use a comma (function, vector/array notations). To me the most annoying issue with localized programming languages. And consecutive ";;;" just looks awful. And what would happen to command/line endings... BTW, Apple once tried to translate content-specific parts of their AppleScript language (like Dialogs etc) but in the process also hit some enumerations which often sit at the border between programming language and content. Big desaster in certain edge cases. Anyway. Of course I like that the effort was made. There are famous Asterix comic books translated into all kinds of languages and dialects. I'd really like to see great localized coding languages, but I guess they will have to avoid line ending semicolons and only use integers :)
- hulitu 2y ago> In german Excel it's might be ok due to its original focus on numbers, but replacing decimal "." with the german "," also forces you to use a semicolon everywhere where you would use a comma The best part is that sometimes you get new numbers. Excel is showing to a user what AI can do to a document: destroy it.
- hoc 2y agoIt somehow feels that one has to come up with a tailored strategy for each CVS import that contains decimal numbers, dates and/or other data with dots in them. Most of the time I end up regexing my way out of the failing (and different) attempts the different build-in options in Excel deliver. LibreOffice is better, Apple's Numbers partially worse in that regard. Funny to see these things in that state in 2025. Discussing number data with current LLMs also does not seem right at the moment. Not sure if simple column-specific conversion tasks might work.
- homarp 2y agothe french version has quite a complete list of other translation https://github.com/bnjbvr/rouille?tab=readme-ov-file#other-languages https://github.com/bnjbvr/rouille?tab=readme-ov-file#other-l... Rouille was previously discussed https://news.ycombinator.com/item?id=28490935 https://news.ycombinator.com/item?id=28490935
- osener 2y agoSo far I've been resisting the Rust hype train but I guess I'll ditch Duolingo and do this instead.
- rbonvall 2y agoReminds me when Scala was translated to German some time ago, at about the same time of the year: https://scala-lang.org/blog/2017/04/01/announcing-skala.html https://scala-lang.org/blog/2017/04/01/announcing-skala.html
- betimsl 2y agoYou have a typo in the snippet on README.md: SchlüsselWert should be Schlüsselwert.
- LargoLasskhyfv 2y agoVerdammt. Jetzt hat mein serielles Zeigegerät mir eine Unterbrechungsanforderung geschüttelt.
- steveklabnik 2y agoTo bring it full circle, https://en.wikipedia.org/wiki/Rust,_Baden-W%C3%BCrttemberg https://en.wikipedia.org/wiki/Rust,_Baden-W%C3%BCrttemberg Some of the German Rust folks have joked about wanting to hold a conference here. We could go to the amusement park!
- bmn__ 2y agohttps://en.wikipedia.org/wiki/Perl,_Saarland https://en.wikipedia.org/wiki/Perl,_Saarland
- t_mann 2y agoI wonder whether LLM programming will make such projects more (easier to get assistance) or less (assistance might not be as good as in the original version) common.
- tdiff 2y agoFun fact: stack datatype is called "Keller" in German, meaning cellar. You put stuff in it, but to fetch the thing you put there first you need to take out everything else you put there after it.
- Jotalea 2y agoshould I do this with Spanish?