Building with Salam
What you can build today: web pages, servers, databases, concurrent programs, desktop apps, bare-metal code and machine learning.
Web development with Salam: a built-in language that generates HTML, CSS and JavaScript
Salam has a page language inside its compiler. You describe a page as a tree of elements, the compiler checks every element, attribute and CSS value, and you get HTML, CSS and JavaScript back. This article walks from a static page to components, events and pages rendered by a Salam server.
Read the articleDesktop and GUI applications with Salam: from WebView apps to a native UI drawn by Salam itself
Salam has three ways to put a window on the screen: a web interface in the system's WebView, a native UI drawn by Salam from the page language, and raylib for games. What each one does, how to package it, and where each stops.
Read the articleFrom command-line tools to operating system kernels: freestanding and bare-metal programming in Salam
The same compiler that builds Salam web servers can emit a program that owns the machine: no libc, no syscalls, a tiny runtime and a kernel that boots in QEMU. Here is how it works and what you still have to write yourself.
Read the articleFull-stack development with one language: can Salam bring the frontend and the backend together?
Salam can write the server, the database layer, the HTML and CSS, and the browser handlers in one language and one toolchain. This is how the pieces connect, with working code, and what is still missing.
Read the articleConcurrent programming in Salam: threads, task pools, channels and synchronization
Salam's concurrency is built on operating system threads with a bounded task pool on top. This guide covers each tool, from spawn and join to channels, select, groups and futures, with programs that run, and compares the model with Go, Rust and Java.
Read the articleCalling C from Salam: how the FFI opens up the existing C ecosystem
Salam can call any C function after a one-line declaration, pass structs by value, hand its own functions to C as callbacks, load libraries at run time and even build libraries that C programs call. A practical guide with the rules that keep it safe.
Read the articleScientific computing and machine learning in Salam: tensors, matrices, autograd and neural networks
Tensors, reverse-mode autograd, neural network layers, optimizers, scikit-learn style models, ONNX and GGUF readers: Salam's machine learning stack lives in the standard library and compiles to native code. A guided tour with programs that run, and a clear list of what it does not do.
Read the articleBuilding fast web servers with Salam: HTTP, routing, middleware, WebSocket and gRPC
Everything Salam's standard library offers for network services, from a ten-line HTTP server to WebSocket rooms and gRPC, how the server works inside, and what the router benchmark does and does not show.
Read the articleA tour of Salam's standard library: from networking and cryptography to databases, images and AI
Salam ships more than 170 packages with the compiler. This tour walks through them by area, runs a few of them, and says where the library is deep, where it is thin, and what it costs to have so much in std.
Read the articleDatabase applications in Salam: typed SQL, query checking and generated code
How Salam talks to databases: one connection interface over SQLite, MySQL and PostgreSQL, migrations at start-up, a SQL checker that reads your schema, and a generator that turns annotated queries into typed functions.
Read the articleThe Salam developer toolchain: language server, editor plugins, debugger, formatter, REPL and test runner
A language is only as pleasant as its tools. Salam puts the compiler, language server, formatter, test runner, REPL, debugger launcher and memory checker in one executable, with plugins for eleven editors. What each tool does, with real output, and what is still missing.
Read the articleInteractive user interfaces in Salam: components, state and event handling in the page language
A practical guide to interactivity in Salam pages: handlers written in Salam, components with their own state, lists with keys, callbacks, events that bubble, and the compile-time checks around them.
Read the article