10 ms·
Rouille – Rust Programming, in French
- the__alchemist 1y agoThere is also a Rust minimal HTTP server by this name. (Incidentally, one of the few that isn't Async.)
- gnarlouse 1y agoListen, if you didn’t just spend at least 5 minutes trying to make random foreign accents reading the code to yourself out loud trying to figure out what the code does… We’re different people.
- jacknews 1y agoThis is fun. My son is learning esperanto, is there a version for that, maybe a weekend projekto for him.
- gpm 1y agohttps://github.com/dscottboggs/rustteksto https://github.com/dscottboggs/rustteksto
- joshdavham 1y agoIs the compiler now gonna scream at me for using the wrong gender?
- makeitdouble 1y agoThis is actually in a very aproachable and lenient french. The compiler will offer you a smoke to cool down and think about your syntax from some distance. > Arf("fetchez le dico".vers())
- jacknews 1y agolol, it'll just say 'Noh!' and then ignore any further input. Especially if you forget the --bonjour flag.
- ttoinou 1y agoWithout the proper -—bonjour flag as first argument, I expect the compiler to work against me, pretending to compile fine while introducing subtle users bugs
- posix86 1y agoMissing!! They should've translated `let` to `le` and `la`.
- userbinator 1y agoBe sure to look at the "other languages" section; and then wonder whether all of it was generated by AI.
- OccamsMirror 1y agoIt definitely was.
- Lukas_Skywalker 1y agoI don‘t think so. At least the french one is quite old and was discussed here before AI was in wide use: https://news.ycombinator.com/item?id=28490935 https://news.ycombinator.com/item?id=28490935 I remember that many of the other languages popped up a little later.
- jeroenhd 1y agoI doubt it. Rouille uses a very simple "word to other word" map that anyone with an hour of free time can fill out for their own language. The implementation is also rather inefficient, but it's not like such a translated macro will be used for anything serious.
- vortegne 1y agoThe Russian version seems to be handcrafted with humor
- jeroenhd 1y agoI can tell you that github.com/jeroenhd/roest was all done manually. If I'd used AI, I probably would've included grammatical gender for nouns.
- grishka 1y agoThe Russian version linked there is, uh, underwhelming. That whole gopnik vibe is entirely unwarranted. I understand a bit of Spanish and that one is much better in comparison.
- johncolanduoni 1y agoI wish the Greek one had a vibe at all, past putting the Rust logo on a gyro. Not even a curse word. You could have some fun with compiler errors and allusions to Oxi Day (which was two days ago).
- yoz-y 1y agoSlovak one does not use diacritics so it’s quite hard to read.
- mrugge 1y agoI thought the Russian version was pretty funny. Thanks for calling it out.
- konart 1y agoidk, as I see it - it's funny if you are 14 years old or non native, so the whole vibe is a bit amusing. Just like it may be amusing to watch "Don't Be a Menace to South Central While Drinking Your Juice in the Hood" as long as you understand satire.
- fainpul 1y agoI don't know russian, so I can't judge the quality, but Tsoding's lang might suit you better: https://github.com/tsoding/good_training_language https://github.com/tsoding/good_training_language
- dullcrisp 1y agoThis is excellent.
- 1y ago
- d--b 1y agoI like the translation of the WTFPL as « la license rien a branler » If you don’t know the idiom, you should check it out, it’s both particularly vulgar and very commonly used.
- rossant 1y agoBut is it more vulgar than the English version? Deep question.
- ahartmetz 1y ago"Nothing to wank license", too literally translated French has so many perfectly normal looking words for sexual stuff. Not particularly long or short, not a compound of other words or a circumscription... nope, just a word for a thing, like table or house or tree.
- 24f0bacc7c72d0a 1y agoName conflict with the OG rust synchronous web framework: https://github.com/tomaka/rouille https://github.com/tomaka/rouille
- _ache_ 1y agoYou must learn about Baguette#. An implementation of OCaml (similar to Haskell, but from France instead of UK), but with french pastries name. It was half a joke, half a serious study project. https://github.com/vanilla-extracts/ocaml-baguettesharp-interpreter https://github.com/vanilla-extracts/ocaml-baguettesharp-inte...
- el_pollo_diablo 1y agoYears ago the research team behind OCaml released Chamelle, a version of the language localized in French, as an April fool's joke: https://gallium.inria.fr/blog/ocaml-5/ https://gallium.inria.fr/blog/ocaml-5/
- michidk 1y agofk lese(&selbst, schlsl: Zeichenkette) -> Ergebnis<Möglichkeit<&Zeichenkette>, Zeichenkette> { wenn lass Etwas(wöbu) = gefährlich { WÖRTERBUCH.als_ref() } { Gut(wöbu.hole(&schlsl)) } anderenfalls { Fehler("Holt das Wörterbuch".hinein()) } } https://github.com/michidk/rost https://github.com/michidk/rost
- fainpul 1y agoIndent with two spaces for code formatting.
- yohbho 1y agofk lese(&selbst, schlsl: Zeichenkette) -> Ergebnis<Möglichkeit<&Zeichenkette>, Zeichenkette> { wenn lass Etwas(wöbu) = gefährlich { WÖRTERBUCH.als_ref() } { Gut(wöbu.hole(&schlsl)) } anderenfalls { Fehler("Holt das Wörterbuch".hinein()) } } isn't the idea behind programming "languages", that they are sentences readable to both humans and the compiler? This absolutely is not readable to me. But woerterbuch and schluessel should of course not be abbreviated, for legibility.
- ahartmetz 1y agoIf German was seriously used in programming languages, I'd hope for some better and shorter terms. Some here might be intentionally too literal translations anyway. "Let" is from mathematics, it's called "Sei" in German. "Sei x = 5". "Anderenfalls" could be "sonst". "Zeichenkette" is just too long and would require some thinking or a historical accident to find a shorter term. Ready surprisingly nice to me anyway.
- b3orn 1y agoI would use "sei" instead of "lass" for "let" to be more in line with notation in mathematical proofs.
- croemer 1y ago
- lower 1y agoThere were actually localized version of Visual Basic for Applications. https://de.wikipedia.org/wiki/Visual_Basic_for_Applications?section=10#VBA_unter_Office_95 https://de.wikipedia.org/wiki/Visual_Basic_for_Applications?... https://news.ycombinator.com/item?id=21352796 https://news.ycombinator.com/item?id=21352796
- wiether 1y agoThe complete dictionary is here: https://github.com/bnjbvr/rouille/blob/principale/rouille_compilog%C3%A9n%C3%A8se_proc_macro/src/lib.rs https://github.com/bnjbvr/rouille/blob/principale/rouille_co... I just can't stop laughing at the "génial" => "super" https://github.com/bnjbvr/rouille/blob/principale/rouille_compilog%C3%A9n%C3%A8se_proc_macro/src/lib.rs#L40 https://github.com/bnjbvr/rouille/blob/principale/rouille_co...
- lkuty 1y agoHaha the translation is so funny. But I confess, as a native french speaker, I could not code in that language. It is so weird because I am used to english for coding now. Sometimes I write my variable names in french and I think I even used accented letters one time. What is worse, is that I tend to mix english and fench variable names in my code, but anyway english is way more common in the code base.
- philistine 1y agoUsing French variable names is a great way for me to know this is something I defined, not something which is defined by the environment.
- zozbot234 1y agoI find it slightly disappointing that they haven't stuck with the Rust practice of picking short or abbreviated words when they're clearly unambiguous - such as "fn" instead of "func" or "function". E.g. why Résultat<...> when you can write just Résu? Why PeutÊtre and not Ptêt, very common in quick language, e.g. for texting or chatting?
- melicerte 1y agoI've notice there is "merde" method which is available in the example like in https://github.com/bnjbvr/rouille/blob/7e9523fe24026bff1a3a70fcc96c67b94675acae/examples/src/main.rs#L81C9-L81C14 https://github.com/bnjbvr/rouille/blob/7e9523fe24026bff1a3a7... Merde is an alias for "calisse" and "oups" , see https://github.com/bnjbvr/rouille/blob/7e9523fe24026bff1a3a70fcc96c67b94675acae/examples/src/main.rs#L81C9-L81C14 https://github.com/bnjbvr/rouille/blob/7e9523fe24026bff1a3a7...
- moezd 1y agoThis is hilarious, thank you for your effort good sir, this is what I pay the internet for! :)
- fouronnes3 1y agoAs a native french speaker, I feel so uneasy reading source code in french. It feels very very uncanny. I've often wondered if English native speakers feel the same when reading normal source code which is always in English. They probably don't. But how? I've always associated the "other language-ness" to correctness and technicality. It must be so weird to code in your own language. Feels like reading bad pseudo code. It's very nice to be able to map "english" to "technical, correct" and "native language" to "descriptive, approximate, comments, pseudo-code". Having only a single language to work with is like removing a color from the rainbow.
- wiether 1y agoSalutations, I always felt the same and one theory I have is because the imperative nature of source code feels rude if you try and put it in French. It feels like yelling orders to a dog. Then I don't know if it's just because in French, despite everyone calling us rude, we are usually quite polite. Or if it's the same for every ESL.
- silisili 1y agoAs an American...no uncanniness to English. I guess because it was always the default and what was taught. The first time I encountered a non English PL, I did feel the same uncanniness you spoke of. It felt... wrong? I wish I remembered which one it was. It was probably the first time I realized how prevelant English was, and that PLs could even be written in any language .
- croisillon 1y agoi thought the verbs in English-programming were meant to be infinitive and not imperative?
- mr_toad 1y agoMost programmers probably don’t even know what that means.
- kubb 1y agoIt looks more elegant than English.
- deleted 1y ago[deleted]
- benob 1y agoThis is very lenient French: "fetchez le dico"
- hmstx 1y agoMight be a Monty Python joke, as in "fetchez la vache!"
- sweca 1y agohahaha j'adore que le mot québécois "calisse" est inclus
- croemer 1y agoPreviously discussed: Rouille (338 points, 144 comments, Sept 11, 2021) https://news.ycombinator.com/item?id=28490935 https://news.ycombinator.com/item?id=28490935 Rost – Write rust code in German (55 points, 16 comments, Nov 9 2021) https://news.ycombinator.com/item?id=29159077 https://news.ycombinator.com/item?id=29159077 Rost – Rust Programming in German (161 points, 115 comments, Mar 25, 2025) https://news.ycombinator.com/item?id=43488490 https://news.ycombinator.com/item?id=43488490
- haunter 1y agoRelated: Non-English-based programming languages https://en.wikipedia.org/wiki/Non-English-based_programming_languages https://en.wikipedia.org/wiki/Non-English-based_programming_... (not really up to date though)
- athulbc 1y agoThere are Russian and Chinese programming languages. Quite natural. But there are already Hindi programming languages as well. Mind blowing detail! Thank you for sharing this list.
- aprilfoo 1y agoFantastique ! Let's create "Piaf" to see la vie en rose, the French à la https://codewithrockstar.com/ https://codewithrockstar.com/.
- elAhmo 1y agoL'Horrible
- ronin-red 1y agoThat reminds me of LSE, a French BASIC-like programming language. https://en.wikipedia.org/wiki/LSE_(programming_language) https://en.wikipedia.org/wiki/LSE_(programming_language)
- worldsavior 1y agoNot surprised this sort of thing pops up specifically for french. France is known to not speak English in some situations even though they know English.
- zukzuk 1y agoJust wait until the Quebecois government here in Canada hears about this. They are militant about avoiding english at all costs. They changed all the STOP signs in Quebec to ARRET because STOP was too english.
- nxor 1y agoWhat's wrong with that? You want more Anglomania?
- mr_toad 1y agoWhenever I try speaking French to them they stare at me in horror and immediately switch to English.
- BobbyTables2 1y agoI’ve had the same experience. It’s just as well because when native speakers reply, I can’t understand them. The words are too smeared together for me. OTOH, when a non-native French speaker (who may not know English) speaks fluently in French, I can actually hear each word and understand them easily.
- lowleveldreams 1y agoIt's interesting how coding in your own language can make the logic feel completely different.
- asgerhb 1y agoI like to imagine a world, a worse one, where programming languages were localised. This might initially have been a versioning nightmare, with different compiler binaries for each localisation. Later, it could become standard practice to ship a single compiler containing all supported localisations, the correct one being chosen from either system language, a project-wide setting, a preprocessor flag in each file, or some combination of these. Everyone would have to learn a little Polish, and "Source Code Translator" would be a profession.
- cenamus 1y agoYou mean excel?
- hiccuphippo 1y agoHah! Reminds me of the first time I tried Excel in English (might have been Google Spreadsheet) and the searchv function was nowhere to be found, not knowing it was actually called vlookup ("buscarv" in Spanish).
- widdershins 1y agoI think if this were the case, we would have quickly moved on from storing source code as text, and begun storing it as ASTs which could be 'viewed' in any localised version of the programming language. This may have had wider benefits than just reading source code in your preferred language.
- zozbot234 1y agoYou can serialize ASTs very easily as S-expressions, or slightly fancier versions thereof. That's still "text" and quite easily readable by humans, but somewhat less oriented to direct editing.
- scotty79 1y agoI would love for the block delimiters to be also a preference, like the language in that world. I'd edit every language with Python style blocks.
- estimator7292 1y agoFunny, I was just thinking the other day that as a C/++ programmer, writing TypeScript feels a lot like speaking French where nouns and adjectives and verbs are all in the 'wrong' order. It's a very strange feeling, exactly like learning French as an English speaker
- athulbc 1y agoCurrently computer programming is done using one's knowledge in mathematical language(or mathematical way of thinking) + knowledge in English. It would be nice to see how replacing the English part with mothertounge work. For me, atleast I can read the documentation with confidence and much ease(I'm not French btw). And may it become an experiment to see how it works for non-English languages. Thanks for the French to starting this. I was once wrote in my blog about programming in my own mothertounge which is Malayalam.
- honeybadger1 1y agonext up, rust in ebonics
- layer8 1y agoUnfortunately it still uses a dot for the decimal point.
- sim7c00 1y agosacrebleu
- jagged-chisel 1y agoI was curious fairly recently if programming languages could support keywords in multiple languages. My mental experiment wanted to have translation resource files, mapping keywords or the concepts they represent (if, then, for, while, func, struct, etc) to a localized human language. You could code in your native language, and so could your international fellows - the file is translated in the editor It got complicated fast. Now you need a canonical representation for disk, something still text, maybe English is the common denominator? Do variable names get translated? Etc I would like to see it tried, but I’m not brave enough.
- zozbot234 1y agoYou could still use text for raw identifiers (which tends to be very convenient for debugging) but define language-specific alternate mnemonics as part of your language's equivalent of header files. These alternate mnemonics could even just be some specially formatted "doc comments", with the actual text substitution being done by a LSP-like system.
- pseudalopex 1y agoApple developed French and Japanese dialects of AppleScript evidently. And planned a Professional dialect more like other programming languages.[1] [1] https://news.ycombinator.com/item?id=32742275 https://news.ycombinator.com/item?id=32742275
- lagniappe 1y agoC'est dégoûtant.
- StopDisinfo910 1y agoIt’s funny because it forced me to consider how I would translate some of the keywords when reading the code. Some of the choices seem debatable. I’m not sure I would translate Some/None this way. The second person imperative for Use feels very weird to me too and I don’t think using vulgar French is adequate. I really like "convention/réalisation" however.