Sign in

slow typer

@slowtyper.bsky.social
26 followers 54 following 13 posts

i like making computers do things

PostsRepliesMedia
slow typer @slowtyper.bsky.social · 15/11/2023
Playing around with Zig for the first time and it allows you to define integers of arbitrary bit-width (up to i65535, or u65535). For example, i578 refers to a signed 578-bit integer. Haven't seen that before, pretty neat! ziglang.org/documentatio...
Zig example code:

const std = @import("std");

pub fn main() void {
    const n: i578 = 1234567876543212345678987654567890;
    std.debug.print("big intereger = {}\n", .{n});
}
060