A modern systems programming language with C-like syntax and zero-cost abstractions.
- Performance: C-level speed, compiles to native code via LLVM
- Simple: Clean syntax without complexity
- Structs: With methods and default values
- Memory: Manual control with malloc/free
- Fast compilation: Compiles large projects in milliseconds
# Build compiler
chmod +x ./build.sh; ./build.sh
# Compile and run
zyl hello.zyl --of hello
./helloimport std.libc.stdio : { printf }
struct Person {
string name;
int age;
void greet(Person* self) {
printf("Hi, I'm %s, %d years old\n", self.name, self.age)
}
}
int main() {
// Person p = Person{.age = 25, .name = "Alice"}
Person p = Person{"Alice", 25}
p.greet()
return 0
}- Optional semicolons
- Structs with methods and default values
- For/while loops with break/continue
- Type inference coming soon
Benchmark: 100M iterations
Zyl: 0.08s ⚡
Clang: 0.08s (identical!)Early development. Core language complete. See examples/ for more.
MIT
