macOS
Apple Siliconcurl -fsSL https://raw.githubusercontent.com/Matanek/Silex/main/install.sh | sh
Focus on your game, not its setup. Silex brings together a modern compiled language, an integrated toolchain, and a coherent graphics foundation so you can get from code to screen faster.
struct Greeter {
let name:str
func message() str {
return "Hello from $(self.name)!"
}
}
func main() {
print(Greeter(name:"Silex").message())
}
An expressive, powerful, and flexible language for writing code that is pleasant to read and maintain.
Cross-platform compilation for Windows, macOS, and Linux. ARM64 and x64.
Typing and ownership make data flow predictable.
Install Silex
curl -fsSL https://raw.githubusercontent.com/Matanek/Silex/main/install.sh | sh
curl -fsSL https://raw.githubusercontent.com/Matanek/Silex/main/install.sh | sh
irm https://raw.githubusercontent.com/Matanek/Silex/main/install.ps1 | iex
Next steps
Verify the compiler, prepare the optional toolchain, then run your source.
$ silex --version$ silex setup$ silex run Main.sxInstall the Zed extension
Zed is a modern code editor. Manual installation of the Silex extension is available: prepare Rust, clone its repository, then load it into Zed.
$ silex --version
$ rustup target add wasm32-wasip2
Rust is not installed? Install it with rustup.
$ git clone https://github.com/Matanek/Silex-Extension-Zed.git
› zed: install dev extension
Select the Silex-Extension-Zed directory, then open an .sx file.
Public ecosystem
The catalog lists packages published on Cloudflare. Links to development repositories are optional.
Modular foundation for learning, behavior, and autonomous-agent packages.
Modular graphics and application library for windows, input, rendering, and GPU workloads.
Manual value tweens and reusable ECS timelines for 2D and 3D animation.
Composable Bundle contexts driven by one Application loop.
Portable image, model, and sprite-sheet data with runtime asset stores.
Sound loading and playback with fades, routing, spatial position, and GFX integration.
Portable vector drawing, text, rasterization, snapshots, and mutable pixel surfaces.
Stable entities, typed components, queries, spawn recipes, and deferred commands.
Portable font faces, shaping foundations, vector outlines, and hinted coverage for GFX.
Direct GPU resources, pipelines, commands, compute, rendering, and presentation.
Optional native Silex 2D physics simulation for GFX.
Generic rendering host with frame planning, multisampling, statistics, and presentation.
Retained 2D scenes with transforms, sprites, tile maps, cameras, Canvas content, and GPU rendering.
Retained 3D scenes with geometry, materials, lighting, cameras, and GPU rendering.
Live FPS and rendering-performance panels for GFX applications.
Declarative UI composition, controls, constraint layout, and retained Canvas rendering.
Composable ANSI/VT terminal and application-console controls for GFX.UI.
Display images, Canvas drawings, Plot figures, and other visual values in a native window.
Embed system HTML, CSS, and JavaScript WebViews in GFX windows.
Build, parse, select, transform, and serialize HTML documents.
Bounded HTTP/1.1 types, reusable clients, and application servers.
Load, save, and transform raster images with native Silex cascades.
Parse, inspect, construct, and serialize JSON values without losing numeric precision.
Create charts from Silex data and present them natively or export standalone SVG.
The standard library for portable Silex applications.
Persistent communication and shared-state synchronization for games and interactive applications.
Immutable multidimensional tensors, eager autodifferentiation, and CPU/GPU numerical operations for Silex.
Build, parse, traverse, and serialize strict XML documents.
Read, create, modify, and write human-authored YAML documents.
Built with Silex
These captures show examples distributed with Silex and available in the Silex-Examples repository.