VORKUTA5

Code with VORKUTA 5's algorithmic syntax

VORKUTA5 is a minimal and expressive programming language built on C++ and Ruby, designed to be readable from day one.


Unix
curl https://codeberg.org/VORKUTA5/VORKUTA5/raw/branch/main/install.sh | bash

Built for clarity

Readable by default

Keywords like VARIABLE, COUNTER, and LIST make code understandable without any extra comments.

Powered by C++ & Ruby

Written mostly in C++, VORKUTA5 is a very robust language. This allows for quick bug fixing and minimal bugs all together. It's Ruby usage also allows for easy execution of Ruby.

Lightning fast

Being made with C++ is also great for speed. VORKUTA5 is very quick for being an interpreted language due to being written in C++. One could even say... lightning fast.

Built-in Web-capabilities

Easily define routes with SERVER, serve files, and handle HTTP requests, all with VORKUTA5's clean syntax.

Supported on Linux, Windows, & Mac.

One (or a couple) install command(s) gets you up and coding in VORKUTA5.

VORKUTA5 in practice

basics.v5
^ Variables hold text, counters hold numbers
VARIABLE name = "What's your name? ".take
COUNTER score = 0

^ Increment and check
REPEAT 5 AS i:
    score += i

OUT "Hello, {name}! Your score is {score}." &wrap

^ Control flow
IF score >= 10:
    OUT "Great score!" &wrap
ELSE:
    OUT "Keep going!" &wrap
^ Lists and Tables
LIST fruits = ("apple", "banana", "cherry")
fruits.append("mango")

TABLE user = {
    "name": "Alice",
    "age": "30",
    "scores": ("95", "87", "92")
}

^ Iterate
FOR fruit IN fruits:
    OUT "{fruit}" &wrap

^ Table methods
OUT user.has("name") &wrap    ^ true
OUT user["scores"][0] &wrap   ^ 95
^ A simple web server

SERVER ('/', ('GET')):
    RETURN 'index.html'
END

SERVER ('/api/greet', ('GET', 'POST')):
    TABLE body = request.body.dynamic()
    VARIABLE name = body["name"]
    RETURN `{"message": "Hello, {name}!"}`
END

SERVER.start()