Skip to content

Instantly share code, notes, and snippets.

@korakot
Last active February 4, 2023 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save korakot/2fe387f0bb69b5f5fb3fec1511a9ee8f to your computer and use it in GitHub Desktop.
Save korakot/2fe387f0bb69b5f5fb3fec1511a9ee8f to your computer and use it in GitHub Desktop.
Install zig in Colab
url = 'https://ziglang.org/download/0.10.1/zig-linux-x86_64-0.10.1.tar.xz'
!curl $url | tar xJ
!mv zig-linux-x86_64-0.10.1 /opt/bin
%%file main.zig
const std = @import("std");
pub fn main() void {
std.debug.print("Hello world\n", .{});
}
!zig run main.zig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment