Salam Magazine

The Salam Magazine

Long-form articles about the Salam programming language: how it is designed, how the compiler works, how it compares with the languages you already know, what you can build with it today and where it is going. Every code sample on these pages is compiled and run when the site is built.

The language

What Salam is, why it was built, and how one language can be written in both English and Persian.

Why does the world still need new programming languages? Salam's design philosophy and goals

Every successful language of the last twenty years was built to fix a specific pain. This article looks at what drove Go, Rust, Swift, Kotlin and Zig, then at the gap Salam targets and the design decisions that follow from it.

Read the article

Right-to-left programming: how Salam handles Unicode, Persian digits and bidirectional text

What it takes for a compiler, a standard library and an editor to handle code written right to left: source encoding, Persian digits, separators, strings as bytes and letters, the bidi algorithm and the traps that remain.

Read the article

One language, two scripts: how Salam lets you program in Persian and English with the same compiler

Salam is one language with two spellings. This article shows how a Persian file and an English file reach the same compiler, share one standard library, report errors in the reader's language and call each other's packages.

Read the article

What is the Salam programming language? A tour of a modern general-purpose and systems language

A complete introduction to Salam: the language, the self-hosting compiler, the standard library, the tools, the measured performance and the honest limits of a young language.

Read the article

Can programming in your native language change computer science education?

English is the hidden prerequisite of most programming courses. This article looks at what removing it can achieve, what the research supports, and how a bilingual language lets a student start in Persian and finish in English.

Read the article

From Persian code to English and back: inside the salam translate tool

salam translate rewrites a Salam program from English to Persian or from Persian to English without touching your own names, comments or strings. Here is what it changes, how it decides, and what to check afterwards.

Read the article

Beyond translated keywords: the real problems of designing a programming language for Persian and Arabic

What actually goes wrong when a programming language is written in Persian or Arabic script, from names with spaces to look-alike letters, and the concrete decisions Salam made for each problem.

Read the article

Designing Salam's syntax: readability, simplicity and power

Why Salam code looks the way it does: the decisions behind its blocks, declarations, loops, pattern matching and names, what each one costs, and how they compare with the syntax of Python, Go, Ruby and Lua.

Read the article

Compiler and performance

Inside the self-hosting compiler: code generation, the type system, memory, targets and what the benchmarks really say.

Interpreted or compiled? salam run, salam exec and salam build explained

Salam is a compiled language that also ships an interpreter and a REPL. What each of check, run, build and exec actually does, how they differ, and a simple guide to picking the right one.

Read the article

Is Salam really faster than C and Rust? A careful reading of the benchmark

A methodology-first walk through Salam's published benchmark: what was measured, how, what the averages hide, where Salam loses, and why the honest summary is the same range as C and Rust.

Read the article

Native compilation without a virtual machine or garbage collector: benefits, costs and performance

Salam programs run as plain machine code with no virtual machine and no garbage collector. What that buys you, what it costs you, how memory is handled instead, and what the benchmarks do and do not show.

Read the article

When a language builds itself: inside Salam's self-hosting compiler

The Salam compiler is written in Salam. This is the story of how it got there, how a release is bootstrapped from the previous one, what self-hosting buys a young language and what it costs.

Read the article

Three ways to generate code: Salam's C, LLVM and native backends compared

Salam can turn the same checked program into C, into LLVM IR or straight into machine code. A look inside each backend, real output from all three, and a practical guide to choosing.

Read the article

Cross-compilation in Salam: building for Linux, macOS, Windows and ARM from one machine

The --target flag, the three code generators behind it, the sysroots and linker built into the compiler, and an honest list of which targets are run in CI and which are only built.

Read the article

Static typing in Salam: catching bugs before the program runs

Salam checks every type before it generates any code, infers most of them for you, and goes further than types: exhaustive matches, optional values, checked errors and compile-time range checks, with the real compiler messages.

Read the article

Memory management in Salam: stack values, heap collections, defer and the ownership checker

A practical guide to memory in Salam: what is copied, what is shared, who frees what, how defer and compiler-inserted drops help, what the ownership checker catches at compile time and how memcheck finds the rest.

Read the article

From native to WebAssembly and JavaScript: everywhere a Salam program can run

One source file, several destinations: native executables, WASI modules, browser JavaScript, web pages, edge workers, an in-browser editor, phone apps and bare metal, with the trade-offs of each.

Read the article

From source code to executable: how the Salam compiler works, stage by stage

Follow a Salam program through the compiler: tokens, syntax tree, type checking and static checks, generated C or LLVM IR or machine code, and the final link, with real output from each stage.

Read the article

Salam and other languages

Side-by-side comparisons with C, C++, Rust, Go, Zig, Python, TypeScript, Java and C#, with the trade-offs stated plainly.

Salam vs TypeScript: one language for the browser and the server?

TypeScript runs everywhere JavaScript does and owns the largest ecosystem in software. Salam takes another route to one language for the whole stack: a native server, a page language and a JavaScript backend. Here is how they differ in practice.

Read the article

Salam vs C: simpler code in the same native performance range?

