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. …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.
  2. …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,…
  3. …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...
  4. …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…
  5. …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
  6. ▲ 8
    Std: Introduce `Io` Interface by Andrewrk
    story by database64128 · 2025-10-16 · 0 comments
  7. https://github.com/ziglang/zig/issues?q=state%3Aopen%20label...
    comment by jibal · 2025-10-12 · in Is Odin just a more boring C?
  8. …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
  9. ▲ 123
    Zig got a new ELF linker and it's fast
    story by Retro_Dev · 2025-09-21 · 50 comments
  10. …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?
  11. …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
  12. …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
  13. …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
  14. 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
  15. …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
  16. https://github.com/ziglang/zig/milestone/2
    comment by throwawaymaths · 2025-08-23 · in I'm too dumb for Zig's new IO interface
  17. …things magically work. Currently trying to get compression re-enabled in my websocket library. (1) https://github.com/ziglang/zig/blob/47a2f2ddae9cc47ff6df7a71...
  18. 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 (…
  19. Related RFC for context: https://github.com/ziglang/zig/issues/20242
  20. 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
  21. 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
  22. 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
  23. …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
  24. https://github.com/ziglang/zig/pull/24317 --> https://github.com/ivanstepanovftw (profile from 8/6/25, not sure if it was different earlier)
  25. 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
  26. Indeed: https://github.com/ziglang/zig/issues/1629
    comment by AndyKelley · 2025-08-06 · in Zig Error Patterns
  27. …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
  28. …a "clean code" smell and lacks critique and shortcomings of lack and excess of encapsulation. [1]: https://github.com/ziglang/zig/issues/9909
  29. …safe. Even some basic semantics (passing arguments as values or references) are horribly broken. https://github.com/ziglang/zig/issues/5973
  30. …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
  31. 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
  32. Bingo. That completes the picture: https://github.com/ziglang/zig/issues/23367
    comment by AndyKelley · 2025-07-27 · in Resizable structs in Zig
  33. https://github.com/ziglang/zig/issues/1006
    comment by omnicognate · 2025-07-26 · in Resizable structs in Zig
  34. …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
  35. …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
  36. 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
  37. 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
  38. …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
  39. ▲ 7
    Birth of new Zig backend - aarch64
    story by Retro_Dev · 2025-07-22 · 0 comments
  40. …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
  41. …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
  42. …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
  43. …[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
  44. …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
  45. Large breaking change: https://github.com/ziglang/zig/pull/24329
    comment by open592 · 2025-07-13 · in Zig's New Async I/O
  46. …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
  47. …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
  48. …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
  49. …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
  50. 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