The best of every language.
Compiled to a native binary.
Pattern matching from OCaml. Null-safety from Kotlin. Comprehensions from Python. Pipelines from Elixir. String interpolation from C#. ADTs from Haskell. No VM, no heavy runtime, no fork-of-a-fork piling features on top of each other. A statically-typed language that compiles to portable C and rebuilds itself in 5 seconds.
You already know Amalgame
Every feature we picked has a known parent. Here are the direct mappings.
T?, ??, ?.)
Python →List comprehensions [x*2 for x in xs if x > 0]
Elixir / F# →Pipeline operator x |> f |> g
C# / Kotlin →String interpolation "hello {name}"
Haskell →Algebraic enums (tagged unions) with destructuring
Swift →Guard clauses guard cond else { return }
C# / Java →Generics with compile-time-verified interfaces
JavaScript →Capturing closures, multi-arg lambdas
C →Compiled output, native gcc -O2 binary, no VM
Foundations
What Amalgame is, at its core.
Self-hosted & hackable
amc is written in Amalgame. It rebuilds itself in 5 seconds — change the language, test, change again. Where Rust takes an hour and Go several minutes, here the "I have an idea, let me try it" loop stays fluid. And if you break the binary mid-dev, a known-good snapshot/amc_lib.c + a single gcc brings back a working compiler.
Compiles to C, native binary auto-generated
Full pipeline in one command: your .am becomes readable C, then a native gcc -O2 binary, no manual step. Source maps 1:1: string → char*, List → void**, int → i64. No VM, no hidden allocation beyond the GC (Boehm). Ready to ship.
Cross-platform
Linux (x86_64, arm64), macOS (arm64) and Windows (x86_64) — every v* tag produces the binaries and an MSI installer. On Windows, the MSI ships gcc, Boehm GC, OpenSSL and zlib: amc build works without MSYS2 (v0.8.76 to v0.8.88). Green CI on all three OSes on every commit. The runtime sits behind a clean #ifdef _WIN32 on the networking layer (Winsock vs POSIX).
(vs ~1h for Rust)
Bare-metal microcontroller target: amc build --target=cortex-m3|cortex-m4|cortex-m7 (v0.8.89) · compatible with gcc 14 and 15 (v0.8.91)
Everything a dev expects in 2026, in a single language
No feature that needs you to "wait for a release". It's all here, today.
Match as expression, with guards and destructuring
match is an expression — you can assign it to a let. It supports guards (x if x > 0), ranges (1..9), binders, and ADT destructuring.
let bucket = match n { 0 => "zero" x if x < 0 => "negative" 1..9 => "small" 10..99 => "medium" _ => "large" } match shape { Circle(r) => Console.WriteLine("r={r}") Rect(w, h) => Console.WriteLine("rect") }
The compiler stops you from dereferencing null
Nullable types are distinct (T? vs T). Safe access (?.) and the coalescing operator (??) are built-in — like Kotlin, without the Java nullable-annotations folklore.
let maybe: Greeter? = null let label = maybe?.Hello() // null-safe let name = user?.Name ?? "anon" guard name != null else { return }
Code reads the way you think it
List comprehensions (Python), pipeline operator (Elixir/F#), higher-order list methods (Filter, Map, Reduce, Any, All, CountIf) with capturing closures.
// Comprehension let squares = [i * i for i in 0..10 if i % 2 == 0] // Higher-order chain let total = numbers .Filter(n => n > 0) .Map(n => n * 2) .Reduce(0, (acc, n) => acc + n) // Pipeline let shouted = name |> String.ToUpper |> String.Trim
Native interpolation, multiline included
No more concat soup. Expressions go between {}, and triple-quoted """...""" handle multiline templates. \xHH and \uHHHH escapes supported.
let msg = "Bonjour {user.Name}, tu as {orders.Count()} commandes" let sql = """ SELECT id, name FROM users WHERE created_at > '{since.Format()}' ORDER BY name """
Tagged unions with payload, verified by the compiler
Like OCaml, Rust or Haskell. Each variant can carry its own data. Pattern matching destructures cleanly, the typechecker reminds you of forgotten variants.
public enum Result { Ok(int) Err(string) } match compute() { Ok(v) => Console.WriteLine("value: {v}") Err(msg) => Console.WriteLine("error: {msg}") }
Compile-time checking, runtime erasure
Generics are erased to void* at the C level (compact binary, no symbol explosion), but their signature is verified by the compiler. Generic interfaces substitute the parameters and enforce contracts.
public class Box<T> implements IComparable<int> { public Value: T public int CompareTo(int other) { return 0 } }
Capture by value, multi-arg, blocks
Lambdas (x, y) => expr capture the surrounding scope into a GC-allocated env struct. Block bodies x => { ... } are supported. Everything works through the higher-order list methods.
let threshold = 10 let big = xs.Filter(x => x > threshold) let combine = (a, b) => { let sum = a + b return sum * 2 }
Tuples + destructuring · guard clauses · decorators @inline/@deprecated · bitwise ops · compound assignments · range 0..n · try/catch/throw · classes, inheritance, interfaces, data classes, records · async / await (v0.8.70, with the async package)
Every modern tool, inside your favorite editor
Official extension shipped in the repo. Workspace-aware LSP, native DAP with breakpoints on .am. Everything is there, at install.
VSCode experience demo coming soon.
LSP autocomplete in action, live diagnostics, breakpoint on .am via DAP.
Official VSCode extension
Shipped in editors/vscode/ in the repo. Syntax highlighting + LSP client + pre-configured amc debug type. One-command install: amc new --vscode even scaffolds a .vscode/launch.json ready for F5.
amc lsp — Language Server
Workspace-aware: scans every .am under the root to resolve cross-file types. Live diagnostics (didOpen/didChange), hover with inferred type, global completion, signatureHelp.
amc dap — Debug Adapter
DAP proxy that detects lldb-dap (LLVM 18+) or gdb --dap (gdb 14+). The #line directives emitted by cgen make your breakpoints set on .am resolve natively via DWARF — no source maps, no path translation.
amc fmt — Formatter
Re-emits the AST canonically, preserves comments. Idempotent on every compiler source. amc fmt -w to rewrite in place.
amc --lint — Static linter
Flags unreachable code, unused locals (prefix _ to silence), shadowed names. Warnings non-fatal — no friction to get started.
amc test — Test runner
No framework. Discovers *_test.am, compiles, runs, aggregates [PASS]/[FAIL]/[SKIP]. Exit non-zero if anything breaks.
amc lsp · amc dap · amc fmt -w src/ · amc --lint · amc test
The extension also works with Neovim, Helix, Emacs (eglot) and any standard LSP/DAP client.
LLM multipliers
Three commands to migrate, generate and explain code. Your key, your data, your provider.
amc migrate
13 source languages auto-detected (TS, Python, Java, C#, Go, Rust...). SHA-256 cache, cost estimation in --dry-run, auto-validation with amc --check.
amc generate
Prose → Amalgame. Perfect to scaffold a starting point. --stream for direct stdout passthrough via the claude CLI.
amc explain
Code → prose. --lang French (or any other language) translates the explanation.
Provider of your choice: Anthropic (Claude), OpenAI (ChatGPT), Google (Gemini), or claude CLI as fallback. Auto-detection from ANTHROPIC_API_KEY / OPENAI_API_KEY / GEMINI_API_KEY. No server we control in the pipeline — direct HTTPS from your machine to the provider.
Built with Amalgame
Two products written in Amalgame: Mosaic for the web, Pollen for the message bus and workflows between machines.
Mosaic — Amalgame's web framework
A productive HTTPS server in the spirit of Next.js (filesystem routing) and Caddy (automatic HTTPS via ACME). 100% Amalgame stack on top of OpenSSL 3.x — not a toy IoT library. Two execution modes: DEV with hot-reload, PROD single-binary.
app/users/[id].am → GET /users/:id/metrics, /healthz, /readyzHello-world HTTPS server — one ACME call, the binary handles the rest.
namespace App import Amalgame.Web import Amalgame.Tls public class Program { public static void Main(string[] args) { AcmeNative.EnsureCert("my-site.com", "admin@my-site.com", "./certs", AcmeNative.LeStaging()) // native RFC 8555 ACME let app: WebApp = WebApp.New() .WithSecurityHeaders(SecurityHeaders.StrictHtml()) .WithCsrf(Csrf.Default()) .WithRateLimit(RateLimit.PerIp(100, 60)) .WithStatic(Static.New("/assets", "./public")) Routes.Bind(app) // routes generated from app/ app.ServeHttpsMt(443, "./certs/my-site.com/fullchain.pem", "./certs/my-site.com/privkey.pem") } }
Pollen — Amalgame's P2P bus + workflow orchestrator
A peer-to-peer data bus and its declarative orchestrator: no central broker, no workflow server. Nodes talk directly; a workflow.json file on a network share tells every node what to do at every step. Ported from the Node.js prototype TARMeule to the Amalgame package amalgame-pollen.
set stepsA modular library that keeps growing
74 official packages in the registry today; here are some of them. All Apache-2.0, all managed via amc package add <name>.
🗄️ Databases SQL + NoSQL
📡 Messaging & networking
🔌 Hardware & industrial
📄 Formats
🎨 UI & graphics
🎵 Multimedia
🛠️ Standard framework
amc package add duckdb · amc package search ui · amc package versions kafka
The official package manifest lives at amalgame-lang/packages-index. Third-party packages work via direct URL.
Trust & quality
Minimal telemetry, easy to turn off
amc compiles everything on your machine. At most once a day, it sends only its version, your operating system and your CPU architecture: no identifier, no code, no file names. One variable turns it off: AMALGAME_NO_TELEMETRY=1 (or DO_NOT_TRACK=1).
Your key, your data
LLM commands (migrate / generate / explain) call your provider directly with your key. No amalgame.me server in the pipeline — no middleman, no remote cache.
Green multi-OS CI
Every commit runs on Linux + macOS + Windows MSYS2. Releases are produced automatically on every v* tag via GitHub Actions.
Apache-2.0 everywhere
Compiler, runtime, stdlib, every official package: Apache 2.0. No commercial dual-license, no contributor gray zone.
rustc-style diagnostics
Errors come with source snippet + caret pointing at the token. Resolver and type-checker each have their category. No generic "syntax error at line 42".
Recoverable bootstrap
If ./amc breaks mid-dev, snapshot/amc_lib.c + one gcc brings back a working compiler. No mystery tape, no opaque circular dep.
Ready to try?
Install takes 30 seconds. The language is young — your contribution counts.