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. …versions of the fs functions in parallel. Once something is deprecated, that means it's going away. https://github.com/ziglang/zig/blob/init-std.Io/lib/std/fs/D...
  2. …etc to be accessible only through the Io interface. It'll be a big migration once 0.16 drops. [1]: https://github.com/ziglang/zig/blob/init-std.Io/lib/std/fs.z... > Do I have to refactor? No, the old API works flawlessly The old API was…
  3. …function is always a definition. While code block is usually meant to be executed right away. [1]: https://github.com/ziglang/zig/issues/1048
    comment by ivanjermakov · 2025-10-18 · in When if is just a function
  4. https://github.com/ziglang/zig/issues?q=state%3Aopen%20label...
    comment by jibal · 2025-10-12 · in Is Odin just a more boring C?
  5. …0.15.1 Zig docs in several places, at least for now. Outstanding issue on Zig side for 1.0 release: https://github.com/ziglang/zig/issues/16270
    comment by turtleyacht · 2025-10-01 · in Systems Programming with Zig
  6. …your blog and only talk on GitHub to be engaged with the community. Zig has tons of communities https://github.com/ziglang/zig/wiki/Community and, of course, blogs also play a part in the overall community too. Picking a single engagement…
    comment by zamadatix · 2025-09-20 · in Is Zig's new writer unsafe?
  7. …reading the source [1] I'm still kind of impressed how unified they made comptime / runtime. [1]: https://github.com/ziglang/zig/blob/32a1aabff78234b428234189...
    comment by notmywalrus · 2025-09-14 · in Safe C++ proposal is not being continued
  8. …knows the two errors come from disjoint error set, but it promotes them both to anyerror Details at https://github.com/ziglang/zig/issues/25046
    comment by gwenzek · 2025-08-28 · in Unexpected productivity boost of Rust
  9. …module test suites on a broad range of targets that we don't necessarily have real hardware for: https://github.com/ziglang/zig/blob/50edad37ba745502174e49af...
    comment by alexrp · 2025-08-27 · in QEMU 10.1.0
  10. You say never, but even the Zig stdlib does this occasionally. Like here in `std/tar.zig`: https://github.com/ziglang/zig/blob/50edad37ba745502174e49af... Or here in `main.zig`: https://github.com/ziglang/zig/blob/50edad37ba745502174e49af..…
    comment by dminik · 2025-08-27 · in Unexpected productivity boost of Rust
  11. …to be keyed on two things: Source location + Captured constants The issue for that was raised here. https://github.com/ziglang/zig/issues/18816 I don't actually think that that's sufficient. It makes more sense, imo, to capture some…
    comment by kingstnap · 2025-08-26 · in Anonymous structavaganza in Zig
  12. https://github.com/ziglang/zig/milestone/2
    comment by throwawaymaths · 2025-08-23 · in I'm too dumb for Zig's new IO interface
  13. …things magically work. Currently trying to get compression re-enabled in my websocket library. (1) https://github.com/ziglang/zig/blob/47a2f2ddae9cc47ff6df7a71...
  14. Unless something has changed from this ( https://github.com/ziglang/zig/issues/1717#issuecomment-1627... ), that is unlikely. The irony is that Zig's new async/await strategy is to use event loops with passed-in functions (…
  15. Related RFC for context: https://github.com/ziglang/zig/issues/20242
  16. std.mem.eql is here, super easy to read: https://github.com/ziglang/zig/blob/master/lib/std/mem.zig#L... My read is it would use SIMD if T is @Vector, and not otherwise? But I'm neither a zig nor SIMD expert
    comment by llimllib · 2025-08-11 · in Faster substring search with SIMD in Zig
  17. Ahh, a perfect example of why Zig is uninteresting to me: https://github.com/ziglang/zig/issues/5038#issuecomment-2441... A language hostile to LSP/intellisense.
    comment by dminik · 2025-08-10 · in Zig's Lovely Syntax
  18. Zig is planning to get rid of explicit `T{}` syntax, in favor of only supporting inferred types. https://github.com/ziglang/zig/issues/5038 So the explanation of a dot standing in for a type doesn't make sense in the long run.
    comment by do_not_redeem · 2025-08-10 · in Zig's Lovely Syntax
  19. …for essentially restating what Zig's BFDN said when closing an issue related to error payloads: https://github.com/ziglang/zig/issues/2647#issuecomment-2525...
    comment by meepmorp · 2025-08-07 · in Zig Error Patterns
  20. https://github.com/ziglang/zig/pull/24317 --> https://github.com/ivanstepanovftw (profile from 8/6/25, not sure if it was different earlier)
  21. In my opinion Zig is elegant except for one thing: cannot attach data to error. https://github.com/ziglang/zig/issues/2647 You have to workaround by things like passing into a pointer to error object.
    comment by delifue · 2025-08-07 · in Zig Error Patterns
  22. Indeed: https://github.com/ziglang/zig/issues/1629
    comment by AndyKelley · 2025-08-06 · in Zig Error Patterns
  23. …contributions and made most of my projects private. I think I will never go open ever again. [1]: https://github.com/ziglang/zig/pull/21426#issuecomment-30823... [2]: https://github.com/ziglang/zig/pull/24317
  24. …a "clean code" smell and lacks critique and shortcomings of lack and excess of encapsulation. [1]: https://github.com/ziglang/zig/issues/9909
  25. …safe. Even some basic semantics (passing arguments as values or references) are horribly broken. https://github.com/ziglang/zig/issues/5973
  26. …is incorrect. Zig’s source files (luckily) aren’t fine-grained enough to support that. For example, https://github.com/ziglang/zig/blob/master/lib/std/http/Clie... contains stuff that not every user of that module will need, for example…
    comment by Someone · 2025-07-31 · in Zig Profiling on Apple Silicon
  27. 2017: https://github.com/ziglang/zig/issues/225 when I had been only thinking about zig for 2 years, I thought the same.
    comment by AndyKelley · 2025-07-27 · in Resizable structs in Zig
  28. Bingo. That completes the picture: https://github.com/ziglang/zig/issues/23367
    comment by AndyKelley · 2025-07-27 · in Resizable structs in Zig
  29. https://github.com/ziglang/zig/issues/1006
    comment by omnicognate · 2025-07-26 · in Resizable structs in Zig
  30. …though. Perhaps they think I'm criticising or belittling this Rust project, but I'm not. [1] https://github.com/ziglang/zig/issues/2683#issuecomment-1501...
    comment by omnicognate · 2025-07-26 · in Rust running on every GPU
  31. …the utility of ignoring that crap and just doing what you know the machine allows you to do. [1]: https://github.com/ziglang/zig/blob/0.14.1/lib/std/mem.zig#L...
    comment by AndyKelley · 2025-07-25 · in New Aarch64 Back End
  32. AFAIK the current plan for zig cc is outlined here: https://github.com/ziglang/zig/issues/20875 E.g. LLVM will still be around one way or another, just not as deeply integrated as it is now.
    comment by flohofwoe · 2025-07-25 · in New Aarch64 Back End
  33. I wish you were correct. https://github.com/ziglang/zig/tree/master/lib/libc/include There is one set of headers for Windows. One set for macOS. And a fucking kajillion different headers for Linux. And of course glibc is a fucking dumpster…
    comment by forrestthewoods · 2025-07-25 · in New Aarch64 Back End
  34. …goes from about 150 MiB to 5 MiB. > Compilation speed is increased by orders of magnitude. > [...] https://github.com/ziglang/zig/issues/16270
    comment by mananaysiempre · 2025-07-25 · in New Aarch64 Back End
  35. …construct data types with compile-time programming, but such types aren't allowed to have methods: https://github.com/ziglang/zig/issues/6709 This is an intentional limitation, because the language creator worries the feature would be…
    comment by wavemode · 2025-07-19 · in Zig Interface Revisited
  36. …are for the past week. 1. Zig plans to annotate the maximum possible stack size of a function call https://github.com/ziglang/zig/issues/23367 . As people say, this would give the compiler enough information to implemented stackless…
    comment by laserbeam · 2025-07-19 · in Asynchrony is not concurrency
  37. …the submission queue is mmapd into user space. Easiest implementation to read is the Zig stdlib: https://github.com/ziglang/zig/blob/69cf40da600224734d39c6f6...
    comment by LAC-Tech · 2025-07-19 · in lsr: ls with io_uring
  38. …[1] https://github.com/tigerbeetle/tigerbeetle/blob/86b85ab60395... [2] https://github.com/ziglang/zig/pull/24329
    comment by mtlynch · 2025-07-18 · in NIH is cheaper than the wrong dependency
  39. …worth seriously worrying about unless it proves itself to actually be an issue in practice. [0]: https://github.com/ziglang/zig/issues/23367
    comment by mlugg · 2025-07-13 · in Zig's New Async I/O
  40. Large breaking change: https://github.com/ziglang/zig/pull/24329
    comment by open592 · 2025-07-13 · in Zig's New Async I/O
  41. …proposal? Without that we're left with scraps like this commit message where he seems ambivalent. https://github.com/ziglang/zig/commit/d6c90ceb04f8eda7c6b711... Andrew, I know you read these threads sometimes, give us a sign so I can go…
    comment by do_not_redeem · 2025-07-13 · in Zig's New Async I/O
  42. …sorry) In Zig it's going to be a language feature, thanks to its single unit compilation model. https://github.com/ziglang/zig/issues/23367
    comment by kristoff_it · 2025-07-13 · in Zig's New Async I/O
  43. …to have an implementation based on stackless coroutines, based on this Zig language proposal: https://github.com/ziglang/zig/issues/23446 Performance matters; we're not planning to forget that. If fibers turn out to have unacceptable…
    comment by mlugg · 2025-07-13 · in Zig's New Async I/O
  44. …that async is broken and there's a huge pile of gatekeeping requirements against bringing it back. https://github.com/ziglang/zig/wiki/FAQ#what-is-the-status-o...
    comment by burnt-resistor · 2025-07-10 · in Ziglings: Learn Zig by fixing broken programs
  45. Actually, nobody. Here is the commit where Reader/Writer was introduced: https://github.com/ziglang/zig/commit/5e212db29cf9e2c06aba36... This is a few months after `git init`. You can see I was really just working on the parser, with a toy…
    comment by AndyKelley · 2025-07-04 · in Zig breaking change – Initial Writergate
  46. …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
  47. 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
  48. By the title I thought that they were going to implement this, https://github.com/ziglang/zig/issues/5973
  49. …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
  50. 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