ziglang/zig
View on GitHub ↗ ★ 43,260 Zig
Moved to Codeberg
680 mentions on Hacker News by 373 people: 46 stories, 634 comments · first 2016-01-08 · latest 2026-09-19
20082026
-
…probably just my problem domain. I did find this bug that looks like it was resolved a year ago https://github.com/ziglang/zig/issues/24184 and I have also read they are doing some other work on floating point that will hopefully address…
comment by chaz72 · 2026-09-19 · in What Zig felt like, coming from Rust -
…will require one compilation unit - the restricted function pointers proposal being a good example: https://github.com/ziglang/zig/issues/23367 The bun team tried to parallelize Zig's semantic analysis a while back - and it DID compile…
comment by Retro_Dev · 2026-09-12 · in I made a build visualizer to understand Bun's compile times -
…userland API to produce something more like how async/await works in other languages ( https://github.com/ziglang/zig/issues/23446 ).
comment by ameliaquining · 2026-09-12 · in A Design Space Exploration of Async/Await -
> a plan to transition to it for C compilation That's not planned AFAIK (see https://github.com/ziglang/zig/issues/16269 ). `translate-c` is really only intended for header translation, not C source code. See…
comment by squeek502 · 2026-07-28 · in Zig's Incremental Compilation Internals -
…allocator that can prevent double-free, use-after-free and can detect leaks. For more detail, see: https://github.com/ziglang/zig/issues/3180#issuecomment-5284...
comment by azakai · 2026-07-16 · in How Our Rust-to-Zig Rewrite Is Going -
…their bootstrapping process with a custom wasm2c implementation with just the features they need. https://github.com/ziglang/zig/blob/master/stage1/wasm2c.c I get the feeling this is an underappreciated technique with more potential.
comment by lioeters · 2026-07-03 · in crustc: entirety of `rustc`, translated to C -
…packed struct fields but people may be able to assume that edit: also, this is a relevant issue: https://github.com/ziglang/zig/issues/12547
comment by peesem · 2026-06-26 · in Zig's new bitCast semantics and LLVM back end improvements -
…(or just didn't think about it), and now that code works properly on big-endian machines. [0]: https://github.com/ziglang/zig/issues/19755
comment by samatman · 2026-06-25 · in Zig's new bitCast semantics and LLVM back end improvements -
…D, but Zig and Rust are well-known for continuously evolving. Zig has the (in)famous "Writergate": https://github.com/ziglang/zig/pull/24329 And besides Rust's high count of RFCs, there are things like async (I'm not complaining about it,…
comment by blanched · 2026-05-27 · in Go: Support for Generic Methods -
Read through the stuff yourself if you don't believe me: https://github.com/ziglang/zig/issues?q=is%3Aissue%20label%3...
comment by j-pb · 2026-05-14 · in Remove .zig Files from Bun -
Doubt it: https://github.com/ziglang/zig/pull/24536
comment by jeffmess · 2026-04-30 · in The Zig project's rationale for their anti-AI contribution policy -
…research, or any denial of reality. [1] Zig on GitHub has 3,042 open issues (as of this post) Link: https://github.com/ziglang/zig/issues [2] Tracking of Zig's strange star history Link: https://ossinsight.io/analyze/ziglang/zig#overview…
comment by baranul · 2026-04-27 · in GitHub's fake star economy -
…won't be the current LLVM backend that does LLVM API calls. P.S. It may be helpful to read through https://github.com/ziglang/zig/issues/13265
comment by jibal · 2026-04-25 · in Writing a C Compiler, in Zig (2025) -
…too, not just star counts or fan jealousy over other repos having higher star counts. [1]: https://github.com/ziglang/zig [2]: https://ossinsight.io/collections/programming-language [3]: https://ossinsight.io/collections/programming-languag…
comment by baranul · 2026-04-25 · in GitHub's fake star economy -
…kinda are: "This issue is to fully eliminate LLVM, Clang, and LLD libraries from the Zig project." https://github.com/ziglang/zig/issues/16270
comment by Meneth · 2026-04-23 · in Writing a C Compiler, in Zig (2025) -
It is indeed (somewhat) related, and in fact that was fixed by this PR: https://github.com/ziglang/zig/issues/25771
comment by mlugg · 2026-03-11 · in Type resolution redesign, with language changes to taste -
…so big in the first place? I was searching around for causes and came across the following issues: https://github.com/ziglang/zig/issues/15358 which was moved to https://codeberg.org/ziglang/zig/issues/30193 The following quotes stand out…
comment by h4ch1 · 2026-03-11 · in Type resolution redesign, with language changes to taste -
…of the "zero" type (also known as "noreturn"). This was proposed, discussed, and accepted here: https://github.com/ziglang/zig/issues/3257 Later, Matthew Lugg made a follow-up proposal, which was discussed both publicly and in ZSF core…
comment by AndyKelley · 2026-03-11 · in Type resolution redesign, with language changes to taste -
…would be more fair. There are some articles about the diagnostic pattern in Zig, e.g. [1], [2] [1] https://github.com/ziglang/zig/issues/2647#issuecomment-5898... [2] https://mikemikeb.com/blog/zig_error_payloads/
comment by qezz · 2026-03-02 · in Why Go Can't Try -
…Zig can't currently do this. (The green threads coro stack stuff makes this more important.) [1]: https://github.com/ziglang/zig/issues/23475#issuecomment-279...
comment by srcreigh · 2026-02-14 · in Zig – io_uring and Grand Central Dispatch std.Io implementations landed -
…along the way. And of course during all of this they also encountered an issue in Zig itself: https://github.com/ziglang/zig/issues/24627
comment by kccqzy · 2026-02-14 · in Zig – io_uring and Grand Central Dispatch std.Io implementations landed -
…if I am reading this correctly. Though Zig std does have both an HTTP client and an HTTP server. https://github.com/ziglang/zig/issues/910#issuecomment-39548...
comment by ceteia · 2026-02-12 · in Lessons from Zig -
…library. Regarding HTTP in Zig std library, might some of the API not be removed in the future? https://github.com/ziglang/zig/issues/910#issuecomment-39548...
comment by ceteia · 2026-02-12 · in Lessons from Zig -
you'll likely be interested in [1] and [2] for further reading [1]: https://github.com/ziglang/zig/issues/7240 [2]: https://www.youtube.com/watch?v=pq1XqP4-qOo
comment by nektro · 2026-01-27 · in The Holy Grail of Linux Binary Compatibility: Musl and Dlopen -
Andrew Kelley has said relatively recently that there are no plans to introduce a Zig ABI: https://github.com/ziglang/zig/issues/3786#issuecomment-2646...
comment by peesem · 2026-01-24 · in Memory layout in Zig with formulas -
Another default that Zig got right: every non-void result must be handled. https://github.com/ziglang/zig/issues/219
comment by ivanjermakov · 2025-12-24 · in map::operator[] should be nodiscard -
…“There are too many ring buffer implementations in the standard library“ might also be interesting: https://github.com/ziglang/zig/issues/19231
comment by danhau · 2025-12-19 · in I've been writing ring buffers wrong all these years (2016) -
…with _ = a; And you would encounter it quite often because unused variable is a compilation error: https://github.com/ziglang/zig/issues/335
comment by ivanjermakov · 2025-12-07 · in The C++ standard for the F-35 Fighter Jet [video] -
…enforce compile-time constraints on the functions that can be assigned to a function pointer. [0]: https://github.com/ziglang/zig/issues/1006 [1]: https://github.com/ziglang/zig/issues/23367
comment by 10000truths · 2025-12-05 · in Thoughts on Go vs. Rust vs. Zig -
> First things first, Zig does compile async fns to a state machine: https://github.com/ziglang/zig/issues/23446 Maybe I'm missing something, but that's still a proposal, which also assumes an implementation for the other proposal you…
comment by SkiFire13 · 2025-12-04 · in Zig's new plan for asynchronous programs -
…for getting evented IO working on WASM -- namely, stackless coroutines as a language feature: https://github.com/ziglang/zig/issues/23446
comment by your_sweetpea · 2025-12-03 · in Zig's new plan for asynchronous programs -
…well it will work for more complex I/O like you need in servers. I filed an issue about it here: https://github.com/ziglang/zig/issues/26056
comment by mk12 · 2025-12-03 · in Zig's new plan for asynchronous programs -
…hood, in terms of compilation. First things first, Zig does compile async fns to a state machine: https://github.com/ziglang/zig/issues/23446 The compiler decides at compile time which color to compile the function as (potentially both).…
comment by zamalek · 2025-12-02 · in Zig's new plan for asynchronous programs -
…plan for async IO? There's currently a proposal for stackless coroutines as a language primitive: https://github.com/ziglang/zig/issues/23446
comment by messe · 2025-12-02 · in Zig's new plan for asynchronous programs -
…variable' is a more general edge case that is handled inconsistently on more than just Windows: https://github.com/ziglang/zig/issues/23331
comment by squeek502 · 2025-12-01 · in Windows drive letters are not limited to A-Z -
…discovered a bug in the Zig compiler and is in the process of fixing it! ...a few minutes later... https://github.com/ziglang/zig/pull/25974 I can see a future job interview scenario: - "What would you say is your biggest professional…
comment by rdtsc · 2025-11-27 · in Migrating the main Zig repository from GitHub to Codeberg -
I thought people knew andrewk was an ahole? I thought that was his supposed charm? Like Linus. I mean https://github.com/ziglang/zig/pull/24317 wasn't that long ago.
comment by Ygg2 · 2025-11-27 · in Migrating the main Zig repository from GitHub to Codeberg -
…A" [1] is the same one from the other post that made the frontpage a couple of days ago [2]. [1] https://github.com/ziglang/zig/issues/25974 [2] https://news.ycombinator.com/item?id=46039274
comment by quirino · 2025-11-27 · in Migrating the main Zig repository from GitHub to Codeberg -
…as you say. I scrolled through the error handling issue brought up in this comment section ( https://github.com/ziglang/zig/issues/2647#issuecomment-2670... ) and its clear that only thing that happened there was communication on the issue…
comment by SleepyMyroslav · 2025-11-08 · in Why is Zig so cool? -
There are plans in Zig to allow to include custom information into error stack trace https://github.com/ziglang/zig/issues/14446 . But that is not implemented. In any case, when debugging annotating error with extra context often is not…
comment by fpoling · 2025-11-08 · in Why is Zig so cool? -
…cause memory safety problem. Zig doesn't have a borrow cheker or ownership system to prevent that. https://github.com/ziglang/zig/issues/2647#issuecomment-2670...
comment by qouteall · 2025-11-08 · in Why is Zig so cool? -
…is wrong. But with error code you just know "something is wrong, don't know which exactly". See: https://github.com/ziglang/zig/issues/2647#issuecomment-1444... > I just spent way longer than I should have to debugging an issue of my…
comment by qouteall · 2025-11-08 · in Why is Zig so cool? -
…Io implementation being used (also in debug builds!). https://kristoff.it/blog/zig-new-async-io/ https://github.com/ziglang/zig/issues/23367
comment by rvrb · 2025-11-08 · in Why is Zig so cool? -
…function must poll the `cancelRequested` function, and return the error `Canceled`, right? https://github.com/ziglang/zig/blob/master/lib/std/Io.zig#L1... https://github.com/ziglang/zig/blob/master/lib/std/Io.zig#L7...
comment by geon · 2025-10-31 · in Zig's New Async I/O -
…return? Queue source: > /// When buffer is full, producers suspend and are resumed by consumers. https://github.com/ziglang/zig/blob/master/lib/std/Io.zig#L1...
comment by geon · 2025-10-31 · in Zig's New Async I/O -
…I/O, and it's nice to see a modern I/O library design that embraces that as a serious option. [1] https://github.com/ziglang/zig/issues/6025#issuecomment-3072... [2] https://github.com/ziglang/zig/issues/157 [3]…
comment by comex · 2025-10-30 · in Zig's New Async I/O -
https://github.com/ziglang/zig/issues/1629
comment by throwawaymaths · 2025-10-30 · in Zig's New Async I/O -
It has in a way! See: https://github.com/ziglang/zig/blob/master/lib/init/src/main...
comment by dgb23 · 2025-10-27 · in How I turned Zig into my favorite language to write network programs in -
…with fewer registers, bigger `c_long`s or different alignment constraints. If something like https://github.com/ziglang/zig/issues/157 actually gets implemented I will be happier about this approach.
comment by boomlinde · 2025-10-27 · in How I turned Zig into my favorite language to write network programs in -
…how its implemented in user-space in Zig's WIP std.Io branch green-threading implementation: https://github.com/ziglang/zig/blob/ce704963037fed60a30fd9d4... On ARM64, only fp, sp and pc are explicitly restored; and on x86_64 only rbp, rsp,…
comment by messe · 2025-10-27 · in How I turned Zig into my favorite language to write network programs in