Under development. Don't treat this website's info as truth.

Xag

Why would anyone ever use Xag?

Honestly, I don't know. 😂

The code written is mostly or 100% AI-made. Why? Because, I'm more of a designer, not a C++ stroke-inducing syntax reader 🤣. No offense.

— the README

Source

The compiler, the runtime, the three engines and the oracle: github.com/Artificial-IntelligenceAI/Xag-lang

A diagnostic that is wrong, a diagnostic that is confusing, and a program Xag accepts that it should not are all the same kind of bug: the compiler saying something untrue. They belong in the issue tracker.

This site is a Rust program compiled to WebAssembly. Its source is github.com/Artificial-IntelligenceAI/Xag-site

License

Copyright 2026 Tankun Sriket

Apache License, Version 2.0, with the LLVM exception — Apache-2.0 WITH LLVM-exception.

Writing programs in Xag costs you nothing. Every program the compiler builds has the Xag runtime linked into it, so a piece of the project ends up inside what you ship. The exception is there for exactly that: those embedded portions may be redistributed without carrying any notice, so a program built with Xag owes nothing to anybody and need not mention the project anywhere.

Changing Xag itself is where credit is due. Distribute a modified compiler, runtime or tool and the Apache terms apply in full — keep the notices, and say plainly which files you changed.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.

This website is licensed differently from the compiler. Its code is Apache-2.0 with one condition added: anything built on it has to show the credit where its own readers can see it, not only in the source. The words on these pages are not licensed at all. Take the machinery and write your own — the machinery is the part that was hard. The terms are in the site's LICENSE.

Credits

Tankun Sriket designs Xag. Claude writes the code. That is the arrangement as it stands — the language, the syntax and what the project is for are his; the compiler, the runtime, the engines, the oracle and this website are written by Anthropic's Claude under his direction. If that changes, this line changes with it.

The compiler is C++20, with C and a little assembly for the decimal hardware path and for a test that runs with no operating system under it, Rust for the oracle that fuzzes the three engines, Python for two test scripts, and shell to drive the one that needs a machine nobody here has — plus CMake, a linker script and the odd stand-in header to build all that. It is written against LLVM, whose licence exception it also borrows, and its grapheme handling comes from the Unicode Character Database, version 17.0.0.

The arithmetic is written against IEEE 754 and IBM's decimal specification, which are read rather than borrowed from. It is then checked against Python's decimallibmpdec, by Stefan Krah — and against IBM's own decimal unit, emulated by QEMU and linked by ld.lld. Those two are there to disagree rather than to agree: neither is derived from anything here, which is the only reason their agreeing means anything.

This website is Rust compiled to WebAssembly: Leptos draws it, wasm-bindgen and web-sys reach the browser, Trunk builds it and Binaryen's wasm-opt shrinks what ships. The CSS is written by hand. There is a handful of JavaScript in one file, which exists only to start the WebAssembly. Cloudflare Pages serves it.

The two light themes are Solarized, by Ethan Schoonover, used as specified rather than adjusted to taste. No typeface is bundled or fetched: the pages ask for whatever the machine already has.