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. …will be able to propagate through the interface into the usage code. The issue to track is: https://github.com/ziglang/zig/issues/23446 I'll add that I'm still keen on the previous suspend/resume keywords and semantics as a solution to…
    comment by AndyKelley · 2025-07-04 · in Zig breaking change – Initial Writergate
  2. You look at the version, the milestones https://github.com/ziglang/zig/milestones , and it makes sense. The YouTube video is just more proof. Picking up a 0.14 software without looking the most basic thing about it like “oh, what kind of…
    comment by eddythompson80 · 2025-07-04 · in Zig breaking change – Initial Writergate
  3. By the title I thought that they were going to implement this, https://github.com/ziglang/zig/issues/5973
  4. ▲ 238
    Zig breaking change – Initial Writergate
    story by Retro_Dev · 2025-07-04 · 227 comments
  5. …other issues that Zig also doesn't protect against: tagged-union type confusion and data races. [1] https://github.com/ziglang/zig/commit/cd99ab32294a3c22f09615... [2] https://github.com/ziglang/zig/issues/3180 . [3]…
    comment by comex · 2025-06-30 · in The provenance memory model for C
  6. Decent thread-safe allocator in 200 lines: https://github.com/ziglang/zig/blob/0.14.1/lib/std/heap/SmpA...
    comment by AndyKelley · 2025-06-23 · in I was surprised by how simple an allocator is
  7. …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
  8. …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
  9. …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
  10. …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
  11. …, 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...
  12. Relevant: https://github.com/ziglang/zig/issues/4055#issuecomment-1646...
  13. 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,…
  14. …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…
  15. 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...
  16. …repos shows a pretty big difference between the nature of the "segfault" issues reported. yikes... https://github.com/ziglang/zig/issues/23556
  17. …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…
  18. …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…
  19. …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
  20. …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
  21. …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
  22. 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…
  23. 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... .
  24. …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)
  25. …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)
  26. …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
  27. …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?
  28. 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
  29. …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
  30. …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?
  31. …implementation [2]. [1]: https://github.com/search?q=repo%3Atokio-rs%2Ftokio%20unsafe... [2]: https://github.com/ziglang/zig/issues/2414
  32. …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)
  33. ▲ 14
    Zig: A good memory allocator in 200 lines of code
    story by signa11 · 2025-03-06 · 1 comment
  34. ▲ 8
    A good memory allocator in 200 lines of code
    story by todsacerdoti · 2025-03-05 · 0 comments
  35. …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
  36. …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…
  37. …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…
  38. …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…
  39. …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
  40. …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
  41. …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
  42. https://github.com/ziglang/zig/blob/master/lib/std/unicode.z... wdym?
  43. …. 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
  44. …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
  45. …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?
  46. ▲ 2
    LLDB for Zig
    story by ingve · 2025-01-24 · 0 comments
  47. …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
  48. …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...
  49. 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
  50. Have you been following https://github.com/ziglang/zig/issues/16270 ?