Skip to content
Tech News
← Back to articles

Show HN: AttaLambda: a language where types and data are made of untyped lambdas

read original more articles
Why This Matters

AttaLambda is an experimental esoteric-style language demonstrating that types, data structures, and computation can all be encoded purely from untyped lambda calculus primitives, with a friendlier syntax layered on top. While niche, it's the kind of educational project that helps developers and language designers deepen their understanding of foundational computer science concepts like lambda calculus, type theory, and functional programming.

Key Takeaways

A small language built on lambda calculus

AttaLambda is a small language built on pure, untyped lambda calculus.

Its ordinary computation is built from unary functions and application. It adds readable syntax, exact rational numbers, and runtime type checks. Input and output cross a separate host boundary.

#lang attalambda (def square x = (mult x x)) (print (map square (list 1 2 3 4)))

Output (no trailing newline)

[1, 4, 9, 16]

Explore the language, see examples, or get started.