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. Install the Silex extension from its Extensions view for syntax highlighting, diagnostics, completion, and navigation.
Install Silex first: the language server is provided by the silex command, separately from the extension. Rust and Git are not required for this installation.
$ silex --versionThe command must be available in your PATH. Restart Zed if you just added it.
Search for Silex, then click Install.
Open Extensions with Cmd + Shift + X on macOS or Ctrl + Shift + X on Linux and Windows.
Zed recognizes Silex and starts silex lsp automatically.
$ rustup target add wasm32-wasip2
Install Git and Rust with rustup to build the extension.
$ 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.
This installation overrides the gallery version. To return to the published version, uninstall the development extension from the Extensions view.
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.
Procedural synthesis and sound playback with envelopes, 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.
Object-oriented scene trees backed by GFX.Application and GFX.ECS.
Optional native Silex 2D physics, 3D geometry and material contact response 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, sprites, 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.