one small runtime,
everything built on it.

virex is a c++17 bytecode vm and x86-64 jit. it runs the .vx language, ships 103 pure-virex standard library modules, and includes an lsp, formatter, package checker, module format, debugger, and go-to-c++ translator with differential tests.

what is here

no filler: the site is a direct map of the repository and what it can actually do.

language

closures, records, interfaces, match, defer, destructuring, slices, interpolation, compound assignment, and exceptions.

read the tour →

runtime

stack vm, verifier, peephole optimizer, mark-sweep gc, mmap heap, and a hand-written hot-block jit.

see the vm →

standard library

103 modules written in virex, each with source, tests, expected output, docs, and an example.

browse the catalog →

tooling

pkg list/check/path, fmt with --check and --write, lsp, module emission, disassembly, debugger, and capability gates.

see the tools →

editors

textmate and tree-sitter grammars, vs code, jetbrains and visual studio assets, plus a real language server.

see integrations →

playground

run, check, disassemble, analyze and emit modules from a plain browser page backed by the local compiler binary.

open the playground →

honest limits

capability gating is not an os jail. the jit is partial. gocpp is a tested subset, not full go.

read the limits →

start in five commands

the same commands work from the repository root.

cmake -S . -B build -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
ctest --test-dir build --output-on-failure
./build/virex examples/fib.vx
./build/virex pkg check --root .

more setup, flags, and workflows →

documentation map

the documentation page is intentionally plain to read, but the content is deep: language reference, compiler internals, vm and jit, gc, module format, natives, stdlib, lsp, editor assets, gocpp, testing, limits, and roadmap.

overview and goals

what virex is, what it is not, and how the pieces fit.

language reference

values, expressions, statements, functions, records, errors, and modules.

compiler and runtime

lexer, parser, bytecode, verifier, optimizer, vm, jit, gc, and module container.

editor support

lsp design, every feature, honest limits, and editor assets.