HEXOLANGGitHub ↗
A LANGUAGE BUILT FROM THE GROUND UP

Closer to the
machine.

A modern scripting language. A low-level soul.
Written entirely in x86-64 Assembly.

BETA · v0.5.3LINUX · macOS · WINDOWSx86-64
H
CORE / 01CONTROL AT EVERY LEVEL
{ }
x86_64
0x HEXO

Built from scratch.
Built to explore.

Hexolang is a gradually typed scripting language designed to bring modern developer ergonomics to a runtime built close to the metal.

From tokenization and parsing to memory and native APIs, every layer is a chance to understand what makes a language tick.

100%Assembly core
GradualType system
16 bytesValue layout
3 platformsx86-64 targets

Familiar syntax.
Uncompromising internals.

λ

Gradual typing

Start flexible. Add annotations when you need contracts and clarity.

any · int · string · union
◈

First-class functions

Functions as values, callbacks and closures with lexical environments.

fn · lambda · closure
▣

Object-oriented

Classes, structs, inheritance, methods and static members.

class · struct · extends
⌘

Native by design

Connect to the OS, file system, databases, web and multimedia.

native APIs · C extensions

From source
to execution.

A straightforward interpreter pipeline, powered by a runtime written in Assembly.

01LexerSource → tokens
→
02ParserTokens → AST
→
03InterpreterAST evaluation
→
04RuntimeValues · memory · OS
NO BYTECODE. NO INTERMEDIATE MACHINE CODE.

Hexolang source is evaluated by the interpreter directly. The runtime owns values, functions, memory, and platform interfaces.

Simple on the surface.
Powerful underneath.

Readable, familiar building blocks that leave room to grow from scripting to structured code.

example.hexoHEXO
fn greet(string name) -> string {
    return "Hello, " + name;
}

print(greet("World"));
HEXOLANGDEMO SNIPPET

Native capabilities.
Wide horizons.

A growing standard library reaches from everyday data to graphics, databases and the operating system.

01MathTrigonometry, logarithms, rounding, min/max∑
02File & OSFile I/O, directories, environment, process⌁
03DataJSON, CSV, SQLite, MySQL, MariaDB◫
04WebHTTP server, responses, URL encoding↗
05GraphicsDrawing, textures, input, 3D primitives◌
06AudioSound playback, music, effects, fonts♫

Curiosity, meet
the machine.

Learn the language. Explore the internals.
Follow the project as it evolves.

Open the Wiki ↗