🌀 Warp
A data format that is also a programming language, compiled straight to WebAssembly GC.
contact{ name: James age: 33 }
contact.age + 1 // 34
The same notation holds your config, your markup and your program. Warp compiles it to WebAssembly GC structs (no linear-memory runtime, no JS glue), and the compiler is itself a WebAssembly module.
▶ Try it in your browser: nothing to install. The compiler runs locally in a Web Worker.
Why Warp
- Even when 99% of code is written by AI we can aim for the perfect programming language:
- ideal both for humans and AI: type save but not verbose
- Universal and fast (via aot web assembly)
- Highly structured and expressive:
- Data is code. Like Lisp, but with blocks, lists, key-value pairs and tags instead of s-expressions. JSON-like, but no quotes around keys or symbols. Reads and writes JSON, XML and YAML.
- Wasm GC first. A
class Person{name:String age:i64}becomes a real(struct …)type, and the module carries full name sections. Rust hosts read these objects back as typed values (see below). - No silent footguns. When code could mean two things, the compiler doesn't guess quietly. It warns with the
reading it took and the explicit form, or it refuses when a wrong guess would corrupt results
(Footguns):
for i in 1 upto 4 { x += i } warning: does `upto 4` include 4? (`..<` or `..` exclude it, `to` or `...` include it) (taking exclusive); fix: ..< - Little ceremony. Implicit
it, inferred parameter and return types, Unicode operators, and English words for operators where they read better:square := it² square(3) + square(4) // 25 fib := if it < 2 then it else fib(it - 1) + fib(it - 2) fib(20) // 6765
- Markup is just data.
html{ body{ h1: "Welcome" p: "made of data" } }
Install
Nothing to install: warp.pannous.com runs the compiler in your browser.
Homebrew (macOS, Linux):
brew install pannous/tap/warp
Cargo :
cargo install --locked warp-lang warp-runtime
pip (macOS, Linux; any Python 3):
pip install warp-language
Linux:
sudo apt install ./warp-lang_*_amd64.deb or sudo dnf install ./warp-lang-*.x86_64.rpm.
Prebuilt binaries (macOS arm64 and x86_64, Linux x86_64 and arm64): download the archive for your platform from the
latest release and put warp and warp-runtime together on your PATH.
From source:
git clone https://github.com/pannous/warp && cd warp
CARGO_NET_OFFLINE=false cargo fetch # once: the repository builds offline, from cargo's local cache
cargo build --release && cargo build --release -p warp-runtime # binaries in target/release/
warp-runtime is the small runtime that standalone executables are made from; it belongs in the same folder as warp.
Run
warp # interactive console "repl"
warp help # all commands
warp sample.warp # run a file, server, webapp our gui
warp build sample.warp # the standalone executable (aot native and .wasm)
samples/ contains classics (game of life, Dijkstra, Levenshtein, a JSON parser, a neural net) in both a
Python-like style and an idiomatic Warp style, one folder per chapter of the guide (samples/graphics, samples/sound …).
Packages
use loads a local module, or else a package of the registry
warp-packages by name, fetched once into packages/:
use colors
to_hex(mix(from_hex("#ff0000"), from_hex("#0000ff"), 0.5)) # "#800080"
(use).
Rust ⇄ Wasm GC round trip
let alice = Person { name: "Alice".into(), age: 30 };
is!("class Person{name:String age:i64}; Person{name:'Alice' age:30}", alice);
is! parses, compiles, runs the module in wasmtime and reads the GC object back. The compiler emits:
(type $String (struct (field $ptr i32) (field $len i32)))
(type $Person (struct (field $name (ref $String)) (field $age i64)))
(func $main (result (ref $Person))
i32.const 0 i32.const 5 struct.new $String
i64.const 30
struct.new $Person)
(data (i32.const 0) "Alice")
Declare the Rust side with wasm_struct! { Person { name: String, age: i64 } }, or inline:
wasm_object! { Person { name: String = "Alice", age: i64 = 30 } }.
Untyped data travels as one universal GC type, $Node {kind: i64, data: anyref, value: (ref null $Node)}. It mirrors
the host enum Node (Text, Symbol, Number, Key, List, Type, Meta, Data) in
src/node.rs.
Status
Experimental and moving fast. 2036 tests pass (cargo test). The language spec lives in the
wiki, and parts of it are not implemented yet. Warp is a Rust rewrite of
Wasp (C++), which follows the Python experiments
Angle and english-script.
Feedback, issues and especially "this surprised me" reports are welcome.
License
The compiler is licensed under the GNU AGPL v3 or later; the runtime crates/warp-runtime, which goes into
every program built with warp, under the MIT license, so your programs are yours.
Commercial licenses of the compiler: info@pannous.com. Contributing: CONTRIBUTING.md.
Metadata
Release files for warp-language 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| warp_language-1.4.0-py3-none-manylinux_2_39_x86_64.whl | Python 3 | none | Linux glibc 2.39+ x86-64 | Details for warp_language-1.4.0-py3-none-manylinux_2_39_x86_64.whl |
| warp_language-1.4.0-py3-none-manylinux_2_39_aarch64.whl | Python 3 | none | Linux glibc 2.39+ ARM64 | Details for warp_language-1.4.0-py3-none-manylinux_2_39_aarch64.whl |
| warp_language-1.4.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for warp_language-1.4.0-py3-none-macosx_11_0_arm64.whl |
| warp_language-1.4.0-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details for warp_language-1.4.0-py3-none-macosx_10_12_x86_64.whl |
Total release size: 68.0 MB
Release files / warp_language-1.4.0-py3-none-manylinux_2_39_x86_64.whl
| Download URL | warp_language-1.4.0-py3-none-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 18.5 MB |
| Tags | Linux glibc 2.39+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
a432790b2bc9149427c7785e4e958e76581e817852c0583d4e3b8628f0f7e5f2
|
|
BLAKE2b-256 checksum How to use checksums |
084d2a8b53c2030ae38977546d3ec552417f94420bb2f8cfea0eaec012016c27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / warp_language-1.4.0-py3-none-manylinux_2_39_aarch64.whl
| Download URL | warp_language-1.4.0-py3-none-manylinux_2_39_aarch64.whl |
|---|---|
| Size | 16.6 MB |
| Tags | Linux glibc 2.39+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
8ec0925cd4fb2ef6deef2929371ee34c4c3b1179dec841409c5c5ef7c5dc19c5
|
|
BLAKE2b-256 checksum How to use checksums |
8cf0c2c1fa864ee22112dd97c5f3a37b2aa2985fa1b4a0d41c7beff407fa91d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / warp_language-1.4.0-py3-none-macosx_11_0_arm64.whl
| Download URL | warp_language-1.4.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 15.2 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c41ab7aeaa1145f02d78caf9937199f7ab32c82f3076d586595c039c482b7705
|
|
BLAKE2b-256 checksum How to use checksums |
332d6794ce237422150703421103aadc0f953316d9688b797665f5414adc9143
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / warp_language-1.4.0-py3-none-macosx_10_12_x86_64.whl
| Download URL | warp_language-1.4.0-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 17.6 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
ee9a1ca2a786727a0f18ee5f35f058d896bf4a38a00a8e6345dd6293757b8688
|
|
BLAKE2b-256 checksum How to use checksums |
9ca4ae4d608326a521d6fd6748711f503df598d13abf9a95c454df9ffebc130a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for warp-language 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for warp_language-1.4.0-py3-none-manylinux_2_39_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.