Bosatsu

A typed, total functional programming language designed to compile to multiple targets.

Strongly Typed Total Functions Pattern Matching Multi-Target

Web Compiler

Write and run Bosatsu code directly in your browser. Experiment with the language without installing anything.

Try the Compiler →

Multi-Target Demo

See the same Bosatsu program compiled to JavaScript, C, and WebAssembly. Experience the power of multi-target compilation.

View Demo →

JS/WASM Interop

See JavaScript and WebAssembly working together. One module compiled to JS, another to WASM, calling each other at runtime.

View Interop Demo →

Documentation

Learn Bosatsu syntax, types, and features. Explore the standard library and language reference.

Read Docs →

BosatsuUI Demos

Reactive UI without Virtual DOM. Compile-time static analysis extracts state-to-DOM bindings for O(1) updates.

No Virtual DOM

Counter

Basic counter showing direct DOM binding updates. Watch the binding log to see O(1) state-to-DOM updates.

Try Counter →
No Virtual DOM

Todo List

Per-item bindings for O(1) updates even in large lists. Toggle, add, delete todos with targeted DOM updates.

Try Todo List →
Real React 18

Performance Benchmark

BosatsuUI vs React 18 performance comparison. Uses actual React (not simulated) for fair results.

Run Benchmarks →

Simulation Demos

Interactive calculators with "Why?" explanations and "What if?" explorations. Generated from .bosatsu source files.

Why? + What if?

Loan Calculator

Calculate monthly payments and total interest. Click "Why?" to see the derivation chain. Use sliders to explore scenarios.

Try Loan Calculator →
Why? + What if?

Tax Calculator

Compute taxes with derivation tracking. See how each value is calculated from your inputs.

Try Tax Calculator →
Why? + What if?

Carbon Footprint

Estimate your annual CO2 emissions from transportation and home energy. See which factors have the biggest impact.

Try Carbon Calculator →