Skip to main content

🌀 Warp

A data format that is also a programming language, compiled straight to WebAssembly GC.

contact{ name: James  age: 33 }
assert 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 warp compiler is itself a WebAssembly module written in warp itself!

▶ 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 for humans and AI alike, type safe but not verbose, universal and fast (compiled ahead of time to WebAssembly), highly structured and expressive. Agents benefit from clean abstractions too.

  • 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, so any Wasm GC host sees typed objects (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

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 on your PATH.

From source (warp builds itself, so it needs an installed warp first):

git clone https://github.com/pannous/warp && cd warp
warp rebuild                              # warp.wasm, the compiler written in Warp (core/), then the native warp command

Run

warp               # interactive console "repl"
warp help                         # all commands
warp sample.warp   # run a file, server, webapp or gui
warp build sample.warp # the standalone executable (aot native and .wasm)
warp test              # the tests under test/

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"

Wasm GC objects

class Person{ name: text  age: int }
alice = Person{ name: "Alice"  age: 30 }
alice.age + 1                      // 31

A class is a real GC struct, not a map in linear memory. The compiler emits (warp compile, simplified):

(type $Text (array (mut i8)))
(type $Person (struct (field $name (ref $Text)) (field $age i64)))
(func $main (result (ref $Person))
  i32.const 0  i32.const 5  array.new_data $Text 0   ;; "Alice" from the data segment
  i64.const 30
  struct.new $Person)
(data "Alice")

Texts are GC byte arrays; linear memory is used only to hand bytes to the host or C.

Untyped data travels as one universal GC type, $Node {kind: i64, data: anyref, value: (ref null $Node)}. It mirrors the Node enum (Text, Symbol, Number, Char, Key, List, Type, Meta, Data, Error) in core/node.warp.

Status

Proven to be (almost) production ready by being able to compile the whole language written in warp itself! Experimental and moving fast. Tests 100% samples passing, general progress viewable in this dashboard

The language spec lives in the wiki, and parts of it are not implemented yet. Warp began as a Rust rewrite of
Wasp (C++), which followed the Python experiments
Angle and english-script;
its compiler is now written in Warp itself (core), and so is the native warp command, which runs programs through wasmtime's C API (core/native). The old Rust compiler is preserved on the branch rust-bootstrap.

The compiler has three layers:

  • core: just enough for warp to compile itself
  • extensions: every other language feature
  • libraries: modules programs import

Try it in your browser: Feedback and issue 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.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for warp-language 1.11.0
File Actions
warp_language-1.11.0-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details for warp_language-1.11.0-py3-none-manylinux_2_34_x86_64.whl
warp_language-1.11.0-py3-none-manylinux_2_34_aarch64.whl Python 3 none Linux glibc 2.34+ ARM64 Details for warp_language-1.11.0-py3-none-manylinux_2_34_aarch64.whl
warp_language-1.11.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for warp_language-1.11.0-py3-none-macosx_11_0_arm64.whl
warp_language-1.11.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for warp_language-1.11.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 100.9 MB

Release files / warp_language-1.11.0-py3-none-manylinux_2_34_x86_64.whl

Download URL warp_language-1.11.0-py3-none-manylinux_2_34_x86_64.whl
Size 26.3 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
62a62e978ee1abe240694cb8e2cd7a4d55481cc58cf59f05cda3d19de4d4365d
BLAKE2b-256 checksum
How to use checksums
fb2ab8c9269addb63de2fa568ad837c7f7cbc298e1e10eddac56c627eb82b795
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 Nov 12, 2026.

Transparency log

Release files / warp_language-1.11.0-py3-none-manylinux_2_34_aarch64.whl

Download URL warp_language-1.11.0-py3-none-manylinux_2_34_aarch64.whl
Size 25.5 MB
Tags Linux glibc 2.34+ ARM64 Python 3
SHA-256 checksum
How to use checksums
28ded41e17ff0467f0fab0aaff6c2c4dd1aa8b12e1fbc09f80f6c07b56822ac5
BLAKE2b-256 checksum
How to use checksums
da7b4d851e2ca50de3f506dc6c824c9e5f835580125fb238cdd2309421be3a8f
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 Nov 12, 2026.

Transparency log

Release files / warp_language-1.11.0-py3-none-macosx_11_0_arm64.whl

Download URL warp_language-1.11.0-py3-none-macosx_11_0_arm64.whl
Size 23.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4e17f643f2630e6fa84498c1dbb8b10e6574d25265a967c22c23e94c6c00ae11
BLAKE2b-256 checksum
How to use checksums
37a1128827d3b5a22d1fec39a136721344064ebf2da26da93172e604c0b3d6d6
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 Nov 12, 2026.

Transparency log

Release files / warp_language-1.11.0-py3-none-macosx_10_12_x86_64.whl

Download URL warp_language-1.11.0-py3-none-macosx_10_12_x86_64.whl
Size 25.2 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9db50599e9f38eb130b948fcda26970c4b10b438158a17fb4abee974237fdd59
BLAKE2b-256 checksum
How to use checksums
7687a8f68cb20a1ed1f8ab4b0e6a76f82c61abca4b848e9062b70185bdcaf28f
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 Nov 12, 2026.

Transparency log

Security for warp-language 1.11.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.

Select from 4 files

Attestation for warp_language-1.11.0-py3-none-manylinux_2_34_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 Nov 12, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page