Czech for the Rust programming language

Overview

rez

rez Logo

Nejsi you tired from writing Rust programs in English? Do you like saying do prdele or pivo a lot? Would you like to try something different, in an exotic and funny-sounding language? Would you want to bring some Czech touch to your programs?

rez (Czech for Rust) is here to save your day, as it allows you to write Rust programs in Czech, using Czech keywords, Czech function names, Czech idioms.

This has been designed to be used as the official programming language to develop the future Czech sovereign operating system.

You don't feel at ease using only Czech words? Don't worry! Czech 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 rez:

vlastnost a implementuj (a.k.a. trait and impl)

rez::rez! {
    používej standardní_knihovna::kolekce::Slovník jako Slovník;

    vlastnost KlíčHodnota {
        funkce vlož(&já, klíč: Řetězec, hodnota: Řetězec);
        funkce čti(&já, klíč: Řetězec) -> Výsledek<Možná<&Řetězec>, Řetězec>;
    }

    statický měnitelný SLOVNÍK: Možná<Slovník<Řetězec, Řetězec>> = Nic;

    // Slib mi, že toto nikdy nepoužiješ mimo hlavní vlákno!
    struktura GlobálníSlovník;

    implementuj KlíčHodnota pro GlobálníSlovník {
        funkce vlož(&já, klíč: Řetězec, hodnota: Řetězec) {
            ať slovník = nebezpečné {
                SLOVNÍK.dostaň_nebo_vlož_s(Výchozí::výchozí)
            };

            slovník.vlož(klíč, hodnota);
        }

        funkce čti(&já, klíč: Řetězec) -> Výsledek<Možná<&Řetězec>, Řetězec> {
            jestli je Nějaký(slovník) = nebezpečné { SLOVNÍK.jako_odkaz() } {
                VPořádku(slovník.dostaň(&klíč))
            } jinak {
                Špatné("Ověření slovníku".konvertuj())
            }
        }
    }
}

Alternative syntax

#[povol(nedosažitelný_kód)]
funkce když_se_nepodaří() {
    panika!("Panika!");
    ups!("Něco se pokazilo");
}

Other examples

See the examples to get a rough sense of the whole syntax. It's that snadné.

Přispívání

First of all, moc děkuju for considering participating to this joke, the Czech government will thank you later! Feel free to throw in a few identifiers here and there, and open a pull-request against the hlavni (Czech for main) branch.

In the Czech spirit, feel free to introduce swear words.

But proč would you do this?

  • The glorious czech language can't fall behind the other languages
  • Pro zábavu

Other languages

Here's a non-exhaustive list of implementations for other languages:

You can find a more comprehensive list on @bnjbvr's rouille repo.

Poděkování

  • @bnjbvr for the idea, as well as the base repo
  • @aionescu for the exposure to this idea and inspiring me to do this

Licence

WTFPL

You might also like...
An interpreter for the esoteric programming language, Brainf*ck.

Brainf*ck Interpreter This is just a normal Brainf*ck interpreter written in Rust. If you don't know what Brainf*ck is, you can check out the wikipedi

Pua-lang - a dialect of The Monkey Programming Language

pua-lang PUA Programming Language written in Rust. What's pua-lang? pua-lang is a dialect of The Monkey Programming Language, intended to mirror the i

The Fluet programming language.

fluet Fluet is a scripting language. License Fluet is licensed under the Mozilla Public License, v. 2.0. Contributors may dual license their contribut

Ethereal - a general-purpose programming language that is designed to be fast and simple
Ethereal - a general-purpose programming language that is designed to be fast and simple

Ethereal is a general-purpose programming language that is designed to be fast and simple. Heavly inspired by Monkey and written in Rust

Dc improved: Feature-added rewrite of a 50+ year old RPN calculator/stack machine/programming language

dcim [WIP] dc improved: Feature-added rewrite of a 50+ year old RPN calculator/stack machine/programming language This readme is currently incomplete.

Squirt is a easy-to-use programming language.

Squirt is a easy-to-use programming language.

Osmon's compiler crate. Programming language made for starter & novice Uzbek audience.

Osmon Tili Osmon bu registrlarga asoslangan virtual mashinalik va yengil dasturlash tili Osmon boshqa o'zbek open source dasturchisi Sukhrob Khakimovn

A library for functional programming in Rust
A library for functional programming in Rust

It contains purely functional data structures to supplement the functional programming needs alongside with the Rust Standard Library.

A programming environment that aims to help people learn how to program in JavaScript, while giving them a tour on how old computers and their limitations used to be.
A programming environment that aims to help people learn how to program in JavaScript, while giving them a tour on how old computers and their limitations used to be.

This repository is for the new under renovation rewrite of the LIKO-12 project. The legacy version with the original stars and contributions is still

Owner
Radek Vít
C++ Developer for CCleaner Desktop
Radek Vít
luau bindings for the Rust programming language

?? luau-rs Luau bindings for the Rust programming language using bindgen ⚠️ Disclaimer This does not provide bindings for everything as luau does not

Vurv 18 Aug 3, 2022
The official home of the Nyson Programming Language, built off Rust.

Nyson Programming Language The official home of the Nyson Programming Language, built off Rust. (created by Nyelsonon and AMTitan, 2021) Advertisement

Nyson-Programing-Language 19 Aug 10, 2022
A simple programming language made for scripting inspired on rust and javascript.

FnXY Programming Language Quick move: CONTRIBUTING | LICENSE What? FnXY is a simple programming language made for scripting inspired on rust and javas

null 2 Nov 27, 2021
An OOP programming language I am making by following Crafting Interpreters.

horba An OOP programming language I am making by following Crafting Interpreters. https://craftinginterpreters.com/ I intend it to have a somewhat C-s

Thomas 3 Dec 5, 2021
Yet Another Programming Language

Yet Another Programming Language

null 4 Sep 15, 2021
The programming language for scalable development

Pen programming language Pen is the programming language that makes software development scalable, focusing on software maintainability and portabilit

Pen programming language 390 Dec 30, 2022
A newborn programming language for extensible software

A newborn programming language for extensible software.

Alexey Shmalko 17 Nov 29, 2022
A multithreaded programming language!

hydracane A multithreaded programming language! Getting started Coming Soon! Features: Multithreaded Platform independent Folders: src/vm: The Virtual

Krishna Ramasimha 0 Dec 10, 2021
CARBON is an interface-centric programming language named after the concept of an allotropy.

CARBON programming language Status: just an idea CARBON is an interface-centric programming language named after the concept of an allotropy. It is an

Tim McNamara 4 Aug 18, 2022
Lisp-style programming language

Bobbylisp A programming language, syntax are like mal and clojure. This project follow mal guides, Planning to add some more features after finishing

azur 36 Dec 19, 2022