Polish-first, end to end
Keywords, error messages, standard library names — everything reads in one language. Most programming languages assume English is neutral. AlexScript flips that choice and lets you finally think about code in Polish.
AlexScript is a full-fledged programming language with Polish keywords, a Polish standard library API, and Polish error messages. OOP with inheritance, async/await, exceptions, debugger, web framework. No compromises.
Asynchronously fetch data from two sources in parallel, parse JSON, catch typed exceptions — all in one small program. The keywords are Polish, but the shape will feel familiar to anyone who's written Python or JavaScript.
import("http")
asynchroniczna funkcja pobierz_dane(url) {
proba {
zwroc Http.get_json(url)
} zlap (e) {
pokazl "Sieć padła: #{e["wiadomosc"]}"
zwroc nic
}
}
asynchroniczna funkcja main() {
niech wyniki = czekaj Obietnica.wszystkie([
uruchom_rownolegle(fn() { czekaj pobierz_dane("https://jsonplaceholder.typicode.com/users/1") }),
uruchom_rownolegle(fn() { czekaj pobierz_dane("https://jsonplaceholder.typicode.com/posts/1") }),
])
niech udane = wyniki.filtruj(fn(v) { v != nic })
pokazl "Pobrano #{udane.dlg()} z #{wyniki.dlg()} zasobów"
}
uruchom(main)
Two commands to install, two to run your first program.
Install AlexScript via Homebrew
brew tap N3BCKN/alexscript
brew install alexscript
Run your first program
echo 'pokazl "Witaj!"' > test.as
alexscript test.as
Don't use Homebrew? See other installation methods — Docker, source, and VS Code extension.
Keywords, error messages, standard library names — everything reads in one language. Most programming languages assume English is neutral. AlexScript flips that choice and lets you finally think about code in Polish.
Classes with inheritance, mixins via modules, abstract classes, static and private methods, 36 introspection methods on every object. Every class is open — you can reopen it from another file and add methods to existing types. Exceptions themselves are classes.
HTTP, JSON, CSV, TCP/UDP sockets, regex, cryptography (SHA, HMAC), files, time, async/await with a fiber-based reactor. One import("name") call — no package manager, no configuration.
Built-in debugger triggered by a single debug() — breakpoints, watchpoints, runtime variable modification. VS Code extension with syntax highlighting and snippets. REPL with colored output. Online playground in the browser.
A WebAssembly build of the interpreter, with a small editor and example programs to load. No install required.
ProjectsThe Żubr web framework (~1500 req/s), the Poseł HTTP client with typed exceptions, and an Altair-style BASIC interpreter — all written in AlexScript itself.
Get itBody