Welcome to Ajisai

Manifesto: Ajisai is a Fractional Dataflow language. Every value flows through operations as a fraction — consumed and producing a remainder, like a TPU pipeline with no materialized intermediates. Each token is spent exactly once, like a UTXO: what enters must exit as result + remainder, preserving the conservation law.

What is Ajisai?

Ajisai is a Fractional Dataflow programming language (FORTH-inherited postfix notation), featuring a WebAssembly Runtime and an interactive web-based GUI.

Values flow through a consume/remainder chain: each operation consumes its input and forwards the remainder, analogous to TPU streaming (no materialized intermediates) and UTXO spending (each token used exactly once).

The name "Ajisai" (hydrangea in Japanese) represents how small words come together to form functionality, like how small flowers form a hydrangea cluster.

Fractional Dataflow

FORTH-inherited postfix notation with remainder passing — values flow, never stall

Stream-First Vector Processing

NumPy/APL-style broadcasting and tensor operations over fraction flows

Conservation-Preserving Fraction Arithmetic

All numbers as fractions — no rounding errors, conservation law guaranteed

WebAssembly Runtime

Rust core compiled to WASM for fast browser execution

Quick Example

# Vector creation and operations
[ 1 2 3 ]               # 1D vector
[ [ 1 2 ] [ 3 4 ] ]     # 2D nested vector

# Broadcasting arithmetic
[ 5 ] [ 1 2 3 ] +       # Result: [ 6 7 8 ]

# Custom word definition (code block syntax)
{ [ 2 ] * } 'DOUBLE' DEF
[ 5 ] DOUBLE            # Result: [ 10 ]

# Higher-order functions with pipeline
[ 1 2 3 4 5 ]
  == 'DOUBLE' MAP             # Result: [ 2 4 6 8 10 ]
  == [ 0 ] { + } FOLD         # Sum: [ 30 ]

Get Started

Tutorial

Learn the basics with step-by-step examples.

Start Learning →

Built-in Words

Complete reference of all built-in operations.

View Reference →

Examples

Explore practical code examples.

See Examples →

Technology Stack

Core InterpreterRust
RuntimeWebAssembly
FrontendTypeScript
Build ToolVite
CI/CDGitHub Actions