Command Palette

Search for a command to run...

zig package icon
topolarity/zig

wasi

Public
wasmer run topolarity/zig

An experimental compilation of Zig's "stage2" compiler to WASI.

This compiler is not yet feature-complete, and some valid Zig programs do not compile correctly.

This one does, though:

const std = @import("std");
pub fn main() void {
    const stdout = std.io.getStdOut();
    stdout.writeAll("Hello world!") catch unreachable;
}

(Warning: EXPERIMENTAL) Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.


Github