WORMHALL

Learning Zig

Started by glue - 1.2 days ago
No. 38 [copy]
I'm starting to learn Zig, and I encourage you to try that as well.

It's a better C, cool for low level / system's programming, with manual memory management.

I would learn this instead of C/C++, and might be more fun than Rust.

Rust requires a lot of unsafe blocks anyway, and it's too verbose.

Zig has a nice clean syntax, it's very strict, and provides the building blocks you need.

The Zig devs have stated an anti-ai policy when it comes to contributions, they don't allow ai slop into the codebase, they say because zig is an educational endevour for the community, and using ai to develop it makes no sense.

Recently Bun, the node thing made by Anthropic converted their hundreds of thousands of lines of zig into rust. The devs inspected it and concluded it was an ai slop rewrite, an unmaintainable mess.

Here's a nice video to start:


Learn: https://ziglang.org/learn/

About arrays: https://levin405.neocities.org/blog/2025-02-20-zig-arrays-slices-pointers/
Post Image Post Image Post Image
No. 43 [copy]
https://x.com/kai_fell/status/2079150442030768359

Log in to reply.