Fystan is a compiled programming language that blends the intuitive syntax of Python, Go, and JavaScript with the raw performance of Rust and C++.
It features safe, efficient memory management via COGC (Compile-time Only Garbage Collection) and generates native binaries for multiple architectures.
⚡ Currently in active development – new features are added regularly.
x86_64
, aarch64
, and `armv7`(Coming soon — build from source instructions will be added here)
To compile a Fystan file:
fystan build example.fys --target OS,architecture
Example:
fystan build main.fys --target windows,x86_64
The output will be a native assembly or binary for your selected target architecture.
All compiler output and errors are in English.
COGC is a memory management system that shifts all garbage collection decisions to compile-time, eliminating the need for runtime garbage collection.
It enables developers to write code with automatic memory management comparable to Python or JavaScript without manual intervention.
The core of COGC is Compile-time Garbage Collection Elimination:
free()
or arena resets) are inserted directly into the generated native code.✅ No runtime garbage collector
✅ No manual `free()` calls
✅ Near-zero runtime overhead
In rare cases where an object’s lifetime cannot be fully resolved at compile-time (such as dynamic cyclic references), COGC triggers a mini-GC:
It runs briefly to clean up unreachable cycles, then exits immediately, causing minimal pause times (microseconds to milliseconds).