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. …was already patched two months ago[1], by jedisct1 (author of the inimitable libsodium). [1] https://github.com/ziglang/zig/commit/21ae64852a531c36ae3166...
    comment by thadt · 2024-02-23 · in Kyber
  2. …among other things, it makes it more difficult to discover what the required type actually is. [0] https://github.com/ziglang/zig/blob/b3aed4e2c8b4d48b8b12f606... [1] https://github.com/ziglang/zig/issues/17198
  3. …is also very poorly tuned for a large number of small batch jobs, but that's a place to start. [1] https://github.com/ziglang/zig/blob/b3aed4e2c8b4d48b8b12f606...
  4. …unusual to write the C stdlib in a different language. E.g. Zig is getting a libc written in Zig: https://github.com/ziglang/zig/issues/514 Rust would work too of course. MUSL is probably the only popular C stdlib actually written in C.
  5. Thanks for the detailed reply. > You can find more details on this at https://github.com/ziglang/zig/issues/13265 . Thanks for the link, my thoughts mirror those of certik in the thread, which Andrew answered well. > at the very least, we…
    comment by MaxBarraclough · 2024-01-28 · in Zig Roadmap 2024 [video]
  6. …the build process and drops the Zig compiler binary size by a full order of magnitude - see https://github.com/ziglang/zig/issues/16270 for more deatils on that. It also allows us to implement incremental compilation on the bitcode file…
    comment by mlugg · 2024-01-27 · in Zig Roadmap 2024 [video]
  7. …important to note that we have quite a few compiler bugs which are [caused by upstream LLVM bugs]( https://github.com/ziglang/zig/issues?q=is%3Aissue+is%3Aopen... ). LLVM often ships with regressions which we report before releases come…
    comment by mlugg · 2024-01-27 · in Zig Roadmap 2024 [video]
  8. …here [0] it seems to be the latter - full removal of LLVM for all builds - which surprises me. [0] https://github.com/ziglang/zig/issues/16270
    comment by MaxBarraclough · 2024-01-27 · in Zig Roadmap 2024 [video]
  9. …helps to catch typical memory-related issues at runtime (like leaks and dangling access), e.g. see: https://github.com/ziglang/zig/blob/master/lib/std/heap/gene... Tagged-index-handles are also always an option to achieve spatial and…
    comment by flohofwoe · 2024-01-27 · in Zig Roadmap 2024 [video]
  10. …time I checked Zig still had a subtle form function coloring for function pointers. See for example https://github.com/ziglang/zig/issues/8907
  11. I am not entirely sure, but it seems they chose to return a null pointer: https://github.com/ziglang/zig/commit/32e0dfd4f0dab351a024e7...
  12. …return a * (ones - tv) + b * tv; } which still leaves some room for improvement. See for example https://github.com/ziglang/zig/issues/17274
  13. > I think this is the same in the still experimental Carbon Apparently, it's not (anymore?): https://github.com/ziglang/zig/issues/5973#issuecomment-1801...
  14. …[1] https://tutorial.ponylang.io/expressions/ops#precedence [2] https://github.com/ziglang/zig/issues/114
  15. I still think noalias-by-default is the way to fix this. https://github.com/ziglang/zig/issues/1108 You get all the benefits of Zig being able to choose the function ABI, but if the optimization would have caused a bug, you'll get an…
    comment by ForkMeOnTinder · 2024-01-05 · in Don't pass structs bigger than 16 bytes on AMD64
  16. …compiler can actually decide to pass it by reference. It does expose this kind of footgun though https://github.com/ziglang/zig/issues/5973#issuecomment-1330...
  17. …can't be created as const. There's a ticket about this here, but it's currently not high-priority: https://github.com/ziglang/zig/issues/6068 Zig also isn't alone in this, I haven't encountered any other programming language yet which has…
  18. Hmm, there's a distinct change of opinion by andrewrk from the linked issue (2022) to now https://github.com/ziglang/zig/issues/12064 (July 2022): > Hope you don't mind I'm going to reopen this issue because it concisely demonstrates a…
  19. …And maybe more work on composition, abstraction and interfaces. The issue is described here: https://github.com/ziglang/zig/issues/17985
  20. …a talk [2] that goes into details on why this is an issue. Regardless, I still love zig. [1] https://github.com/ziglang/zig/issues/12064 [2] https://youtu.be/dEIsJPpCZYg
  21. …defining it first), you cannot do error.InvalidChar(c) to give back the actual character. https://github.com/ziglang/zig/issues/2647
  22. …Also it seems like even the discussion of Geometric Algebra has been covered before 3 years ago: https://github.com/ziglang/zig/issues/7295#issuecomment-7389... Unless it's actually possible after all this time (even in some random beta)…
  23. Doesn’t this open github issue imply that vector operators are still being considered? https://github.com/ziglang/zig/issues/7295 Or is it that the three years it’s been around indicate it will never progress?
  24. …[1]: https://github.com/bytecodealliance/wit-bindgen/issues/306 [2]: https://github.com/ziglang/zig/issues/17115
    comment by n42 · 2023-11-27 · in $20k bounty was claimed
  25. Zig’s issue tracker list them [0]. [0]: https://github.com/ziglang/zig/issues?q=is%3Aopen+is%3Aissue...
    comment by KolmogorovComp · 2023-11-11 · in Hashmaps in Factor are faster than in Zig
  26. …bigger zig projects out there) noticed this issue [1]. It's also on their issue tracker [2]. [1] https://github.com/ziglang/zig/issues/17851 [2] https://github.com/tigerbeetle/tigerbeetle/issues/1191
  27. …decide for you. But what if the programmer forgets or somebody else is working on the code? [0] https://github.com/ziglang/zig/pull/17419
    comment by jiripospisil · 2023-11-10 · in Servo announces grant from the NLnet Foundation
  28. This is exactly how random floats are computed in the Zig standard library: https://github.com/ziglang/zig/pull/10428/
    comment by 10000truths · 2023-10-18 · in Higher quality random floats
  29. …support for exactly this type of OOM testing in Zig via std.testing.checkAllAllocationFailures: - https://github.com/ziglang/zig/blob/1606717b5fed83ee64ba1a91... - https://www.ryanliptak.com/blog/zig-intro-to-check-all-alloc...
    comment by squeek502 · 2023-09-27 · in Arena allocator tips and tricks
  30. Zig has arena allocator in the standard library https://github.com/ziglang/zig/blob/master/lib/std/heap/aren...
    comment by Cloudef · 2023-09-27 · in Arena allocator tips and tricks
  31. …still available via the zig build system. longer version: I think this is the relevant link here: https://github.com/ziglang/zig/issues/16270#issuecomment-161... as you can see the proposal "make the main zig executable no longer depend on…
  32. For Zig this is planned via labeled continue syntax inside switch expressions: https://github.com/ziglang/zig/issues/8220 As mentioned in the proposal, this would even allow implementation of Duff's Device in Zig :-o
    comment by AndyKelley · 2023-09-19 · in Memory-efficient enum arrays in Zig
  33. …whether or not it will be possible in practice is a different (and interesting!) question. [1]: https://github.com/ziglang/zig/issues/2646 [2]: https://github.com/ziglang/zig/issues/2301
    comment by gpanders · 2023-09-18 · in Memory-efficient enum arrays in Zig
  34. This is the context that the parent poster is referring to. https://github.com/ziglang/zig/issues/14172#issuecomment-164... Yes, it's petty stuff.
    comment by kristoff_it · 2023-09-17 · in Bounties Damage Open Source Projects
  35. The contributors are expected to follow code of conduct: https://github.com/ziglang/zig/blob/master/.github/CODE_OF_C... At least these lines sounds reasonable: Examples of behavior that contribute to creating a positive environment…
    comment by tener · 2023-09-17 · in Bounties Damage Open Source Projects
  36. The "Support WASIX" [1] link shows up there, that's what led to this. [1] https://github.com/ziglang/zig/issues/17115
    comment by wyldfire · 2023-09-17 · in Bounties Damage Open Source Projects
  37. Wasmer attempted to do this in the Ziglang repo barely 4 days ago: https://github.com/ziglang/zig/issues/17115
    comment by ayewo · 2023-09-15 · in Should I Rust or Should I Go?
  38. Link to GitHub issue: https://github.com/ziglang/zig/issues/17115 Wasmer offered a bounty of $5,000 for completion and merging was optional, the only requirement was to pass a test suite.
    comment by aquariusDue · 2023-09-14 · in Bounties Damage Open Source Projects
  39. …using comptime. It parses the format string and validates the arguments at compile time. See https://github.com/ziglang/zig/blob/master/lib/std/fmt.zig I also toyed around with turning a math equation dsl into compiled statements at…
    comment by Laremere · 2023-09-09 · in Learning Zig
  40. …I tried pulling a very simple SDL2 project off github and building it on my macbook M1 and hit https://github.com/ziglang/zig/issues/12069 . Homebrew also has no option for --HEAD, so I don't know if I'm running into a fixed issue or what.…
    comment by BaculumMeumEst · 2023-09-09 · in Learning Zig
  41. …from a number of miscompilation [0] that is quite higher than for a more mature compiler. [0]: https://github.com/ziglang/zig/issues?q=is%3Aopen+is%3Aissue...
    comment by KolmogorovComp · 2023-09-07 · in Bun 1.0 announcement [video]
  42. …the compiler error (as in, prevents compilation) for unused local variables. See discussion here: https://github.com/ziglang/zig/issues/335#issuecomment-10011...
    comment by alwaysbeconsing · 2023-09-03 · in Focus: A simple and fast text editor written in Jai
  43. We also migrated all compile-time types and values to be stored in a similar fashion: https://github.com/ziglang/zig/pull/15569 Perf was a bit of a wash on this one but it means we can serialize most of the compiler's state with a single…
    comment by AndyKelley · 2023-08-26 · in How to speed up the Rust compiler
  44. Zig did go on to apply the same style to their two later IRs, ZIR ( https://github.com/ziglang/zig/pull/8266 ) and AIR ( https://github.com/ziglang/zig/pull/9353 ). These don't look as thoroughly benchmarked (at least not on the PRs) but…
    comment by Rusky · 2023-08-26 · in How to speed up the Rust compiler
  45. …from an RDBMS. The closest thing I've seen in a compiler is rather Zig's AST memory layout work: https://github.com/ziglang/zig/pull/7920 . But this is a very "hand-crafted" version of what an RDBMS does.
    comment by Rusky · 2023-08-25 · in How to speed up the Rust compiler
  46. …in prod - he acknowledges there are potential security flaws that should be revisited before 1.0 ( https://github.com/ziglang/zig/pull/4929 ) I just feel like there is a lot of hair splitting here.
    comment by nonethewiser · 2023-08-24 · in Bun v0.8
  47. …only TLS 1.3 is implemented, which means that HTTPS requests are going to fail with many servers: https://github.com/ziglang/zig/issues/14172 I believe a 3rd party TLS package is available, but something to think about.
  48. …I'd recommend reading the GH issues and comments I've linked below to get a better idea of it. [1]: https://github.com/ziglang/zig/issues/16270#issuecomment-161... [2]: https://github.com/andrewrk/ffmpeg [3]:…
    comment by messe · 2023-08-22 · in Extend a C/C++ Project with Zig (2021)
  49. Versioned link: https://github.com/ziglang/zig/blob/b835fd90cef1447904d3b009...
    comment by LoganDark · 2023-08-11 · in Fastest branchless binary search
  50. …find, rather it calls to C++. Zig’s binary search is here, it’s an unoptimized textbook version: https://github.com/ziglang/zig/blob/b835fd90cef1447904d3b009... At TigerBeetle, we have our own branchless implementation here:…
    comment by matklad · 2023-08-11 · in Fastest branchless binary search