Alecci Programming Language
Alecci is a compiled programming language designed for teaching concurrent and parallel programming. It provides built-in primitives for threading, synchronization, and inter-thread communication, and compiles to native code via LLVM.
The language is used in operating systems and parallel programming courses to help students write, analyze, and debug concurrent programs without the overhead of a general-purpose systems language.
Installation
pip install alecci
If the alecci command is not found after installation, add the user bin directory to your PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
You can also invoke the compiler directly without installing the command:
python3 -m alecci
System Requirements
- Python 3.8 or later
- LLVM 14 or later (provided via
llvmlite) - GCC or Clang for linking
Usage
alecci program.ale -o program
./program
Sanitizer options
ThreadSanitizer is enabled by default to detect data races at runtime:
alecci program.ale -o program # ThreadSanitizer enabled (default)
alecci program.ale --no-tsan -o program # Sanitizers disabled
Language Overview
Variables
mutable x := 42
const message := "Hello"
mutable arr := array(10, 0)
Procedures and functions
procedure main(argc, argv)
print("Hello, Alecci!")
end procedure
Threads
procedure worker(thread_number as int)
print `Worker {thread_number} running`
end procedure
procedure main(argc, argv)
shared const thread_count := 4
mutable threads := create_threads(thread_count, worker)
join_threads(threads)
print("All workers done")
end procedure
Synchronization primitives
shared mutable counter := 0
shared mutable mtx as mutex := mutex()
procedure increment(thread_number as int)
lock(mtx)
counter := counter + 1
unlock(mtx)
end procedure
Available primitives: mutex, semaphore, barrier, queue, thread.
Concurrency Validation
The package includes a test suite (concurrency_validation/) with annotated example programs covering common concurrency patterns and bugs, including data races, deadlocks, and thread leaks. These are used to evaluate ThreadSanitizer detection rates.
Source
Source code is available at github.com/citic/alecci.
Metadata
Release files for alecci 1.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| alecci-1.8.0.tar.gz | 132.0 kB | Without provenance | Details for alecci-1.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alecci-1.8.0-py3-none-any.whl | Python 3 | none | any | Details for alecci-1.8.0-py3-none-any.whl |
Total release size: 247.0 kB
Release files / alecci-1.8.0.tar.gz
| Download URL | alecci-1.8.0.tar.gz |
|---|---|
| Size | 132.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
996a4d71c3f1ff1ebc983edddd617b680298923d8f51417822af7311f2c87ef2
|
|
BLAKE2b-256 checksum How to use checksums |
ef15e1ec3ac03de1e516288eb57f9c34994cc3a799a04cd528cf4468d5b1b2f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / alecci-1.8.0-py3-none-any.whl
| Download URL | alecci-1.8.0-py3-none-any.whl |
|---|---|
| Size | 115.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74794de05efdc76a5a176cf2512ef0fbc57e0ab2ac10b3839136ccf156138c83
|
|
BLAKE2b-256 checksum How to use checksums |
bd108e86adaacc7d2a5e605367e76161df7aa6d0d07d739b28c824f12a37b59d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for alecci 1.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.