Lateralus Language (.ltl / .ltasm) — a pipeline-native language with Hindley-Milner inference, ADTs, and multi-target codegen
Project description
Lateralus Programming Language
🌐 Official home: lateralus.dev — docs, playground, downloads, papers, and package registry.
Website • Docs • Playground • Download • Papers • Blog
Install
# From PyPI (recommended)
pip install lateralus-lang
# One-liner from lateralus.dev
curl -fsSL https://lateralus.dev/install.sh | sh
VS Code users: install the Lateralus Language extension for full IDE support.
One language. Three lanes.
Lateralus is built for the jobs that usually need three languages:
- Observability — structured logs, metrics, traces, in one binary.
- Analytics — Parquet, Arrow IPC, SIMD-ready columnar ops shipped in the stdlib.
- Secure-by-default — ChaCha20-Poly1305, X25519, BLAKE3, Argon2id — no OpenSSL, no surprises.
➡ Niche page · Stdlib vs Python/Go/Rust/Node · One-page cheatsheet · Open bounties →
Speed snapshot
Pure Lateralus → C99 backend vs CPython 3.13 (lower is better):
| Benchmark | Lateralus (C) | CPython 3.13 | Speedup |
|---|---|---|---|
| fib(35) | 0.004 s | 0.240 s | ~60× |
| sieve(1e6) | 0.020 s | 0.600 s | ~30× |
| mandelbrot | 0.110 s | 3.300 s | ~30× |
| n-body 5k | 0.080 s | 3.200 s | ~40× |
See benchmarks/ to reproduce.
Lateralus is a systems programming language built for performance, safety, and expressive pipelines. It combines Rust-inspired ownership semantics with first-class pipeline operators, pattern matching, and a rich standard library.
Features
- Ownership and borrowing with compile-time lifetime checks
- First-class pipeline operators for data transformation
- Algebraic types with exhaustive pattern matching
- Async/await with structured concurrency
- Traits and generics with monomorphization
- Zero-cost abstractions compiling to native code
- Built-in test runner with assertion support
- Multiple backends: native, C, WASM, JavaScript, Python
Quick Start
ltl run examples/hello.ltl
Write your first program:
fn main() {
let names = ["Alice", "Bob", "Carol"]
names
|> filter(|n| n.len() > 3)
|> map(|n| format!("Hello, {}!", n))
|> for_each(|msg| print(msg))
}
Project Structure
- std/ — Standard library modules (collections, io, sync, crypto, etc.)
- stdlib/ — Extended standard library
- examples/ — Example programs and showcases
- bootstrap/ — Self-hosting compiler components
- lateralus_lang/ — Python reference implementation
- lateralus-os/ — Experimental operating system
- vscode-lateralus/ — VS Code extension with syntax highlighting
- docs/ — Language specification, tutorials, and papers
- tests/ — Test suite
Standard Library Highlights
Collections: HashMap, BTreeMap, Vec, LinkedList, BinaryHeap, Trie, SkipList, LRU Cache, BloomFilter
Concurrency: threads, async executors, channels, mutexes, rwlocks, barriers, semaphores
Networking: TCP/UDP sockets, HTTP client/server, WebSocket, DNS, firewall
Cryptography: AES, ChaCha20, SHA-256, SHA-3, BLAKE3, RSA, ECDSA, X25519, TLS, Noise Protocol
IO: buffered readers/writers, file system, path manipulation, file watching
Formatting: Display/Debug traits, padding, alignment, numeric bases
Time: Duration, Instant, Stopwatch, Deadline
Building from Source
git clone https://github.com/bad-antics/lateralus-lang.git
cd lateralus-lang
make build
make test
Documentation
- Language Spec: docs/language-spec.ltlml
- Tutorial: docs/tutorial.ltlml
- Cookbook: docs/cookbook.ltlml
- Grammar: docs/grammar.ebnf
- Blog: docs/blog/
License
MIT — see LICENSE for details.
Made with care at lateralus.dev
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lateralus_lang-3.2.0.tar.gz.
File metadata
- Download URL: lateralus_lang-3.2.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6a3e5da2ccfe2d8dc5d82e359484337ca4e9532dcf7631bee7f2a41a59dd5a0
|
|
| MD5 |
6d8d3afdfed6591e6a7ad7c2c505283c
|
|
| BLAKE2b-256 |
2b998ea766da06edc5a4c0b7aa75bdc5908fe0f8061ac170bfd7f6d9f632ab48
|
File details
Details for the file lateralus_lang-3.2.0-py3-none-any.whl.
File metadata
- Download URL: lateralus_lang-3.2.0-py3-none-any.whl
- Upload date:
- Size: 683.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cbb20834360cc3b68706e474642f1d42d137bbd3fff76c7007e09393979de85
|
|
| MD5 |
a526ca640ccfee10acb2f108b8c22e2a
|
|
| BLAKE2b-256 |
9ab129f9d892f4a658f440ce6f0753a38adde4bb48e4e238c5744fb3d8daf351
|