What is Salam?
Salam is a general-purpose, statically typed, open source programming language. Its distinguishing feature is that it is fully bilingual: you can write a program in English or in Persian, and either way it compiles to a native executable for Linux, macOS, Windows and the web.
What does bilingual actually mean here?
Every keyword, built-in type, standard library package and compiler message has an English name and a Persian one, and the compiler accepts both. Persian digits are accepted wherever English ones are. The command salam translate en program.salam converts a Persian program to English, and translate fa goes the other way.
Is Salam fast?
Yes. Salam compiles to native machine code with no virtual machine and no garbage collector. On the 39 benchmark programs that use the same algorithm in every language it averaged 10.6 ms, against 11.7 ms for C and 11.3 ms for Rust, the same range, and Python took 56 times as long. The speed page has the numbers and the method.
What is Salam good for?
The same things any systems language is good for: command line tools, servers, compilers, numeric work, embedded and operating system code. The compiler itself is written in Salam, and so is an operating system and the program that builds this website.
Is Salam free and open source?
Yes. Salam is released under the GNU GPL version 3 and the full source is on GitHub.
Which operating systems does Salam run on?
Salam installs on Linux, macOS and Windows, and compiles programs for those plus WebAssembly and the browser. You can also write and run code in the online editor without installing anything.
Do I need to know Persian to use Salam?
No. The English form of the language is complete on its own: this site, the course and the standard library reference are all usable without a word of Persian. The Persian form is there for people who prefer it, and the two interoperate.