Skip to content
@puddi-lang

Puddi

A statically typed expressive language for WebAssembly browsers WASI and plugins
Puddi Expressive by design WebAssembly by default

Read the docs      Explore the compiler      Try an example      Get Puddi

Puddi is a statically typed, expression-oriented language that compiles to WebAssembly. We are building a language and toolchain for browsers, WASI runtimes, and plugin hosts, with WasmGC and the Component Model at the core.

One language three homes

  • Browser — Build for the web with JavaScript interop and access to the DOM
  • WASI — Run WebAssembly components with an embedded Wasmtime runtime
  • Plugins — Connect your code to application hosts through WIT interfaces

Familiar ideas thoughtfully connected

Static types and inference, expressive pattern matching, generics and traits, closures, and structured concurrency. The runtime uses the WebAssembly engine’s garbage collector.

@derive(Eq, Show)
struct Todo {
    title: Str
    var done: Bool
}

fn main() {
    let todos = [Todo { title: "spec", done: true }, Todo { title: "compiler", done: false }]
    let pending = todos.filter(|t| !t.done)
    print("{pending.len()} of {todos.len()} left")
}

A clear place to start

Install Puddi and create your first package

pud new hello
cd hello
pud run

The pud tool brings building, running, type checking, testing, formatting, documentation, and dependencies together.

Explore the project

puddi
The compiler, runtime, standard library, language specification, and conformance suite

puddi-docs
The language guide, toolchain documentation, and reference

Go deeper with the language specification, compiler architecture, and implementation status.

Build with us

Puddi is a small open-source project in early development. Compiler fixes, runtime integration, conformance cases, library work, examples, and documentation are all welcome.

Start with the contribution guide, browse open issues, or bring a language design question to the project. Everyone taking part follows our code of conduct.

欢迎用中文或英文交流 从一个问题 一段示例或一次修复开始

Puddi is in the 0.x series and the language may evolve between releases
Dual licensed under MIT or Apache 2.0

Popular repositories Loading

  1. puddi puddi Public

    Puddi: a statically typed, expression-oriented language for WebAssembly

    Rust 1 5

  2. puddi-docs puddi-docs Public

    Documentation site for the Puddi language

    JavaScript

  3. .github .github Public

    The Puddi organization profile and brand assets

  4. puddi-ide puddi-ide Public

    Browser IDE for the Puddi programming language

    JavaScript

  5. puddi-packages puddi-packages Public

    Official publication home and catalog for maintained Puddi packages

  6. puddi-web puddi-web Public

    Official browser adaptation package for Puddi

    JavaScript

Repositories

Showing 6 of 6 repositories

Top languages

Loading…

Most used topics

Loading…