Skip to content

About

Kryos: a capability-safe systems language for trustworthy software and governed AI agents

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1,862 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Kryos

License: Apache 2.0 Version Targets Parity Diff-fuzz Self-host Ecosystem check VS Code

Why Kryos?

Short answer: when an AI agent writes or runs code, you need to know what that code is allowed to touch. No mainstream language tells you.

In most languages, any function can read your files, open a network connection, or run a shell command, and nothing in the code says so. The only way to find out is to read every line. That was manageable when people wrote all the code. It stops being manageable when an AI agent writes the code and runs it.

Kryos puts that permission into the code itself. A function says what it needs, for example @capabilities(net, io), and the compiler refuses to build the program if anything reaches for more than it declared. You can see what a program is allowed to do before you run it.

Why not use a language that already exists?

  • Rust is safe and fast, but hard to learn, and it does not track what a function is allowed to do.
  • Go and Python are easy to read, but any line can touch the file system or the network without saying so.
  • A permission library added to an existing language only covers the calls it knows about, and code can route around it. Following authority through every call, closure and data structure takes the compiler.

So Kryos aims for the middle: memory-safe without Rust's learning curve, readable like Go, compiled to fast native binaries, plus the permission tracking none of them have.

Honest caveat: today this is a strong check while you develop, not a security sandbox. Do not run code you do not trust behind it alone. docs/THREAT-MODEL.md lists the known gaps, and docs/WHY_KRYOS.md has the longer design story.


