Introduction
What Actus is, what it is for, and what state it is in.
Actus is a programming language for writing low-level software. It is strict on purpose: the compiler asks you to say how each value is used, and it refuses programs that use values in a way you did not say.
This page explains what that means. If you would rather start typing, go to Install and then First program.
What Actus is
Actus is a systems language. It compiles to native machine code and gives you control over memory and data. A few ideas shape it.
Ownership is written down. Every parameter and every variable has a role. The role says who owns the value and what may be done with it.
You can read a function's signature and see how it treats its arguments:
Here main owns number (erg), and double only reads it (abs).
Running this program prints 42.
Integer overflow is never silent. If an addition, subtraction or
multiplication does not fit in its type, the program stops with an error.
It does not quietly wrap around. When you do want wrapping or saturating
arithmetic, you write it with a different operator: +% wraps and +|
saturates. The first program page
shows what the error looks like.
Native code through LLVM. The compiler produces native object files and executables using LLVM. There is no virtual machine and no garbage collector.
Made to fit small targets. A new project can choose the small core
runtime instead of the standard library (actus new --runtime core).
Support for embedded targets is still early.
What state it is in
Actus is an early alpha. The current release is 0.3.0.
- The language, the compiler and the tools can change between releases. A program that builds today may need edits tomorrow.
- Some features are missing and some documentation is still being written.
- Expect rough edges and report what you find on GitHub (opens in a new tab).
It is a good time to learn the language and to try it on small programs. It is not yet a good base for work that must stay the same for years.
Where to go next
- Install Actus on Linux, macOS or Windows.
- Write and run your first program.
- Learn the basics, starting with Variables and values.
- Learn the tools: projects and modules, testing, the everyday commands, fixing errors, editor support and the compiler server for assistants.
- Browse the releases (opens in a new tab) to see what is new.