Zig
A modern systems language designed as a practical alternative to C — no hidden control flow, no hidden allocators, no GC. Compact surface area (60 concepts) with comptime replacing macros and generics. Benchmarks show concise code with low ceremony. Pointers are non-nullable by default and safe builds include runtime bounds checking and overflow detection, but there's no borrow checker or compile-time race prevention — safety sits between C and Rust.
Quality
Concept Distribution
Safety3.3 / 5
Memory
RuntimeSafe builds trap OOB; no borrow checker for use-after-free
Null
Compile-timePointers non-nullable by default; ?*T required for optionals
Data Races
NoneNo compile-time or runtime race detection
Overflow
RuntimeTraps in safe mode, wraps in ReleaseFast
Coercion
Compile-timeNo implicit conversions — explicit @intCast required
Compile-timeRuntimeOpt-inNone
Expressivenessavg across benchmarks
Lines
39.9
Verbosity
1055
Ceremony
0.2
Surface Area65 concepts
49 reserved keywords
Explicitness
75% of 65 concepts have dedicated keyword syntax. The rest are learned through documentation and practice.
AI Readiness
Type Coverage
Fully Static
LLM Tokens
390.9
Tok/Line
9.5
Lower tokens = cheaper API calls. Higher type coverage = more for AI to work with.
Solutions
View all Zig solutions in the problem pages.