Roadmap
Korr’s goal: one language and one executable for the backend, the frontend and
everything in between, with built-in features that are safe by default, complete
enough that you rarely need a package, and fast.
This roadmap lists what is missing today, in the order we plan to build it. Each
phase makes Korr usable for a bigger class of projects. Items can move as we learn;
discussion and help are welcome in
issues; see
CONTRIBUTING.md.
Each item is marked done, in progress or planned.
Done
In 0.8:
- Done: Register bytecode VM in safe Rust (loops on par with PHP 8.4)
- Done: Web server, router, templates, cookies, static files, request simulator
- Done: SQLite, PostgreSQL, MySQL/MariaDB; HTTP client with verified HTTPS
- Done: Crypto (SHA-256, HMAC, PBKDF2, tokens), logging, regex, CSV,
.env
- Done:
korr build single executables; installers for Linux, macOS, Windows
- Done: Git-based package manager with a lock file
- Done: Editor support with autocomplete (VS Code family, Sublime Text, Vim/Neovim)
In 0.9 “Agate”:
- Done: File uploads (
multipart/form-data) with safe file names and size limits
- Done: Cookie sessions signed with HMAC, CSRF protection on by default for forms
- Done:
validate(data, rules) for request input
- Done: Migrations with
conn.migrate(dir)
- Done: Source tree organised by component, rustfmt and Clippy in CI, developer documentation
In 0.10 “Basalt”:
- Done: Enums with data and exhaustive
match
- Done: Command-line programs:
cli.parse (options, arguments, generated help), the
term module (colours, terminal width), fs.walk and fs.glob
- Done:
korr fmt and korr check --json
- Done: Editor features: typed signatures, go to definition, references, rename,
formatting, errors as you type
- Done: Benchmark suite with 23 workloads, start-up time and memory (
bench/run.py)
In 0.11 “Corundum” (speed):
- Done: Strings that grow in place, 16-byte values, inline caches for struct
fields, faster method and named-argument calls, small maps without hashing,
faster JSON, the mimalloc allocator. Korr is now faster than CPython overall.
- Done:
korr disasm and a profiler that works without perf
In 0.12 “Diamond”:
- Done: Server workers:
app.listen(port, { workers: n }) serves several requests
at once, each worker with its own VM (no shared data, no data races)
- Done: Cheaper calls to built-in and module functions, inline cache for map fields
In 0.13 “Emerald”:
- Done: WebSockets and Server-Sent Events with publish/subscribe across workers
- Done: A dispatcher that hands each request to an idle worker; slow clients no
longer hold up the server
- Done: CORS, rate limiting,
app.trust_proxy
Phase 1: production-ready backend (0.14 “Feldspar” and later)
- Done (0.12): Concurrent HTTP server: worker threads, each with its own
isolated VM (no shared mutable state, so no data races),
workers: "auto" for
one per CPU thread.
- Done (0.12): One database connection per worker (each worker opens its own).
- Planned: TLS connections to PostgreSQL/MySQL.
- Done (0.13): WebSockets and Server-Sent Events, with publish/subscribe across
workers.
- Done (0.13): CORS and rate limiting (shared by all workers).
- Planned: Sessions stored in the database for data that must not be readable by
the client.
- Planned:
korr migrate command (migrations run from the CLI, with rollback files).
- Planned: Response compression,
ETag/caching headers, HTTP range requests.
- Planned: JWT and OAuth 2 / OpenID Connect login helpers.
- Planned: Email (SMTP with TLS), background jobs and a scheduler (cron syntax),
an in-memory cache with expiry.
- Planned: HTTPS in the built-in server (automatic certificates) for small deployments
without a proxy.
Phase 2: frontend and full-stack
- Planned: Components and layouts for
html"..." templates (slots, partials),
so pages are built from reusable pieces.
- Planned: Interactive pages without writing JavaScript: htmx-style attributes and
helpers for partial page updates, built on Phase 1’s WebSockets/SSE for live
updates.
- Planned: Korr in the browser: the VM compiled to WebAssembly, so the same Korr
code (for example validation rules or formatting) runs on the server and in the
browser.
- Planned:
korr dev: development server with file watching and live reload.
- Planned: Asset handling: fingerprinted file names, cache headers, optional bundling
and minification of CSS/JS.
Phase 3: a safer language
Moving closer to Rust’s promise of catching bugs before the program runs:
- Planned: Optional static type checking (
korr check --types): use the existing
annotations (fn f(n: int) -> str) to report type errors at compile time,
and infer types where annotations are missing.
- Done (0.10): Enums with data (sum types) and exhaustive
match, checked before the program runs.
- Planned:
Option/Result-style error values built on enums, with a ? operator
to pass errors up.
- Planned: Interfaces / traits for structs.
- Planned: Cycle collection, so data structures that reference themselves are
freed (today they live until the program exits).
- Planned: Structured concurrency for programs:
spawn tasks and channels, with the
same isolation rules as the concurrent server.
- Done (0.10):
korr fmt: one official code style.
- Planned: Language server (LSP): the VS Code features of 0.10 (errors as you
type, go to definition, rename, typed hover) for every editor that speaks LSP
(Neovim, Helix, Zed, Sublime Text, JetBrains).
- Planned: Debugger (breakpoints, stepping) and test coverage (
korr test --coverage).
- Planned:
korr doc: documentation pages from // comments.
- Planned: Package registry with
korr publish and version ranges.
- Planned: Signed releases (Windows Authenticode, macOS notarisation) and packages for
Homebrew, Scoop, winget, apt and Docker Hub.
Phase 5: speed
Always in safe Rust; every change is measured with bench/run.py (see
bench/RESULTS.md for the current numbers).
- Done (0.11): Growing strings in place, 16-byte values, inline caches for
struct fields, faster method calls, small maps without hashing, faster JSON,
the mimalloc allocator.
- Planned: Cheaper calls (today about 20 ns; CPython about 13, PHP about 5):
handle calls and returns inside the inner loop instead of leaving it for every
call, and run callbacks (
map, filter, sort) without re-entering the VM.
- Planned: Inline caches for method lookups; constant operands for arithmetic
(
x * 0.5 without loading the constant into a register).
- Planned: Ahead-of-time compilation of hot functions to machine code (for example
with Cranelift) for numeric code.
- Not possible in safe Rust: hardware SHA instructions (PHP and Node.js use them
through OpenSSL, which makes
crypto.sha256 3 to 5x faster there).
Not planned
- Manual memory management or
unsafe in Korr programs.
- Implicit type coercion (
"1" + 1): errors stay errors.
- A shell inside
os.exec.