2025-12-25 15:19:15 +01:00
2025-12-25 15:19:15 +01:00
2025-07-02 13:56:30 +02:00
2025-06-29 11:36:48 +02:00
2025-06-29 11:36:48 +02:00
2025-12-22 21:21:15 +01:00
2025-12-22 21:58:08 +01:00

zern

A very cool language

Features

  • Clean indentation-based syntax
  • Compiles to x86_64 Assembly
  • No libc required (SOON; still used for memory allocation and DNS resolution)
  • Produces tiny static executables (~30KB with musl)
  • Sometimes works
  • Has the pipe operator

Syntax

func main[] : i64
    let answer: i64 = math.abs(os.urandom()) % 100

    while true
        io.println("Guess a number: ")
        let guess: i64 = io.read_line() |> str.trim() |> str.parse_i64()

        if guess == answer
            io.println("You win!")
            break
        else if guess < answer
            io.println("Too low!")
        else
            io.println("Too high!")

Quickstart

cargo install --git https://github.com/antpiasecki/zern
zern -m -r hello.zr
Description
Languages
Rust 100%