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. …can't guess Zig naming. It's supposed to be "indexOfScalar" which of course makes 100% sense. [1]: https://github.com/ziglang/zig/blob/master/lib/std/mem.zig#L...
    comment by unwind · 2023-05-02 · in SIMD with Zig
  2. This is called [function multi-versioning]( https://github.com/ziglang/zig/issues/1018 ).
    comment by AndyKelley · 2023-05-02 · in SIMD with Zig
  3. It's planned: https://github.com/ziglang/zig/issues/1018
    comment by kristoff_it · 2023-05-02 · in SIMD with Zig
  4. This has been mentioned before: https://github.com/ziglang/zig/issues/7702 I don't think anyone disagrees about the need for intrinsics. In fact, I have actually taken a crack at implementing the AVX512 intrinsics into the Zig compiler as…
    comment by 10000truths · 2023-05-02 · in SIMD with Zig
  5. …be hard to benchmark. [1]: https://learn.microsoft.com/en-us/windows/win32/api/synchapi... [2]: https://github.com/ziglang/zig/blob/295b8ca467da36cd1066395e...
    comment by overthrow · 2023-04-26 · in You could have invented futexes
  6. …less than the latest 3 versions. https://ziglang.org/download/0.10.0/release-notes.html#macOS https://github.com/ziglang/zig/issues/14651#issuecomment-143...
    comment by diimdeep · 2023-04-14 · in Zig build system
  7. …OS released just 3 years ago. So it is not possible to compile Zig for it. It is ridiculous. https://github.com/ziglang/zig/issues/13313#issuecomment-129...
    comment by diimdeep · 2023-04-14 · in Zig build system
  8. …dot, while C++'s compound literals (for example) don't. The pros and cons of this are discussed in https://github.com/ziglang/zig/issues/5039 .
    comment by mauricioc · 2023-04-14 · in Zig build system
  9. ▲ 6
    HTTP server merged into Zig standard library
    story by motiejus · 2023-04-09 · 3 comments
  10. …struct item. This isn't a special compiler feature, but a regular usage of Zig's comptime stuff: https://github.com/ziglang/zig/blob/master/lib/std/multi_arr...
    comment by flohofwoe · 2023-04-01 · in Decreasing the number of memory accesses
  11. …pull in dynamic libs. It finds static libs but alas the .tsk doesn't give expected behavior anyway: https://github.com/ziglang/zig/issues/14939 A. Kelly (head Zig dev), to his credit, seems to already be on top of in this through a related…
    comment by scrubs · 2023-03-27 · in Zig Quirks
  12. …downsides. Andrew gave a while ago a good overview on the more "ziggy" perspective on the issue: https://github.com/ziglang/zig/issues/9909#issuecomment-9426...
    comment by kristoff_it · 2023-03-27 · in Zig Quirks
  13. …a similar thing? I see that rationale for not having private struct members was given here: https://github.com/ziglang/zig/issues/9909#issuecomment-9426... > The idea of private fields and getter/setter methods was popularized by Java, but…
    comment by haberman · 2023-03-27 · in Zig Quirks
  14. …your Zoloft because it looks like there's going to be one last big disruption before it's over. https://github.com/ziglang/zig/issues/1097#issuecomment-1404...
    comment by overthrow · 2023-03-27 · in Zig Quirks
  15. …a minimalist language. Edit: Looks like they are already aware of the problem. That is good news. https://github.com/ziglang/zig/issues/1097#issuecomment-6142...
    comment by nromiun · 2023-03-27 · in Zig Quirks
  16. https://github.com/ziglang/zig/issues/544 Maybe? They say their stage2 parser accepts them now.
    comment by nromiun · 2023-03-27 · in Zig Quirks
  17. …I use relatively large fonts for medical reasons and tabs are much more accessible to me. (1) https://github.com/ziglang/zig/issues/544
    comment by latch · 2023-03-27 · in Zig Quirks
  18. …rationale being there is no difference between snake_case and camelCase for one word identifiers: https://github.com/ziglang/zig/issues/1097
    comment by ngrilly · 2023-03-27 · in Zig Quirks
  19. No, it won't work. It'll say "actual" is undeclared. https://github.com/ziglang/zig/issues/4437 is tracking the issue. I think std.testing is going to see some major changes, so it's possible this gets fixed. But going from the responses…
    comment by latch · 2023-03-27 · in Zig Quirks
  20. …recognize this because they still have an old issue open for it which is still planned [0]. [0] https://github.com/ziglang/zig/issues/2647
    comment by skywal_l · 2023-03-22 · in Errors and Zig
  21. …little documentation there is a are really helpful, and that looks to be a long-standing issue ( https://github.com/ziglang/zig/issues/3049 ). Seems to me like this allocator should be renamed something like "FixedBufferBumpAllocator",…
  22. …to use a GeneralPurposeAllocator and setting "enable_memory_limit" and "requested_memory_limit": https://github.com/ziglang/zig/blob/8f481dfc3c4f12327499485e... . If the purpose is to "only use the stack", then "allocating a huge chunk and…
  23. …https://github.com/espressif/llvm-project/issues/4#issuecomm... https://github.com/ziglang/zig/issues/5467#issuecomment-1465...
    comment by weitzj · 2023-03-18 · in LLVM 16.0.0 Release
  24. …there does seem to be community interest in metadata annotations for external static analysis https://github.com/ziglang/zig/issues/14656 ] Although I only have a beginner knowledge of the language, it seems to me that Zig is just on the…
    comment by kps · 2023-03-10 · in Zig: The Modern Alternative to C
  25. …or tooling to find unused variables. It's quite an ironic outcome if you think about it. [1]: https://github.com/ziglang/zig/pull/12803
    comment by rom-antics · 2023-03-10 · in Zig: The Modern Alternative to C
  26. …in the stdlib, but it has some limitations and there is some discussion to change it or remove it https://github.com/ziglang/zig/issues/8224 Some Zig libraries implementing an event loop: - libxev by Mitchell Hashimoto…
    comment by fbouvier · 2023-03-10 · in Zig: The Modern Alternative to C
  27. …example is considering triggering an error for incorrectly indented code/misleading indentation: https://github.com/ziglang/zig/issues/35
    comment by ngrilly · 2023-03-03 · in Why Python keeps growing, explained
  28. …to provide a at least an AST to ensure annotations have known + unique semantics as I explain in https://github.com/ziglang/zig/issues/14656#issuecomment-143... . I would say that this is a primitive quasi-type check decoupled from main…
    comment by matu3ba · 2023-02-27 · in Zig's multi-sequence for loops
  29. …Zig meta-programming to actually be fairly readable, here's the function that does the formatting: https://github.com/ziglang/zig/blob/master/lib/std/fmt.zig
    comment by Laremere · 2023-02-27 · in Zig's multi-sequence for loops
  30. …function is implemented in the std library[1] not the compiler and Zig does not have varargs [1] https://github.com/ziglang/zig/blob/f6c934677315665c140151b8...
    comment by quic5 · 2023-02-27 · in Zig's multi-sequence for loops
  31. I don't speak for Jarred or Andrew, but here is a recent exchange between them about this matter: https://github.com/ziglang/zig/issues/14542#issuecomment-141... The tension is understandable: Zig is explicitly not production-ready, yet it…
    comment by hryx · 2023-02-25 · in Bun v0.5.7
  32. ▲ 3
    Implement Multi-Object for Loops
    story by nyberg · 2023-02-18 · 0 comments
  33. …it'll 'just work' as claimed for the Go use case, so best not to claim otherwise until then. [0] https://github.com/ziglang/zig/issues/1349
  34. …eliminate the goroutine -> OS thread switching overhead. [0] https://github.com/hexops/mach [1] https://github.com/ziglang/zig/issues/157
  35. …else. I don't see how this is much worse? What you seem to be looking for is an "unused function" ( https://github.com/ziglang/zig/issues/335 ) error instead as it catches that case unless you use the function in a branch that's not part…
    comment by nyberg · 2023-02-11 · in How a Zig IDE Could Work
  36. …as anytype, so zls auto-completion doesn't work. Also see: comptime interfaces proposal https://github.com/ziglang/zig/issues/1268
    comment by nusaru · 2023-02-10 · in How a Zig IDE Could Work
  37. …have done great contribution for async I/O in the Zig community: - io_uring support on the std lib https://github.com/ziglang/zig/pull/6356 - a cross-platform io_uring based event loop https://github.com/tigerbeetledb/tigerbeetle/tree/main/…
  38. …I’d expected at this point. Though, I am still curious what the end game IDE support would look. https://github.com/ziglang/zig/issues/3028 is a big component of that.
  39. …- Zig's language docs: https://ziglang.org/documentation/master/ - Zig's standard library code https://github.com/ziglang/zig/
    comment by Jarred · 2023-01-18 · in Bun v0.5
  40. …code, executed at compile-time. No magic, no macros, fully compile-time error-checked formatting. https://github.com/ziglang/zig/blob/master/lib/std/fmt.zig#L...
    comment by dilap · 2023-01-16 · in Rust vs. C++ Formatting
  41. …See also why even "intentionally C-like" languages like Zig are growing increasing complexity https://github.com/ziglang/zig/issues/7769 Or why things like D's betterC adds all the same "objectionable" stuff C++ does - RAII, operator…
  42. …of releases each. For a good read of how weird these can be here is a bug report from last month https://github.com/ziglang/zig/issues/13480
    comment by zamadatix · 2023-01-11 · in A Zig Diary
  43. https://github.com/ziglang/zig/pull/14265
    comment by usdogu · 2023-01-11 · in A Zig Diary
  44. Is a package manager still in the works? A rudimentary search led me to this GitHub issue: https://github.com/ziglang/zig/issues/943
    comment by stoicjumbotron · 2023-01-11 · in A Zig Diary
  45. ▲ 72
    Zig Package Manager MVP
    story by modernerd · 2023-01-11 · 16 comments
  46. ▲ 8
    Zig now has a built in HTTP 1.1 client
    story by kuon · 2023-01-06 · 0 comments
  47. ▲ 1
    Show HN: Zig Without Unused Variable Error
    story by markisus · 2023-01-02 · 0 comments
  48. …those are required for the borrow checker or safety, but it's a philosophical design decision. 1: https://github.com/ziglang/zig/issues/1251
  49. …> Zig is a programming language, but it also ships with a package manager Which is not true: https://github.com/ziglang/zig/issues/943 > Zig has no macros and no metaprogramming Literally from Zig's homepage ( https://ziglang.org/ ):…
    comment by henry_viii · 2022-12-26 · in I wrote a Ruby extension in Zig
  50. …a zig-help channel that's pretty responsive if you're ok with Discord. The archive is searchable. https://github.com/ziglang/zig/wiki/Community#discord-englis... . GitHub's code search beta is a good way to find out how other people are…
    comment by modernerd · 2022-12-26 · in I wrote a Ruby extension in Zig