v3.0.1 — pipeline operators, async/await, web playground

A language that
spirals outward

Pipeline-driven data flow. Algebraic types with pattern matching. Zero-dependency compiler. From quick scripts to a full operating system.

$ pip install lateralus-lang   &&   lateralus run hello.ltl
22+
Repositories
2,400+
.ltl Files
50k+
Lines of Lateralus
25
Tutorials
220
Rosetta Solutions

Expressive by Design

Pipelines, pattern matching, and async — all in a clean syntax

pipelines.ltl
async.ltl
types.ltl
web_server.ltl
// Pipeline operator |> chains transformations naturally

fn process_logs(path: str) -> list {
    read_lines(path)
        |> filter(|line| line.contains("ERROR"))
        |> map(|line| parse_log_entry(line))
        |> sort_by(|e| e.timestamp)
        |> take(100)
}

// String interpolation + pipeline in one expression
let report = process_logs("/var/log/app.log")
    |> map(|e| "{e.timestamp} [{e.level}] {e.message}")
    |> join("\n")
// Async/await with spawn for concurrent tasks

async fn fetch_all(urls: list) -> list {
    let tasks = urls
        |> map(|url| spawn http_get(url))

    let results = []
    for task in tasks {
        let resp = await task
        push(results, resp.body)
    }
    return results
}

fn main() {
    let pages = await fetch_all([
        "https://api.example.com/users",
        "https://api.example.com/posts",
    ])
    println("Fetched {len(pages)} pages")
}
// Algebraic types + exhaustive pattern matching

enum Shape {
    Circle(float)
    Rect(float, float)
    Triangle(float, float, float)
}

fn area(s: Shape) -> float {
    match s {
        Circle(r)          => 3.14159 * r * r
        Rect(w, h)        => w * h
        Triangle(a, b, c) => {
            let s = (a + b + c) / 2.0
            sqrt(s * (s-a) * (s-b) * (s-c))
        }
    }
}

let shapes = [Circle(5.0), Rect(3.0, 4.0), Triangle(3.0, 4.0, 5.0)]
let total = shapes |> map(area) |> sum()
// Full async HTTP server in 20 lines

import net
import json

async fn handle(req: Request) -> Response {
    match (req.method, req.path) {
        ("GET", "/")     => ok("Welcome to Lateralus")
        ("GET", "/api")   => json_ok({ "status": "running" })
        ("POST", "/echo") => ok(req.body)
        _                 => not_found()
    }
}

fn main() {
    let server = net.http_server("0.0.0.0", 8080)
    println("Listening on :8080")
    await server.serve(handle)
}

Why Lateralus?

|>

Pipeline Operator

Chain transformations with |> — data flows left-to-right, readable and composable. No nested function calls.

🔀

Pattern Matching

Exhaustive match on enums, structs, tuples. The compiler ensures every case is handled — no runtime surprises.

Async/Await + Spawn

First-class concurrency with async fn, await, and spawn. Write concurrent code that reads like sequential code.

🧬

Algebraic Data Types

struct for products, enum for sums, impl for methods. Hindley-Milner type inference keeps it clean.

🛡️

Try / Recover / Ensure

Structured error handling without exceptions. try wraps, recover catches, ensure runs cleanup. Always.

🔧

Multi-Target Compiler

Transpile to Python, C99, or freestanding C. Run scripts, build binaries, or target bare-metal embedded systems.

��

VS Code Extension

Full syntax highlighting, snippets, bracket matching, and language configuration. Install from the marketplace or .vsix.

🖥️

LateralusOS

A complete operating system written in Lateralus — 82 .ltl files, 15,023 lines. Kernel, shell, filesystem, networking.

📦

Zero Dependencies

The entire compiler, VM, and standard library ship with zero external dependencies. pip install and go.

How Lateralus Compares

Feature comparison with popular languages

Feature Lateralus Rust Go Python
Pipeline operator|> built-in
Pattern matchingmatch + enumsmatch3.10+
Async/awaitspawn + awaitasync/.awaitgoroutinesasyncio
Type inferenceHindley-MilnerLocal:=Dynamic
Error handlingtry/recoverResult<T,E>errortry/except
String interpolation{expr}format!fmt.Sprintff-strings
Zero deps installpip installstdlib
Multi-target compilePython/C99LLVMnative

The Ecosystem

Libraries, tools, learning resources — everything you need

🏠
lateralus-lang
Compiler, VM, stdlib, REPL
⚙️
lateralus-compiler
Lexer, parser, AST, codegen
🎨
lateralus-grammar
TextMate grammars + 14 samples
📚
lateralus-tutorials
25 chapters: basics to web servers
🍳
lateralus-cookbook
Recipes: strings, IO, patterns
🏋️
lateralus-exercises
Practice problems by topic
🧘
lateralus-koans
Learn by fixing failing tests
🌍
lateralus-rosetta
220 Rosetta Code solutions
✂️
lateralus-snippets
Copy-paste code snippets
📊
lateralus-benchmarks
30 performance benchmarks
🧩
lateralus-patterns
Design patterns in Lateralus
🌐
lateralus-web
HTTP, routing, WebSocket, ORM
🔐
lateralus-crypto
Hashing, ciphers, signatures
📡
lateralus-networking
TCP/UDP, DNS, HTTP client
🤖
lateralus-ml
ML algorithms from scratch
🔬
lateralus-science
Scientific computing toolkit
🎮
lateralus-games
Game implementations
🌳
lateralus-data-structures
Trees, graphs, heaps
��
lateralus-algorithms
Sorting, searching, DP
🔢
lateralus-euler
Project Euler solutions

Get Started in 60 Seconds

Three paths — pick whichever fits you

🚀

Use the Template

Click one button to get a full project with source files, tests, CI pipeline, and VS Code support.

1 Click "Use this template" on GitHub
2 Clone your new repo
3 lateralus run src/main.ltl
Use Template →
📖

Learn the Language

8-chapter tutorial from variables to building a CLI app. Exercises with solutions included.

1 Read a chapter (5 min each)
2 Solve the matching exercise
3 Check your solution
Start Tutorial →
💡

Browse Examples

Real-world code: algorithms, data pipelines, REST APIs, and coding challenges — all in Lateralus.

1 Find an example that interests you
2 Read the code, run it locally
3 Contribute your own examples
See Examples →

Start Building with Lateralus

Install in seconds. Zero dependencies. From scripts to operating systems.