Now has a home at https://krypton-lang.org
Honestly, do not have any friends that code, so I'm trying CodeRabbit, via ThePrimagens referrals to it.
Krypton (K) A systems language for the quantum‑classical frontier Krypton is a new programming language for a world where classical compute, quantum hardware, and distributed processes must work together with clarity and precision. K is built for engineers who want explicit control, researchers who need correctness, and systems designers who refuse to accept the messy glue layers that dominate hybrid computation today. Krypton treats quantum computation as a first‑class citizen — not a bolt‑on library, not a DSL, not a Python wrapper. Just a language built for the binary and quantum mixed future.
Purpose Modern systems are hybrid systems. Classical code orchestrates logic and state; quantum hardware performs specialized computation. Today, developers stitch these worlds together with ad‑hoc tools, opaque runtimes, and inconsistent semantics. Krypton takes a different stance:
- Quantum and classical code belong in the same language
- Boundaries must be explicit, typed, and enforced
- Determinism should be guaranteed wherever possible
- The language should feel natural to systems programmers K is designed for clarity, correctness, and long‑term stability.
Core Concepts Modules The unit of organization. A module defines types, functions, quantum blocks, and processes. Functions (Classical) Deterministic routines with explicit types and controlled effects. Quantum Blocks (qpute) Isolated quantum computations with explicit inputs, outputs, and measurement semantics. Processes Execution units that coordinate classical and quantum behavior, manage data flow, and define system‑level orchestration. Boundary Model K enforces a strict, typed boundary between classical and quantum worlds. No implicit conversions. No silent measurement. No hidden state.
module demo
just run {
kp("Hello World")
emit "ok"
}
Language Semantics (High‑Level) Type System
- Statically typed
- Deterministic classical types
- Quantum types with linear ownership
- Explicit measurement rules
- No implicit boundary crossing Memory Model
- Classical memory: deterministic, explicit
- Quantum memory: single‑owner, non‑copyable, measurement‑controlled
- No hidden state transitions Execution Model
- Classical functions run deterministically
- Quantum blocks (qpute) run on a backend (simulator or hardware)
- Processes orchestrate both worlds with explicit sequencing Error Model
- Classical errors: typed and recoverable
- Quantum errors: surfaced explicitly at the boundary
- No silent failures
Roadmap Short‑Term
- Classical type system
- Quantum block semantics (qpute)
- Minimal IR + backend interface
- Reference quantum simulator Mid‑Term
- Package manager
- LSP server
- Standard library
- Deterministic concurrency model Long‑Term
- Hardware‑agnostic quantum backend layer
- Verified boundary semantics
- Distributed process orchestration
- Production‑grade compiler pipeline Krypton is built to grow into the language developers will need for the next decade.
Contributing A contributer is not only the programmer, but those who would like to test it and see what it is capable, and share ideas for the language. Krypton welcomes contributors who care about:
- Systems programming
- Quantum computing
- Language design
- Compiler architecture
- Deterministic execution models If that’s you, jump in.