Skip to main content

Lateralus Language (.ltl / .ltasm) — a pipeline-native language with Hindley-Milner inference, ADTs, and multi-target codegen

Project description

Lateralus Programming Language

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.

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

lateralus_lang-3.1.0.tar.gz (926.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lateralus_lang-3.1.0-py3-none-any.whl (520.9 kB view details)

Uploaded Python 3

File details

Details for the file lateralus_lang-3.1.0.tar.gz.

File metadata

  • Download URL: lateralus_lang-3.1.0.tar.gz
  • Upload date:
  • Size: 926.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for lateralus_lang-3.1.0.tar.gz
Algorithm Hash digest
SHA256 869a1cec67d519454c02e52790ea9bb1cf0f672709dfe3cf736f6ef4805f8d76
MD5 aee36694dcdce96ee20afa059b7b2c36
BLAKE2b-256 7df371e970b061a77194262545a1ab76f9d79e83854268d7bf4c6214b5d03650

See more details on using hashes here.

File details

Details for the file lateralus_lang-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: lateralus_lang-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 520.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for lateralus_lang-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b70db65524d7bf4aa5c2f45e2107c5f65d938534b3a237fc042b4ead6fda318
MD5 d785657f894e45ad48f9dcb2a813d3ca
BLAKE2b-256 ab95a10d2eb7ef665a543a16fc934ffa61b2c38549829202a84ffcc566c6abd2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page