Kryos is a compiled, general-purpose programming language: memory-safe without lifetime annotations (ARC + move semantics - a Swift-like trade-off, not Rust's borrow checker), with native binaries and the clarity of Go. It ships a complete toolchain: compiler, formatter, LSP, package manager, debug info, and editor extensions - 30+ subcommands, 15 LSP capabilities, 60+ stdlib modules, and a cookbook of recipes.

fn main() {
    println("Hello, Kryos!")
}
kryos run hello.kry

In one minute

  • It's fast. Native binaries via LLVM. On 1.3.0 Kryos takes 0.59x to 1.04x of Rust's time on five of seven benchmarks and 1.34x and 1.88x on the other two, and is 32x to 307x faster than Python on five of them. Measured medians, methodology, and where Kryos loses (and why) in BENCHMARKS.md.
  • It's safe. Memory safety by construction (ARC + move semantics), no 'a lifetime annotations, no GC pauses. This is a Swift-like ownership model - simpler than Rust's borrow checker, and not equivalent to its compile-time guarantees (no data-race freedom proofs). Known exceptions on 1.3.0: values linked through shared pointers are never freed, one shared shape corrupts the heap in release builds, and a match on an Option field of a struct parameter leaks its payload (LEDGER items 137 to 139). Capability-typed effects catch I/O leaks at compile time.
  • It's small. One binary, no LLVM dependency for development, ~20 MB compiler, ~700 MB to build from source.
  • It runs anywhere. Native (Linux / macOS / Windows / Intel / Apple Silicon) from the same source, plus an explicit-subset WebAssembly target (scalars, strings, closures, host-import I/O - anything outside the subset is a clear compile error, never a miscompile; see docs/wasm-contract.md).
  • Both backends are held to the same answer. A differential fuzzer generates random type-correct programs (structs, enums, closures, loops, containers, exception paths) and diffs the JIT's output against the AOT binary's - 14,000+ programs, zero divergences, and a smoke run repeats on every CI push. An ICE-hunt harness additionally mutates valid programs into garbage and requires diagnostics, never a compiler panic - 1,168 mutants, zero ICEs (tools/diff-fuzz/).
  • It self-hosts. The compiler is written in Kryos and reaches a byte-identical self-hosting fixed point - a self-host-compiled compiler recompiling its own source produces a bit-identical compiler (stage-3 == stage-4, SHA-256-verified). The self-host source type-checks clean (all 16 modules) and ownership-checks with zero errors; the reproduction bootstrap passes --skip-ownership for byte-determinism (a codegen-determinism concern, not a checker failure). Stage-1 is Cranelift-compiled (a different backend), so it is not byte-identical to later stages. The per-module standalone compile check (test_bootstrap.sh) passes 16/16 modules. See compiler/self-host/bootstrap-win.sh.
  • The toolchain is done. 30+ subcommands including run, build, check, test, bench, fmt, lint, audit, coverage, profile, trace, new, watch, clean, eval, doc serve, doctor, tree, pack, diff, info, workspace, config, welcome, cheat, changelog - the CLI surface is frozen for 1.x (see VERSIONING.md).
  • Stdlib is broad. 66 modules: fs, net, http, json, regex, datetime, duration, base64, uuid, hash, sort, collections, queue, stack, set, random, log, bytes, pathext, numfmt, strext, cmd, iter, and more.
  • It governs AI agents at compile time for direct authority AND closure/fn-value indirection, including through containers - and they embed anywhere. @capabilities(...) is authority the compiler tracks through the call graph and verifies (E05xx on violation). Three enforcement modes - permissive, inferred (deny-by-default with interior inference), and strict (--strict-capabilities; tests/strict_caps_examples.sh requires every example under examples/, examples/showcase/ and examples/showcase/extra/ that has a fn main to pass it, except the deliberately rejected *_overreach demos). Deny-by-default is the default. A loose kryos run foo.kry - no flag, no project file - rejects any undeclared authority at compile time; you declare it once on main and the compiler infers every helper, catching it through direct calls, method dispatch, a builtin passed as a value BY NAME, or a closure/fn-value flowing through a parameter, local, return value, passthrough chain, actor message, spawn, generic, dyn Trait dispatch, or a CONTAINER (a struct field, array element, or map value that holds a closure, including nested combinations). --capabilities-mode=permissive opts out. kryos new scaffolds this posture. The compiler, examples, self-host compiler, and every ecosystem package are all deny-by-default (details in docs/capability-roadmap.md). See docs/10-capabilities.md for the checked surface - and read docs/THREAT-MODEL.md before treating any of this as a hard security boundary: as of 2026-11-02 (master 7cab5799) 80 of the 260 known capability-escape repros under tests/security/ still escape and 180 are rejected, each of the 80 accepted in the default-inferred mode and under --strict-capabilities (bash tools/loop/escape_status.sh re-measures this on demand, the live shapes are listed under Status below and one per row in docs/THREAT-MODEL.md section 4.1; tools/loop/check-docs-truth.sh, the acceptance of the docs-truth node of tools/loop/GRAPH.md, fails if these counts, or the ones in the Status paragraph below, drift from the measurement; it is not a CI job). The early escapes shared one root: enforcement resolved the callee by pattern-matching the syntactic shape of the call expression, so shapes it did not enumerate were not gated at all; capability-ROW enforcement (type-directed, added 2026-08-12) is applied to every call in the code the type checker walks, which does not include the arms of a select or the body of a trait default method (items 126 and 122). In the code it does walk it misses the shapes of items 119, 121, 123, 124 and 125 (22 live repros), and 54 of the live repros are mis-charged by the shape layer where the row layer does not judge the block. Zero KNOWN escapes is not zero escapes - that corpus is 260 adversarial shapes found by directed search, not a proof of soundness. Capabilities are a strong DEVELOPMENT-TIME discipline today; they are not yet a boundary to run untrusted code behind. Alongside it, @budget refuses before spending and Tracked<T> carries provenance in the type. The same governed agent runs as a native binary, compiles to WebAssembly, and loads into Python / Go / Node / C# hosts through the C ABI with a machine-readable authority manifest - see ecosystem/kryos-embed/.

Status: Kryos is 1.3.0 - feature-complete, self-hosting, and usable. Conformance is 118/118 on both backends (bash tests/conformance/run_conformance.sh; this count grows as tests are added -- tests/docs_status_gate.sh, a tier-1 gate of tools/loop/kryos-loop.sh, fails if this number drifts from the live file count). The CLI surface, LSP method set, stdlib symbol table, and ABI symbols are frozen as of 1.0 under semver; see STABILITY.md for the contract and §5 Known limitations for what is measured, open, and deliberately shipped. One of those is worth reading before you adopt: 1.0 was cut without the external-workload soak VERSIONING.md originally required - the owner waived that precondition, and the waiver is recorded there rather than quietly dropped.

Capabilities are a compile-time check, not a sandbox. docs/THREAT-MODEL.md states what @capabilities, deny! and @pure guarantee, what they do not, and lists the 80 capability escapes in the 260-repro corpus that are still accepted, plus four accepted zero-authority shapes outside it (B5, B6 and B7 by design or scope, B9 an open defect), each with a committed repro. The lists are not exhaustive. bash tools/loop/check-escapes-documented.sh fails if they and the measurement disagree. Do not run code you do not trust behind them alone.


Start here

If you want to... Go to
Install and verify in 5 minutes QUICKSTART.md
Learn the language cover-to-cover the book
Guided path: install, tour, cookbook, deep dives docs/learn/
Browse the full docs docs/README.md
Build an MCP server in 60 seconds kryos-mcp-template
Embed a governed agent in your Python/Go/Node app ecosystem/kryos-embed
See what's verified working (apps, demos, probes) SHOWCASE.md
Understand how it was built (and verified) docs/HOW_THIS_WAS_BUILT.md
See real benchmark numbers BENCHMARKS.md
Contribute CONTRIBUTING.md
Understand the design philosophy docs/WHY_KRYOS.md

Install

Linux / macOS

curl -fsSL https://raw.githubusercontent.com/NORTHTEKDevs/kryos-lang/master/install.sh | bash

Windows (PowerShell)

irm https://raw.githubusercontent.com/NORTHTEKDevs/kryos-lang/master/install.ps1 | iex

After installing, verify the toolchain and take the tour:

kryos doctor    # checks linker, stdlib, runtime libs
kryos welcome   # first-run banner with an example workflow
kryos new hello && cd hello && kryos run

From source

git clone https://github.com/NORTHTEKDevs/kryos-lang.git
cd kryos-lang/compiler
cargo build --release -j 2
./target/release/kryos --version   # → kryos 1.3.0

Requirements: Rust 1.75+, a C compiler (cc/clang/MSVC) for linking. LLVM is not required for development - the LLVM backend emits IR as text. You only need clang or llc on PATH if you want optimized release binaries.

For a full walkthrough including build footprint and troubleshooting, see QUICKSTART.md.


What it looks like

Functions, types, control flow

fn fizzbuzz(n: i64) {
    for i in 1..=n {
        if i % 15 == 0      { println("FizzBuzz") }
        else if i % 3 == 0  { println("Fizz") }
        else if i % 5 == 0  { println("Buzz") }
        else                { println(to_string(i)) }
    }
}

fn main() { fizzbuzz(20) }

Enums and pattern matching

enum Shape {
    Circle(f64),
    Rectangle(f64, f64),
    Point,
}

fn area(s: Shape) -> f64 {
    match s {
        Shape::Circle(r)       => 3.14159 * r * r,
        Shape::Rectangle(w, h) => w * h,
        Shape::Point           => 0.0,
    }
}

Concurrency with channels

fn main() {
    let ch = chan()
    spawn {
        let mut sum = 0
        for i in 1..=10 { sum = sum + i }
        send(ch, sum)
    }
    println("sum = " + to_string(recv(ch)))
}

Async/await (cooperative executor)

async fn worker(name: str, n: i64) {
    let mut i = 0
    while i < n {
        coop_record(name + to_string(i))
        await 0                 // yields to the scheduler
        i = i + 1
    }
}

fn main() {
    coop_spawn(worker("A", 3))
    coop_spawn(worker("B", 3))
    coop_run()
    println(coop_order())       // → A0 B0 A1 B1 A2 B2 (genuinely interleaved)
}

Status: await is a real cooperative suspension point - it hands control to the scheduler so another ready task runs, and tasks genuinely interleave under coop_run() (verified on both backends). What is not yet shipped is a non-blocking I/O runtime: await http_get(url) yields cooperatively but the underlying socket read is still blocking. So async/await gives you cooperative concurrency today, not async I/O. See docs/09-concurrency.md.

Capability-typed effects (compile-time enforcement)

@pure
fn hash(data: str) -> i64 {
    // compile error if this calls io/net/process
    compute_hash(data)
}

@capabilities(io)
fn read_config(path: str) -> str {
    file_read(path)
}

What it targets

One CLI, three backends:

Backend Use when Speed
cranelift (default) Dev loop, quick rebuilds ~500ms cold
llvm Release binaries, max throughput Matches Rust --release
wasm Browser, WASI, edge sandboxes Portable bytecode
kryos build hello.kry                     # Cranelift (fast)
kryos build --release hello.kry           # LLVM (optimized)
kryos build --backend wasm hello.kry      # WebAssembly

How it compares

Medians of 5 runs on Kryos 1.3.0, in seconds (lower is better). BENCHMARKS.md records the commit, machine and toolchains, the spreads, the Cranelift column and the startup floors; every port printed the same output.

Benchmark Kryos (LLVM) Rust -O clang -O2 clang++ -O2 Go Python Kryos / Rust
fib 0.362 0.358 0.356 0.357 0.722 17.758 1.01x
mandelbrot 0.383 0.381 0.381 0.373 0.391 20.466 1.00x
nbody 0.150 0.112 0.154 0.158 0.258 46.104 1.34x
binary_trees 1.455 0.772 0.691 0.732 0.492 2.389 1.88x
fannkuch 0.204 0.196 0.192 0.187 0.197 6.542 1.04x
matmul 0.620 0.645 0.645 0.643 0.561 34.818 0.96x
hashmap 0.086 0.147 n/a 0.487 0.159 0.671 0.59x

Kryos is level with Rust (within 4%) on recursion and on floating-point and integer loops (fib, mandelbrot, fannkuch, matmul), and faster on map-heavy code (hashmap). It trails on nbody (1.34x) and on allocation-heavy recursion (binary_trees, 1.88x). binary_trees was 1.42x at 1.0.0-rc.2; most of the slowdown is a memory leak: its shared nodes are never freed (LEDGER item 137). The per-benchmark analysis, "where we lose and why", is in BENCHMARKS.md.


What ships in 1.3.0

The full toolchain. Not a roadmap - actually built and tested:

  • Compiler - three backends (Cranelift / LLVM / WASM), zero cargo warnings, 670+ workspace tests passing
  • Self-host - bootstrap reaches a byte-identical fixed point (stage-3 == stage-4); the self-host source type-checks and ownership-checks clean, and the per-module standalone compile check passes 16/16 modules. See docs/20-self-hosting.md
  • Language - ownership, traits with Self, generics, pattern matching, closures, capabilities, FFI (async/await parse but lower synchronously - see Status). comptime also parses and runs, but not at compile time yet - see docs/11-comptime.md.
  • Standard library - 66 modules covering strings, math, collections, JSON, HTTP, regex, datetime, crypto, files, processes, channels, tensors, AI primitives
  • Debug info - LLVM DWARF emission; addr2line resolves Kryos source lines in optimized binaries
  • Concurrency - real OS-thread parallelism with spawn + channels (chan<T> MPMC, select), actor message-passing (private state, in-order handling, threads joined at exit), and non-blocking async/await: a blocking I/O op (sleep, http_get, tcp_*) inside an async task yields the scheduler, so coop_spawn N tasks and their I/O overlaps - 4 × 300 ms of I/O finishes in ~300 ms, not 1.2 s (verified concurrent on both backends). await also interleaves CPU-bound tasks cooperatively.
  • WASM stdlib parity - strings, arrays, JSON, regex, HTTP all callable from Kryos compiled to WebAssembly
  • Package manager - kryos pkg init / add / remove / install / publish / search / outdated. Lockfile, semver resolution, content-addressed checksums
  • Editor extensions - VS Code (live on the marketplace) and Zed (dev-extension)
  • REPL, formatter, doc generator, test runner, LSP, C-header bindgen
  • Package registry - full spec + dependency-free reference HTTP server in tools/registry/

Detailed release notes: CHANGELOG.md.


What it means for languages

Kryos is built on a thesis: memory safety without lifetime annotations is achievable, and the "complexity tax" Rust imposes for safety is mostly avoidable if you accept ARC + move-semantics over borrow-checking. The trade is small: a tiny ARC overhead in exchange for code that looks closer to Go or Python than to Rust.

Kryos also takes seriously the idea that a language should ship with everything needed to finish a project. Stdlib, concurrency (spawn/channels/async), HTTP, JSON, regex, crypto, package manager - all in the box. You should be able to write a real program without picking 14 third-party crates and praying their version ranges align.

The third thesis is capability typing as a first-class compile-time check. @pure and @capabilities(io, net) aren't lint hints - they're enforced. A function annotated @pure that secretly calls file_read is a compile error, not a runtime surprise. This is the foundation for trustworthy plugin systems, sandboxed execution, and auditability.


Toolchain

kryos run [file|dir]          Compile and execute (defaults to the current project)
kryos check <file.kry>        Type-check without running
kryos build <file.kry>        Compile to native (Cranelift default)
kryos build --release         Compile via LLVM backend
kryos build --backend wasm    Compile to WebAssembly
kryos fmt <file.kry>          Format in place
kryos test                    Discover + run @test functions
kryos doc <file.kry>          Generate HTML documentation
kryos repl                    Interactive REPL with persistent state
kryos pkg <subcommand>        Package manager (init / add / install / publish / ...)
kryos bindgen <header.h>      Generate Kryos bindings from C headers
kryos lsp                     Language server (used by VS Code / Zed extensions)

Status

Kryos is 1.3.0. docs/BUGS.md tracks fixed regressions as a changelog; the live, ranked list of everything still open is tools/loop/LEDGER.md. The package-registry supply-chain gap (kryos pkg install/add verifies a real sha256:<hex> content hash of the fetched package against the registry index before trusting it, rejects a mismatch or a missing checksum, and re-verifies even a cache hit) and the container-shaped closure/fn-value capability-laundering gap (a struct field, array element, or map value holding a closure is traced by capability checking in every mode, including --strict-capabilities) are both CLOSED. UPDATE (2026-11-02, re-measured): that claim was measured again against a wider corpus and it was wrong. bash tools/loop/escape_status.sh now reports 80 known, reproducible capability escapes still live, 180 rejected (260 repros). "0 escaping" had been true of the 19 repros the script listed while eighteen other shapes escaped: ten were already committed under tests/security/, each with a header saying it leaked, wired into no gate, and eight more were found by following their routing. All of them are in the script now, and all of items 55-72 are fixed: 59 and 65-71 by the R2 wave of 2026-11-01 (a closure stored into a slot widens the slot's row), 64 and 72 by the R3 wave of 2026-11-02 (the deny! verdict is taken when the whole module has been checked, and again at every reference to the function that holds the block), item 58, the spawn lambda shadow, by the full expression walk, and the rest earlier. The R3 wave also closed items 77 (row layer), 114, 115, 116 and 120 and four of the seven repros of item 118; their measured routing is in tools/loop/ESCAPE-ROUTING.md and the history in tools/loop/LEDGER.md. The 80 live repros, none of them closed, all accepted by kryos check in the default mode and under --strict-capabilities, all of them leak when run, and in every one main declares fs:read and what fails is the narrowing of a deny! block: (119, five repros) a callee that stores a closure into a container it was handed, where the container sits inside a tuple, Option, Result or enum parameter; (121) deny!(fs), deny!(io) and deny!(all), which the row layer does not match against a used fs:read; (122) a deny! inside the body of a trait default method, which the type checker never checks; (123, three repros) the same store, reached through a factory result, a generic function with a trait bound or a dyn dispatch; (124 and 125, thirteen repros) a function declared above the callee it hands a closure to, or a store made by a callee declared below its caller; (126, three repros) a deny! inside a select arm, which the type checker never walks; and (127 to 134, 54 repros) the shape layer mis-charging a call through a local closure, a name a local closure also uses elsewhere, a chained call, a captured parameter, a loop rebinding, a hidden return, a field of a call result or a container element; 53 of those 54 put the deny! in a select arm, and each is rejected (E0110) once the block is moved out of the arm. A fix for the largest shape-layer family (items 128, 130, 132 and 134, PR #41) was refuted twice by independent verifiers, each time because it let through programs that master rejects, and is deferred past 1.3.0. A reassignment of a fn-typed local that sits inside any other expression form (an unsafe or quantum block, a match or if used as an argument or operand, a loop or if condition, a scrutinee or guard, a string interpolation, a collection literal) is now rejected, and so is the same hiding place for a closure written into a map element, array element or struct field: 26 forms of the first and 8 of the second are pinned in tests/security/. tests/capability_matrix_gate.sh's combinatorial enumeration still reports 75/75 attacks rejected in both modes across SOURCE x CONTAINER x TRANSPORT, which is exactly the point: that corpus does not contain these shapes. A green escape count is not a soundness proof - the corpus is adversarial shapes found by directed search, not an exhaustive argument, and the next shape nobody has thought of is the one that matters; see docs/LAUNCH-READINESS.md for the full, honest verdict including what remains a documented (not a bug) cost: enforcing fail-closed on every unresolved closure provenance means 41 of 75 enumerated legitimate pure-closure shapes currently require @capabilities(all) to compile (LEDGER item 41, precision cost, deliberate - soundness was prioritized over convenience). Everything else in the toolchain (type system, ownership/ARC, generics, concurrency, both native backends, self-hosting) is feature-complete and gated green; tools/loop/LEDGER.md's OPEN section is the authoritative current queue. Self-hosting compiler: bootstrap fixed point stage-3 == stage-4, byte-identical; the self-host source type-checks and ownership-checks clean, with --skip-ownership used in the reproduction bootstrap for byte-determinism.

What happened to v4? During the project's bring-up, version numbers tracked development sprints, not conventional semver maturity - the repo reached an internal "v4.46" within months, which would mislead newcomers about field maturity. Before public release the scheme was recalibrated down to a 0.x/1.0 line. Historical tags (v0.x-v4.46) are preserved; the mapping is in VERSIONING.md. Tags of that abandoned scheme stay local-only and are never pushed; every version tag on GitHub (v0.9.0 onward, including v1.1.0 and v1.2.0) belongs to the current line.

1.0.0 shipped 2026-08-31 (tag v1.0.0, commit 17afa1a1, published as the repo's Latest release, superseding v0.9.0). VERSIONING.md originally required an external-workload soak before 1.0.0 final; that precondition was waived by the project owner rather than met, and the waiver - including what it does and does not claim - is recorded in VERSIONING.md. Read it before you adopt.

Feature Status
Type system + inference Complete
Ownership / ARC + move semantics Complete
Generics + monomorphization Complete
Traits with Self type Complete
Pattern matching + enums Complete
Closures (ARC-captured) Complete
Channels + spawn + select Complete
Actors (message-passing) Complete (JIT + AOT)
Async / await Complete - non-blocking I/O (blocking ops yield the scheduler; async tasks overlap I/O) + cooperative CPU interleaving; both backends
Capability enforcement (@pure, @capabilities) Complete
@test runner, @copy, @pure CSE Complete
Cranelift backend Complete
LLVM backend (native + DWARF) Complete
WebAssembly backend Complete (v0.1 - assumes i64 array indices)
Module system + package manager Complete
LSP, REPL, formatter, doc generator Complete
Editor extensions (VS Code, Zed) Complete
Package registry (spec + reference server) Functional; install-time content-hash verification implemented

Quality bar (every release):

  • Workspace lib tests: 670+ passing (70 suites, zero failures)
  • MIR lib tests: 79/79
  • Build warnings: 0
  • Self-host bootstrap: byte-identical fixed point (stage-3 == stage-4, SHA-256); standalone per-module compile check passes 16/16 modules

Self-host status

The Kryos compiler is written in Kryos. Stage-0 is the Rust-implemented kryos.exe. Stage-1 is the Kryos-compiled compiler that stage-0 produces from compiler/self-host/*.kry (~22,300 lines of Kryos source). Because stage-1 is built by the Cranelift backend (a different backend), it is not byte-identical to later stages. The canonical bootstrap criterion is the fixed point: stage-3 == stage-4, SHA-256-verified (stage-2 is produced by the Cranelift-built stage-1, so it converges one stage later). The self-host source type-checks clean and ownership-checks with zero errors; the reproduction bootstrap passes --skip-ownership for byte-determinism (not because ownership checking fails). The 16 modules are token, lexer, ast, parser, types, mir, lower, optimize, regalloc, x86, codegen, elf, coff, linker, runtime, main; the standalone per-module compile check (test_bootstrap.sh) passes 16/16.

Verify yourself:

cd compiler
cargo build --release -j 2
# Byte-identical fixed point (the canonical criterion):
bash self-host/bootstrap-win.sh    # → stage-3 == stage-4 (SHA-256)
# Per-module standalone compile check:
bash self-host/test_bootstrap.sh   # → PASS: 16 / 16

Project layout

kryos-lang/
  compiler/
    crates/          22 Rust crates (~115k lines) — the toolchain
    stdlib/          66 stdlib modules (.kry sources)
  examples/          59 runnable example programs (repo root)
  docs/              20-chapter manual + grammar + learn/
  editors/
    vscode/          Marketplace-ready VS Code extension
    zed/             Zed extension scaffold
  benchmarks/        Benchmark suite (Kryos vs Rust/gcc/clang/Go/Python)
  tools/
    registry/        Reference Kryos package registry HTTP server
  install.sh         Linux/macOS installer
  install.ps1        Windows installer

Where you can help

Kryos is a real working language but it has one user. Things that move the needle right now:

  1. Try it. Write a small program. File an issue on anything that surprises you.
  2. Write a package. Anything reusable - a database driver, a CLI parser, a logging library, a date library. Tagged good-first-package in Discussions.
  3. Port a benchmark. If you know another language well, port a real benchmark from it and tell us where Kryos surprises you (in either direction).
  4. Pick a starter task. .github/STARTER_TASKS.md lists scoped first-PR-sized tasks (cookbook recipes, stdlib additions, example programs, diagnostic polish, editor work). Issues tagged good first issue on the tracker are also fair game.
  5. Write a tutorial. Even a short blog post saying "here's how I built X in Kryos" is enormously valuable for adoption.

CONTRIBUTING.md has the full development setup. Discussions is the right place to ask anything open-ended.


Community & contact


License

Apache License 2.0. See LICENSE.

Built by NORTHTEKDevs with heavy AI-assisted development. If you build something with Kryos, open a Discussion - I want to see it.

About

Kryos: a capability-safe systems language for trustworthy software and governed AI agents

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages