Repository navigation
x2c 0.12.0 - First public preview
Pre-releasex2c 0.12.0 - First public preview
x2c extends C with dynamic values, collections, pattern matching, scoped allocation, exceptions, threads, and Lisp. The compiler and runtime are written in x2c and compile to C.
Recommended: the full repository
Start with the website and installation instructions, book, and full repository. The repository includes runnable examples, documentation, and all seven optional C-library packages: pcre2, yyjson, libcurl, termbox2, blis, libuv, and raylib. GitHub's source archives below contain the tagged repository.
For fun only: Cosmopolitan bootstrap experiment
The optional x2c.com download is an experiment for fun only, not a substitute for the full repository and not the recommended installation. It bundles enough source and headers to bootstrap a minimal native compiler and runtime using a local C toolchain. It does not include examples, the book, or optional packages.
SHA256SUMS contains the SHA-256 checksum for the executable. After checking it, you can try:
chmod +x x2c.com
./x2c.com bootstrap --prefix "$HOME/.local/x2c"This requires a GCC- or Clang-compatible C compiler and an archiver. Mac and Linux native installation have been tested. Windows native installation remains unfinished. The raylib package's tested profile is software-image rendering, not a desktop window.
This is the first public preview; language and library compatibility may evolve.