2026-07-07 19:40:25 +02:00
2026-07-07 19:40:25 +02:00
2026-07-05 15:22:50 +02:00
2026-07-07 19:40:25 +02:00
2026-07-01 10:49:38 +02:00
2026-03-19 13:14:50 +01:00
2026-07-01 14:43:39 +02:00
2026-07-07 19:40:25 +02:00

zern

A very cool language

Features

  • Clean indentation-based syntax
  • Compiles to x86-64 Assembly
  • No libc required!
  • Produces tiny static executables (11KB for hello.zr)
  • Has static typing, UFCS, variadics, dynamic arrays, hashmaps, DNS resolver, etc.

Syntax

func main[] : i64
    answer := os.urandom_i64()->abs() % 100

    while true
        io.println("Guess a number: ")
        guess := io.read_line()->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://git.ton1.dev/toni/zern
zern -r hello.zr
Languages
Rust 100%