Skip to content

v3.0.0

Choose a tag to compare

@SchoolyB SchoolyB released this 28 Apr 06:23
· 2988 commits to main since this release

EZ 3.0 is a ground-up rewrite. The Go interpreter is gone. In its place: a full C compiler backend that takes .ez source, emits C, and produces native binaries.

Highlights

  • Native compilation - .ez to C to binary. Real native code.
  • Scope-based memory management - arena allocators per scope, automatic cleanup, no garbage collector.
  • Pointers - ^Type syntax, new() returns pointers, addr(), auto-deref on struct fields.
  • Functions as first-class types - func(int, int) -> int signatures, store them, pass them, return them.
  • C interop - import c"stdio.h", call C functions with c.func().
  • Wide integers - i256/u256 new, i128/u128 reimplemented as portable structs.
  • 27 stdlib modules on native code - plus new modules: @net, @atomic, @mem, @fmt, @sync, @channels.
  • Wildcard types - ? for generic-style functions, monomorphised per call site.
  • Single embedded binary - one ez binary ships everything.
  • 1,200+ tests - unit, e2e, integration, sanitizer builds.

Breaking changes

  • temp renamed to mut
  • @std removed - all functions are builtins now
  • new() returns ^Struct pointers
  • bare func removed - use full signatures: func(int) -> int
  • import & use replaced by import and use
  • nil is a value, not a type
  • ez run removed - use ez <file.ez>

See CHANGELOG.md for the full curated changelog.

Installation

curl -fsSL https://raw.githubusercontent.com/SchoolyB/EZ/main/install.sh | bash

Or build from source:

git clone https://github.com/SchoolyB/EZ.git && cd EZ
make build && make install