MiniML Playground
Self-hosted compiler running in the browser
Playground
Docs
Source Code
-- Try some MiniML! let () = print "Hello, MiniML!" let rec fib n = if n <= 1 do n else fib (n - 1) + fib (n - 2) let () = print $"fib(10) = {fib 10}" let () = print $"fib(20) = {fib 20}"
Run
Clear Output
Load example...
Hello World
Fibonacci
List Operations
Variants & Pattern Matching
Higher-Order Functions
Modules
Hash Tables
Effect Handlers
Type Classes
Generators
Custom Iterators
Expression Evaluator
GADTs
Functional Dependencies
Canvas GUI
Framework GUI
Layout Engine
Snake Game
Provide & Try
Pin Patterns
Newtypes
Collections & Indexing
Cyclic Data Structures
Loops & Control Flow
Polymorphic Variants
Optimize
JS → JS
JS → VM
Bytecode → VM
Bytecode → JS
Canvas
Stop
Output
Select a topic from the sidebar.