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.
- 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
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")
}
Install Puddi and create your first package
pud new hello
cd hello
pud runThe pud tool brings building, running, type checking, testing, formatting, documentation, and dependencies together.
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.
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