Skip to content

m3Lith/rudys

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rūdys

Because fuck you and also I hate rust lmao

UwU

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:

trait and impl (aka bruožas ir implementacija)

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ų :(
            }
        }
    }
}

Other examples

See the examples to get a rough sense of the whole syntax. Viskas, that's it.

Contributions

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.

but why would you do det

  • jes

Other languages

License

License Publique Rien à Branler, the official translation of the WTFPL by the same author.

About

Rust programming, in Lithuanian.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%