PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Zig

Zig

Zig is a pl created in 2015 by Andrew Kelley.

#195on PLDB 7Years Old 23.5kUsers
0Books 0Papers 4kRepos

Try now: Riju · TIO

A programming language designed for robustness, optimality, and clarity.


Example from Compiler Explorer:
// Type your code here, or load an example. export fn square(num: i32) i32 { return num * num; }
Example from Riju:
const std = @import("std"); pub fn main() anyerror!void { std.log.info("Hello, world!", .{}); }
Example from hello-world:
const std = @import("std"); pub fn main() !void { const stdout = std.io.getStdOut().writer(); try stdout.print("Hello World", .{}); }

Language features

Feature Supported Example Token
Comments
Line Comments
Binary Literals
Integers
Floats
Hexadecimals
Octals
Strings
"Hello world"
"
Print() Debugging std.debug.print
squirrel.html · zig.html · vala.html

View source

PLDB - Build the next great programming language · v2022 · Day 32 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com