Loxel

A modern, expression-oriented language with optional typing, multilingual keywords, and built-in concurrency.

Serving live 4 workers GET / HTTP/1.1
Language Features

Expression-Oriented

Everything is an expression. if, match, try, and blocks all return values.

Optional Static Typing

TypeScript-style annotations with full inference. Union, intersection, nullable, and generic types.

Multilingual Keywords

Write in English, Spanish, French, German, Portuguese, Japanese, or Chinese.

Rich Operators

Pipeline |>, Elvis ?:, nullish ??, optional chaining ?., ranges, and more.

Async / Await

First-class concurrency with threads, channels, and async I/O powered by Boost.ASIO.

Pattern Matching

Powerful match expressions with guards, ranges, destructuring, and exhaustive checking.

AI Training & Inference

A pure-Loxel deep-learning stack — no PyTorch. QLoRA fine-tuning on a 4-bit base plus fused-kernel KV-cache generation, proven on SmolLM2-360M.

Explore Full Language Reference →
See Loxel in Action
expressions.lox
operators.lox
types_and_pipelines.lox
concurrency.lox
classes.lox
event_hooks.lox
i18n_and_emoji.lox
Train and Run Models in Pure Loxel

No PyTorch, no Python in the loop. A pure-Loxel stack — threaded f32 tensors with a fused 4-bit kernel (std::tensor), and real-model QLoRA fine-tuning plus Q4 KV-cache inference (std::llm) — proven end-to-end on SmolLM2-360M. Built for low-memory devices: the 4-bit base never leaves Q4 size in RAM, so the same pipeline targets phones.

qlora_finetune.lox
Write Code in Your Language

Loxel supports multilingual keywords and type names.

English
def class String
Español
funcion clase Cadena
Français
fonction classe Chaîne
Deutsch
funktion klasse Zeichenkette
Português
funcao classe Cadeia
日本語
関数 クラス 文字列
中文
函数 字符串
This Page Is Served by Loxel
Workers
4
Queue Capacity
100
Request
GET /
Protocol
HTTP/1.1
/health /echo 📚 Documentation