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. …very clear plans[0] for a 1.0 release. That's not 0ver, it's just the beta stage of semver. [0] https://github.com/ziglang/zig/milestone/2
    comment by sramsay64 · 2025-06-18 · in Bzip2 crate switches from C to 100% Rust
  2. …and then just has a nice convenient tagged union (`enum` in Rust terms) value to work with. [0]: https://github.com/ziglang/zig/blob/dd75e7bcb1fe142f4d60dc2d... [1]: https://github.com/ziglang/zig/blob/dd75e7bcb1fe142f4d60dc2d...
    comment by mlugg · 2025-06-13 · in Rust compiler performance
  3. …ttps://github.com/rust-lang/rust/tree/1.87.0/compiler/rustc... (main logic seems to be in expr.rs) vs https://github.com/ziglang/zig/blob/0.14.1/lib/std/zig/Parse... Again, for those who wish to form their own opinions.
    comment by AndyKelley · 2025-06-12 · in Rust compiler performance
  4. …about whether this style of programming is easier or harder than it would be in other languages: https://github.com/ziglang/zig/blob/0.14.1/lib/std/zig/token...
    comment by AndyKelley · 2025-06-12 · in Rust compiler performance
  5. …, but that doesn't mean async is "never coming back", nor that you'll be waiting "till 2028". [0]: https://github.com/ziglang/zig/issues/23446 [1]: https://github.com/ziglang/zig/blob/async-await-demo/lib/std...
  6. Relevant: https://github.com/ziglang/zig/issues/4055#issuecomment-1646...
  7. 18s eh? we're looking at 15s in https://github.com/ziglang/zig/pull/24124 oh, and by the way that includes the package manager, so the compile time accounts for: * HTTP * TLS (including aegis-128l, aegis-256, aes128-gcm, aes256-gcm,…
  8. …other than Debug mode is a goal, but a far-future goal. I believe the most relevant links are https://github.com/ziglang/zig/issues/16270 and https://github.com/orgs/ziglang/projects/2/views/1?pane=issu... (as you can see, nothing is…
  9. Isn't this one of the preconditions for bringing async/await back to Zig? https://github.com/ziglang/zig/wiki/FAQ#what-is-the-status-o...
  10. …repos shows a pretty big difference between the nature of the "segfault" issues reported. yikes... https://github.com/ziglang/zig/issues/23556
  11. …for a better development experience. Almost every day there's something being worked on - like https://github.com/ziglang/zig/pull/24124 just now. I know that Zig had some plans in the past to also work on hot code swapping. At this rate…
  12. …x86 backend makes for a significantly better debugging experience with this zig-aware lldb fork: https://github.com/ziglang/zig/wiki/LLDB-for-Zig I don't recall whether it supports stepping through comptime logic at the moment; that was…
  13. …its weakest points IMHO. Zig is hostile to encapsulation. You cannot make struct members private: https://github.com/ziglang/zig/issues/9909#issuecomment-9426... Key quote: > The idea of private fields and getter/setter methods was…
    comment by haberman · 2025-06-07 · in Low-Level Optimization with Zig
  14. …x86_64 backend (which is coincidentally becoming default for debugging on linux right now - https://github.com/ziglang/zig/pull/24072 ) has full support for most (all?) builtins. I don't think that we need to worry about that. It's an…
    comment by Retro_Dev · 2025-06-07 · in Low-Level Optimization with Zig
  15. …As for arithmetic, I agree that it is a bit too verbose at the moment. Hopefully some variant of https://github.com/ziglang/zig/issues/3806 will fix this. I fully agree with your TL;DR there, but would emphasize that gaining the same…
    comment by Retro_Dev · 2025-06-07 · in Low-Level Optimization with Zig
  16. https://github.com/ziglang/zig/issues/544#issuecomment-61807... > In order to simplify everything, tabs are not allowed. Spaces are necessary; we can't ban spaces. They seem to be open to the alternative but not to a solution that isn't…
  17. Zig solved this by not having a string type at all and not shipping full Unicode support in std: https://github.com/ziglang/zig/issues/234#issuecomment-27630... .
  18. …we'll start by changing all => unreachable to => return error.Unexpected in std.posix and std.os. https://github.com/ziglang/zig/issues/6389#issuecomment-2895...
    comment by Zambyte · 2025-05-22 · in Using unwrap() in Rust is Okay (2022)
  19. …however, so I am opposed to a blanket modification of all EINVAL code sites without cause. Source: https://github.com/ziglang/zig/issues/6925#issuecomment-7214...
    comment by Zambyte · 2025-05-22 · in Using unwrap() in Rust is Okay (2022)
  20. …there is also Slack, there is also mailing list, libera IRC, Telegram, QQ, Zulip... https://github.com/ziglang/zig/wiki/Community
    comment by karel-3d · 2025-05-02 · in Reflecting on a Year of Gamedev in Zig
  21. …all of the time. Any language can be claimed to be buggy or minor issues taken out of context. [0] https://github.com/ziglang/zig/issues
    comment by baranul · 2025-04-28 · in Ask HN: Memory-safe low level languages?
  22. Yep, there's the range https://github.com/rcalixte/libqt6zig to https://microzig.tech and soon https://github.com/ziglang/zig/issues/2683 then follow-up issues are resolved.
    comment by tauoverpi · 2025-04-24 · in C++26: more constexpr in the core language
  23. …https://zig.news/kristoff/struct-of-arrays-soa-in-zig-easy-i... . If you read the implementation ( https://github.com/ziglang/zig/blob/master/lib/std/multi_arr... ) the SoA is an elaborately specialized type, parameterized on a struct type…
    comment by msteffen · 2025-04-21 · in Things Zig comptime won't do
  24. …not a thing and if I catch you saying that I’m gonna bonk you with an Intel optimization manual. " https://github.com/ziglang/zig/issues/20690
    comment by cwood-sdf · 2025-04-15 · in What the hell is a target triple?
  25. …implementation [2]. [1]: https://github.com/search?q=repo%3Atokio-rs%2Ftokio%20unsafe... [2]: https://github.com/ziglang/zig/issues/2414
  26. …learned about it and prompted me to investigate whether Zig also suffers from the same issue. [1]: https://github.com/ziglang/zig/issues/694#issuecomment-15674... [2]: https://github.com/llvm/llvm-project/issues/54964 [3]:…
    comment by SkiFire13 · 2025-03-30 · in Tail Call Recursion in Java with ASM (2023)
  27. …cross-compile CGO to macOS [0], granted you link the appropriate macOS frameworks and SDK [1]. [0]: https://github.com/ziglang/zig/issues/20689 , https://github.com/ziglang/zig/issues/21721 [1]: https://github.com/tpoechtrager/osxcross
    comment by ezekg · 2025-03-05 · in Zig-0.14.0 Landed
  28. …to do that. As someone who has spent [an incredible amount of time reviewing other people's code]( https://github.com/ziglang/zig/pulls?q=is%3Apr+is%3Aclosed ), my perspective is that reviewing code is fundamentally slower than writing it…
  29. …on practicality. Example 3 reads very odd, an over-approximated upper stack bound is very possible https://github.com/ziglang/zig/issues/157#issuecomment-76395... and tighter computation with advanced analysis as well. Example…
  30. …instance, Zig is written in zig and bootstraps from a binary wasm file which is translated to C: https://github.com/ziglang/zig/tree/master/stage1 Golang has an even more complicated bootstrapping procedure requiring to build each…
  31. …of memory-related issues in one of Zig’s most popular project, Bun.js [#2], gives me pause. [#1]: https://github.com/ziglang/zig/issues/2646 [#2]: https://github.com/oven-sh/bun/issues?q=is%3Aissue+segfault
    comment by bikeshaving · 2025-02-05 · in Zig Guide
  32. …There wouldn't be countless issues about it in the Zig repository if it were that simple. See https://github.com/ziglang/zig/issues/17198 I'm simply going to quote one of the comments from the linked GitHub issue: > generic code is hard.…
    comment by YuukiRey · 2025-02-05 · in Zig; what I think after months of using it
  33. …being equipped to handle Unicode is the entire problem. what? unicode is in the standard library. https://github.com/ziglang/zig/blob/master/lib/std/unicode.z...
    comment by throwawaymaths · 2025-02-05 · in Zig; what I think after months of using it
  34. https://github.com/ziglang/zig/blob/master/lib/std/unicode.z... wdym?
  35. …. On the other hand zig errors can't have any associated value ( https://github.com/ziglang/zig/issues/2647 ). I often find this requires me to store those values in some other big sum type somewhere which leads to all the
  36. …both speed and incremental compilation. That still looks to be the case due to no linker support. https://github.com/ziglang/zig/issues/21165
    comment by modernerd · 2025-02-04 · in Roc rewrites the compiler in Zig
  37. …than in other languages (2) (1) https://gist.github.com/karlseguin/1d189f683797b0ee00cdb8186... (2) https://github.com/ziglang/zig/issues/17985
    comment by latch · 2025-02-02 · in In Zig, what's a writer?
  38. …the internet, especially not a webserver. [0] : https://news.ycombinator.com/item?id=41720995 [1] : https://github.com/ziglang/zig/issues/16467#issuecomment-164...
    comment by bmacho · 2025-01-23 · in Bun 1.2 Is Released
  39. …it is struct-of-arrays, so walking the tree is even more cache friendly. For AST see: https://github.com/ziglang/zig/blob/master/lib/std/zig/Ast.z...
  40. Yes, please read the comment linked at the issue description: https://github.com/ziglang/zig/issues/16270#issuecomment-161...
    comment by brabel · 2025-01-01 · in I wrote a Game Boy Advance game in Zig
  41. Have you been following https://github.com/ziglang/zig/issues/16270 ?
  42. …builtin calls like memcpy. But I’d argue volatile would still be more appropriate in this case. https://github.com/ziglang/zig/issues/22110 Edit: this comment from later in the thread is also relevant:…
    comment by MatthiasPortzel · 2024-12-31 · in I wrote a Game Boy Advance game in Zig
  43. …enforcement in Rust is there for a reason. Two examples I quickly found on Zig's issue tracker: * https://github.com/ziglang/zig/issues/3696 * https://github.com/ziglang/zig/issues/5973
    comment by ameixaseca · 2024-12-30 · in When Zig Is Safer and Faster Than Rust
  44. …This is the "strategic use of friction" described here, ironically enough, by the creator of Zig: https://github.com/ziglang/zig/issues/3320#issuecomment-8844...
    comment by do_not_redeem · 2024-12-30 · in When Zig Is Safer and Faster Than Rust
  45. …and you get serialization benefits. The zig compiler uses this pattern in quite a few places: * https://github.com/ziglang/zig/blob/77c63ac36034db577a9287c5... * https://github.com/ziglang/zig/blob/77c63ac36034db577a9287c5... *…
    comment by AndyKelley · 2024-12-21 · in Enum of Arrays
  46. IIRC there's `zig reduce` builtin in Zig :) https://github.com/ziglang/zig/blob/master/lib/compiler/redu...
    comment by cztomsik · 2024-11-28 · in You can use C-Reduce for any language
  47. …std.Thread.Pool API respect the Linux jobserver and macOS dispatcher automatically out of the box: https://github.com/ziglang/zig/issues/20274
  48. There's an issue tracking that: https://github.com/ziglang/zig/issues/3806
    comment by samatman · 2024-11-09 · in Zig's (.{}){} Syntax
  49. …they ought to consider named/labelled parameters, too, if they're so concerned about clarity. 0: https://github.com/ziglang/zig/issues/484
    comment by dleslie · 2024-11-09 · in Zig's (.{}){} Syntax
  50. Welcome to 2016. https://github.com/ziglang/zig/blob/5f0bfcac24036e1fff0b2bed...
    comment by AndyKelley · 2024-11-07 · in Linux Syscall Support