Homepage mockup: copy and layout for review, not published. Screenshot areas are placeholders.
Haxeon Get started

A language and runtime for cross-platform apps and tools.

Develop on a live VM that keeps your program's state as you edit, ship one codebase as native executables or WebAssembly, and call C and C++ directly.

tasks.hx
function main() {
	final tasks = ["Buy milk", "Write the report", "Call the plumber"];
	for (task in tasks)
		Sys.println('- $task');
}
$ haxeon tasks.hx
- Buy milk
- Write the report
- Call the plumber
Apps

Cross-platform UI

Change the code. The app keeps going.

Run your app with haxeon run --watch --live and save a change: the running app takes the new code and keeps what it was doing. Try it here: tick a task, type a draft, then apply the edit.

src/App.hxversion 1

    
Task List

Tasks

Running version 1
Patched in place: logic, data, native calls and UI.Kept: every object the app made.A broken edit: the app keeps running the last good code.

UI that looks the same everywhere

The ui package draws on the GPU, with real text handling built in.

LayoutText shapingRight-to-left textCJK line breakingVector drawingThemes

Native services from the OS

Each platform's own services, through one API.

WindowsMenusTrayDialogsNotificationsClipboardWebViewAccessibilityGamepadSensorsFile watchingNetworking

Packages

From the haxeon registry, versioned with the toolchain.

gpuaudioanimationeditorfilesystemcredentialsplatformagentkit

The native services layer is pre-1.0; its API is still changing.

The language

Typed, expressive, and quick to write.

Static types with inference, value types, pattern matching, null safety and deterministic cleanup, compiled fast enough to edit while it runs.

A struct is a value: == compares its fields and it works as a map key. The compiler writes the equality and hashing.

struct Point implements Hashable {
	public final x:Int;
	public final y:Int;
	public function new(x:Int, y:Int) {
		this.x = x;
		this.y = y;
	}
}

final names = [new Point(0, 0) => "origin"];
Sys.println(new Point(1, 2) == new Point(1, 2));
Sys.println(names[new Point(0, 0)]);
true
origin
C and C++

Call C and C++ without a bridge.

Point Haxeon at a header. Structs keep their C layout, strings cross as UTF-8, and handles the library owns close exactly once.

geometry.h

typedef struct geo_point {
	double x;
	double y;
} geo_point;

/* The distance between two points. */
double geo_distance(const geo_point *a,
                    const geo_point *b);

/* Moves point by (dx, dy) in place. */
void geo_translate(geo_point *point,
                   double dx, double dy);

Main.hx

import Geometry;

function main() {
	var origin = new Point();
	var corner = new Point();
	corner.x = 3.0;
	corner.y = 4.0;
	var d = Geometry.distance(origin, corner);
	Sys.println('distance: $d');

	Geometry.translate(corner, 1.0, 1.0);
	Sys.println('moved to: ${corner.x}, ${corner.y}');
}

Output

$ haxeon run
distance: 5
moved to: 4, 5
geo_point · 16 bytes double x double y 0816 C geo_point *a Haxeon Point corner Both sides read and write the same bytes: no copying, no conversion layer.
One codebase, three outputs

Develop live, ship native or WebAssembly.

Main.hx JIT VM native executable .wasm module live editsahead of time, via CWebAssembly

Develop on the VM

haxeon run --watch --live

A fast JIT VM that starts at once and takes your edits while the program runs.

Ship a native executable

haxeon build --build-mode=release

Compiled ahead of time through C into one executable, with the VM linked in.

Build WebAssembly

haxeon build --target wasm32

A .wasm module, not a JavaScript bundle. Experimental.

PlatformStatusLive editing
Linux (x86-64, arm64)SupportedYes
macOS (Intel, Apple Silicon)SupportedYes
Windows (x86-64)SupportedYes
Android (arm64-v8a, x86_64)SupportedYes
Web (WebAssembly)ExperimentalNot yet
iOSIn progressNot yet
Tooling

The whole toolchain, in one command.

Everything ships with Haxeon and works the same in the editor and on the command line. No plugins to assemble.

Language server

haxeon lsp

Completion, go to definition, diagnostics as you type. The VS Code extension uses it.

Debugger

Debug Adapter Protocol

Breakpoints, stepping, watchpoints, logpoints and exception breaks, even across a live edit.

Formatter and linter

haxeon fmt · haxeon lint

One house style, and checks that know your types.

Profiler

haxeon run --profile

A timeline of your running program, opened in Perfetto or in VS Code.

Build and test

haxeon build · check · test

Incremental builds through a compile server that stays warm.

Packages

haxeon add ui

A registry, version ranges and a lockfile. Publish with haxeon publish.

C and C++ bindings

haxeon ffi import

Bindings generated from headers.

Setup check

haxeon doctor

Names what is missing and the command that installs it.

What else you can build

The same language, beyond apps.

Tools

haxeon create my_tool -t console

Command-line programs, built into one executable.

Games and 3D

gpu · audio · animation

Tune a game's logic while you play it.

Scripts

haxeon script.hx

One file, no project, started at once.

Embedding

C or C++ host

Run Haxeon inside an existing application.

Start building

Three steps to a running app.

  1. Install

    Unpack a release and put its bin on your PATH. haxeon doctor checks your C toolchain.

  2. Create

    haxeon create my_app

    A windowed app for Linux, macOS and Windows.

  3. Run and edit

    haxeon run --watch --live

    Change src/Main.hx and watch the app update.