Modern native language

Modern CodeNative Power

Silex is a simple, modern language for games and native applications, with modules, packages and native compilation built in.

Main.sx
func answer() int {
    return 40 + 2
}

func main() {
    print(answer())
}
$ silex run Main.sx → 42
01

Simple

A focused language and integrated toolchain keep writing, building and sharing applications direct.

02

Safety built in

Clear ownership, automatic lifetimes and deterministic cleanup help prevent common resource errors.

03

Native performance

Silex compiles directly to native applications and is designed for performance-sensitive games and software.

Start here

Install Silex

The standalone compiler does not require Zig or Git on the developer machine.

macOS

Apple Silicon
curl -fsSL https://raw.githubusercontent.com/Matanek/Silex/main/install.sh | sh

Linux

x64
curl -fsSL https://raw.githubusercontent.com/Matanek/Silex/main/install.sh | sh

Windows

x64 · PowerShell
irm https://raw.githubusercontent.com/Matanek/Silex/main/install.ps1 | iex

Next steps

From install to first run.

One setup command, two official packages, and your Silex source is ready to run.

Terminal
  1. 01
    Prepare the toolchain $ silex setup
  2. 02
    Add the official packages $ silex install STD
    $ silex install GFX
  3. 03
    Run your application $ silex run Main.sx

Official packages

A small foundation, ready to grow.

The first registry contains the standard package and the graphical application stack.