v0.4.5
A small native language
that uses C code as it is.
Zevic turns source code into LLVM IR and lets clang produce the machine code. Types are always written, failures come back as a Result, and a GC manages memory. The compiler is written in Zevic itself.
module Main
import Zevic.Console
fn FizzBuzz(n: I32) -> String {
if (n % 15 == 0) {
"FizzBuzz"
} else if (n % 3 == 0) {
"Fizz"
} else if (n % 5 == 0) {
"Buzz"
} else {
"${n}"
}
}
fn Main() {
for (i in 1..=20) {
Console.Println(FizzBuzz(i))
}
}Compile and run
zevic fizzbuzz.zev -o fizzbuzz
./fizzbuzzif and match are expressions that return values, and the last expression is the function's result. There are no exceptions and no null. Continue with the tutorial.
Features
- Uses C as it isCall C functions with
extern "C"and expose Zevic functions to C withexport "C". C sources build together with Zevic. - Self-hostedThe compiler
zevic1is written in Zevic and builds itself to the same LLVM IR (make bootstrap). - Failures are types
OptionandResult, and the?operator. No exceptions, no null. - Expressive types
struct/class/enum/interface, generics, closures and union typesA | B. - Concurrency
async/await, channels, OS threads (Thread.Spawn) and arbitrary-precisionBigInt. - Standard library
FsJsonHttpNetRegexCsvTomlDateTimeZipCliand more: over 30 modules. - Tools
zevpmfor packages and builds,zevfmtfor formatting, andtestblocks for testing. - Garbage collectedThe Boehm GC is bundled, so you can write code without thinking about memory management.
Latest news
-
The official website is open
November 17, 2026 -
Zevic 0.4.5 released
November 16, 2026 -
Zevic 0.4.4: Windows threads and the default optimisation level
November 16, 2026