Because fuck you and also I hate rust lmao
Aren't you tired from writing Rust programs in English? Do you like saying "panikuok" a lot? Would you like to try something different, in an exotic and funny-sounding language? Would you want to bring some Lithuanian touch to your programs?
Rūdys (Lithuanian for Rust) is here to save your day, as it allows you to write Rust programs in Lithuanian, using Lithuanian keywords, Lithuanian function names, Lithuanian idioms.
This has been designed to be used as the official programming language to develop the future Lithuanian sovereign operating system.
You're from Quebec (or elsewhere) and don't feel at ease using only Lithuanian words?
Don't worry! Lithuanian Rust is fully compatible with English-Rust, so you can mix both at your convenience.
Here's an example of what can be achieved with Rūdys:
rudys::rudys! {
nauduok std::collections::Hashmapas kaip Žodynas;
bruožas KaBlet {
funkcija rašyk(&pats, raktas: Styga, vertė: Styga);
funkcija skaityk(&pats, raktas: Styga) -> Option<&Styga>;
}
statinis kintamas ŽODYNAS: Parinktis<Žodynas<Chaine, Chaine>> = Joks;
struktūra Betono;
implementacija KaBlet dėl Betono {
funkcija rašyk(&pats, raktas: Styga, vertė: Styga) {
leisk žodynas = nesaugus {
ŽODYNAS(Numatytas::numatytas)
};
žodynas(raktas, vertė);
}
funkcija skaityk(&pats, raktas: Styga) -> Rezultatas<Parinktis<&Styga>, Styga> {
jeigu leisk Kažkoks(dico) = nesaugus { ŽODYNAS() } {
Gerai(dico.lire(&clé))
} kitaip {
Klaid("Atsinešti žodyną".vers()) // Nemoku prancūzų :(
}
}
}
}
See the examples to get a rough sense of the whole syntax. Viskas, that's it.
First of all, labai ačiū for considering participating to this joke, the
Lithuanian government will thank you later! Feel free to throw in a few identifiers
here and there, and open a pull-request against the pagrindinis
(Lithuanian for
main
) branch.
Please don't introduce swear words, though: we will not excuse your Lithuanian.
- jes
- Dutch: roest
- German: rost
- Polish: rdza
- Italian: ruggine
- Russian: ржавчина
- Esperanto: rustteksto
- Hindi: zung
- Hungarian: rozsda
- Chinese: xiu (锈)
- Spanish: rustico
- Korean: Nok (녹)
- Finnish: ruoste
- Arabic: sada
- Turkish: pas
- Vietnamese: gỉ
- Japanese: sabi (錆)
- Danish: rust?
- Marathi: gan̄ja
- Romanian: rugină
- Czech: rez
- Ukrainian: irzha
- Bulgarian: ryzhda
- Slovak: hrdza
- Catalan: rovell
- Corsican: rughjina
- Indonesian: karat
- French: rouille
License Publique Rien à Branler, the official translation of the WTFPL by the same author.