The same small programs written in C and in Salam, followed by an honest comparison of memory management, strings, safety checks, C interop, performance, tooling and maturity.

Read the article

Salam vs Go: which is better for fast web servers and concurrent software?

Go's goroutines and garbage collector against Salam's threads, task pool, channels and manual memory, with the same programs in both languages and an honest reading of the HTTP benchmark.

Read the article

Can a new programming language compete with decades-old ones? Salam's place in the global ecosystem

Every popular language was once new, and most new languages never become popular. This article looks at what carried Go, Rust, Kotlin and others to adoption, and measures Salam against the same forces without pretending the gap is small.

Read the article

Salam vs Java and C#: native code versus managed runtimes

Java and C# run on managed runtimes with a JIT compiler and a garbage collector, backed by two of the largest ecosystems in software. Salam compiles ahead of time to native code with no collector. The differences reach from startup time to how a team writes code.

Read the article

Salam vs Rust: performance, memory management, safety and low-level control

Rust proves memory safety at compile time and Salam does not. This comparison shows what each language checks, the same programs in both, the measured speed and where each one is the better choice.

Read the article

Salam vs C++: architecture, performance, tooling and systems programming

C++ is the default language for performance-critical software and has forty years of libraries behind it. Salam is a young systems language with a smaller surface. This comparison puts the same code side by side and is plain about where each one wins.

Read the article

Salam vs Python and Julia for scientific computing and numerical work

Python owns scientific computing through NumPy and its ecosystem, and Julia was designed for it. Salam brings a native compiler and a pure-Salam numerics library. This is what that library can do, what the benchmark rows measure, and where each language belongs.

Read the article

Salam vs Zig: two young compiled languages for low-level software

Zig and Salam are both pre-1.0 systems languages with no garbage collector, a defer statement and a try keyword. They make very different choices about allocators, compile-time code and how much the standard library should do.

Read the article

Salam vs Python: native speed with a simple syntax?

Salam reads almost like Python but compiles to native code with static types and no garbage collector. Here are the same programs in both, the measured speed difference, and the many cases where Python still wins.

Read the article

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 article

Desktop 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 article

From 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 article

Full-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 article

Concurrent 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 article

Calling 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 article

Scientific 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 article

Building 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 article

A 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 article

Database 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 article

The 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 article

Interactive 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

The road ahead

AI-assisted programming, education, open source and the industry: the opportunities in front of Salam and what it still needs.

Multilingual programming and the future of native-language code: could Salam's bilingual model work for other languages?

Salam compiles English and Persian source with one front end, one standard library and one set of error codes. This article takes the design apart and asks what it would take to add a third human language, and whether that is a good idea.

Read the article

Can AI write code in Persian? Generating and validating Persian Salam programs

Writing Persian code is a harder test for a code generator than writing English code, because there is so little of it to learn from. What goes wrong, what the Salam compiler catches in Persian, and three practical ways to get Persian programs that compile and do what you meant.

Read the article

Salam in programming education: teaching beginners, computer science and compilers with one bilingual language

Salam lets a student start in Persian, move to English keywords without switching languages, and later read a production compiler written in the same language. What exists for teachers today, and what classrooms would still need.

Read the article

How a new programming language builds an open source ecosystem: packages, registry, documentation and contributors in Salam

A language is only as useful as the code around it. This is how Salam's package manager, standard library, documentation and contributor process are built, and an honest account of how small the ecosystem still is.

Read the article

Salam in five to ten years: from an open source project to a global ecosystem, and what has to happen first

A vision piece with its feet on the ground: where Salam stands in November 2026, what the history of Go, Rust, Python and Kotlin says about how languages grow, and the five milestones that would turn Salam into a durable ecosystem.

Read the article

Where Salam could fit in industry: web services, cloud infrastructure, enterprise back offices and systems software

Salam has the technical pieces for web services, cloud tools, back-office software and systems work. It does not yet have the stability promise, ecosystem or support model most companies need. This is a map of the fit and the gaps.

Read the article

Programming with AI in the Salam ecosystem: Salam AI, Salam Agent, the MCP server, the API and the Telegram bot

Salam has its own assistant, a desktop agent that works in a folder on your computer, a hosted MCP server for the AI tools you already use, an API and a Telegram bot. What each one does, how they fit together, and which limits you set.

Read the article

Running AI workloads with Salam: loading GGUF language models, running ONNX and building ML tools without Python

Salam's standard library can read GGUF language models, run small Llama-family models on the processor and execute ONNX graphs, all in pure Salam. Here is what works, what it costs and what it is not meant for.

Read the article

What makes a programming language ready for production? Salam against an enterprise adoption checklist

Production readiness is not one feature but a dozen boring guarantees. This article lists them, then scores Salam honestly on each one, with the evidence from the repository and the gaps that remain.

Read the article

The future of programming languages in the age of AI: what makes a language ready for AI-assisted development

Code generators are good at languages they have seen millions of times and weak at everything else. A young language cannot change its training data, but it can change what happens after the first draft. What Salam does about it, and what any language designer can learn from it.

Read the article