Hacker GitHub

← All repos

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

Mentions per year 680 mentions · busiest year 2025 (123)
20082026
  1. …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
  2. …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…
  3. …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
  4. > 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
  5. …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
  6. …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.
  7. …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
  8. …(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
  9. ▲ 3
    multi_array_list.zig
    story by tosh · 2026-06-04 · 2 comments
  10. …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
  11. 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
  12. Doubt it: https://github.com/ziglang/zig/pull/24536
  13. …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
  14. …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)
  15. …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
  16. …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)
  17. It is indeed (somewhat) related, and in fact that was fixed by this PR: https://github.com/ziglang/zig/issues/25771
  18. …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…
  19. …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…
  20. …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
  21. …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...
  22. …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
  23. …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
  24. …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
  25. 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
  26. 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
  27. 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
  28. …“There are too many ring buffer implementations in the standard library“ might also be interesting: https://github.com/ziglang/zig/issues/19231
  29. …with _ = a; And you would encounter it quite often because unused variable is a compilation error: https://github.com/ziglang/zig/issues/335
  30. ▲ 3
    Make the main Zig executable no longer depend on LLVM, LLD, and Clang libraries
    story by tosh · 2025-12-05 · 0 comments
  31. …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
  32. > 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
  33. …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
  34. …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
  35. …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
  36. …plan for async IO? There's currently a proposal for stackless coroutines as a language primitive: https://github.com/ziglang/zig/issues/23446
  37. …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
  38. …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…
  39. 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.
  40. …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
  41. …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?
  42. 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?
  43. …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?
  44. …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?
  45. …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?
  46. …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
  47. …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
  48. …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
  49. https://github.com/ziglang/zig/issues/1629
    comment by throwawaymaths · 2025-10-30 · in Zig's New Async I/O
  50. It has in a way! See: https://github.com/ziglang/zig/blob/master/lib/init/src/main...