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. …vectors and there has been discussion to rename it to something that reflects this more clearly. https://github.com/ziglang/zig/issues/7305
  2. …you will have fewer cache misses. future languages will be able to suss this out at compile-time: https://github.com/ziglang/zig/blob/2ac769eab9b7dba4cd38e5de...
  3. …creates instances of the type. EDIT: Aaand shockingly, I'm not the first to come up with this idea: https://github.com/ziglang/zig/issues/782
    comment by PoignardAzur · 2021-06-05 · in Zig 0.8.0 Release Notes
  4. I think GP means RAII, which is still an open area of discussion in Zig: https://github.com/ziglang/zig/issues/782 I'd love to see it if it can be implemented in a way that fits the language, but that remains to be seen.
    comment by slimsag · 2021-06-05 · in Zig 0.8.0 Release Notes
  5. …Well, I guess I will admire the language from a distance but I am unlikely to use it practically. https://github.com/ziglang/zig/issues/782
    comment by lenkite · 2021-06-05 · in Zig 0.8.0 Release Notes
  6. Re: strings, this is a thread about that topic: https://github.com/ziglang/zig/issues/234 It strikes me as a difference in opinion wrt at which level should strings be handled (zig folks saying it should be a userspace/stdlib concern,…
  7. …have a single leader. Zig on the other hand does have a single main contributor/maintainer/creator: https://github.com/ziglang/zig/graphs/contributors?from=2015...
    comment by est31 · 2021-05-22 · in Rust heads into the kernel?
  8. …It is worth looking at all the serious bugs in deficiencies in the upcoming 0.8 milestone: https://github.com/ziglang/zig/milestone/10 This is not a criticism of Zig, nor is it an insinuation that Zig is unable to write correct software.…
    comment by nicklecompte · 2021-05-22 · in Rust heads into the kernel?
  9. …investment either way (I had one use case, where I would slightly prefer the infix operation). https://github.com/ziglang/zig/issues/8204
  10. …to be explicit. There's more at [0]. Side note: the proposal at [0] seems very close to [1]. [0]: https://github.com/ziglang/zig/issues/782 [1]: https://www.haskellforall.com/2013/06/the-resource-applicati...
  11. …can be disabled with `-fno-sanitize=undefined` or by enabling optimizations with `-O2` or `-O3`. https://github.com/ziglang/zig/issues/4830#issuecomment-6054...
  12. …and first-class capability of zig (you can run it now, the issue isn't closed because it's an epic) https://github.com/ziglang/zig/issues/2457
  13. Sad but true. This is why I'm hopeful that Zig will add support for "constant time" blocks: https://github.com/ziglang/zig/issues/1776
    comment by nemo1618 · 2021-05-05 · in Branchless Coding in Go
  14. …its stdlib? In any case, they have been refactoring the language parser to use SOA to great effect: https://github.com/ziglang/zig/pull/7920
    comment by dnautics · 2021-05-03 · in The compiler will optimize that away
  15. Here's a related Zig proposal: https://github.com/ziglang/zig/issues/8220 Relevant section pasted here: > Other Possible Solution: Tail Calls > Tail calls solve this problem. Each switch prong would return foo() (tail call) and foo() at…
  16. Is LLD on Mach-O considered stable? https://github.com/ziglang/zig/pull/8282 https://chromium.googlesource.com/chromium/src/+/refs/heads/...
  17. > no REPL Personally I don't find it necessary, but the proposal for REPL has been accepted: https://github.com/ziglang/zig/issues/596
  18. ▲ 3
    Introduce labeled continue syntax inside a switch expression
    story by luu · 2021-03-31 · 0 comments
  19. …is a very hard problem but it is in the Zig issues list and it will probably be worked on: https://github.com/ziglang/zig/issues/5725
    comment by dnautics · 2021-03-27 · in A “Better C” Benchmark
  20. …reading them, they are both interesting): ------- "Improved handling of strings and unicode", https://github.com/ziglang/zig/issues/234 Andrew answer: > I'm not convinced that this is a language change rather than a standard library…
    comment by dgellow · 2021-03-27 · in A “Better C” Benchmark
  21. …It's like some bizarro alternative universe, where ASCII or a bag of bytes is good enough... [1] https://github.com/ziglang/zig/issues/234
    comment by coldtea · 2021-03-25 · in A “Better C” Benchmark
  22. …and obscured. Oh, don't worry about that :) [1] https://www.youtube.com/watch?v=NQgju_2mX-8 [2] https://github.com/ziglang/zig/wiki/Community [3] https://ziglang.org/documentation/master/std/ [4] https://kristoff.it/blog/zig-new-relationshi…
    comment by kristoff_it · 2021-03-24 · in A “Better C” Benchmark
  23. …without automatic resource cleanup. A lot of people forget cleanup and destroy safety without RAII. https://github.com/ziglang/zig/issues/782 Zig is apparently a PL for folks with perfect memory who never make mistakes like those described…
    comment by lenkite · 2021-03-23 · in How Safe Is Zig?
  24. https://github.com/ziglang/zig/pull/4929#issuecomment-649191... The bulk of the conversation happened in Discord around that time. Initial attempts to bring this up were met with "zig is perfect"-type conversation, none of which was very…
    comment by _u9xp · 2021-03-22 · in How Safe Is Zig?
  25. …safety, hands down. I do want to note that the safety story in zig is [under active development]( https://github.com/ziglang/zig/projects/3 ) and will be worth checking back in on in a year or two and see what has changed :)
    comment by AndyKelley · 2021-03-22 · in How Safe Is Zig?
  26. …to not have a computed goto language feature. More details here, with lots of fun godbolt links: https://github.com/ziglang/zig/issues/8220 [1]: https://godbolt.org/z/T3v881
    comment by AndyKelley · 2021-03-13 · in Speed of Rust vs. C
  27. You can read more about it here: https://github.com/ziglang/zig/issues/2765
  28. …upfront in the other. Presumably this would not be an issue anymore once [0] is implemented. [0] https://github.com/ziglang/zig/issues/1006
    comment by lhorie · 2021-03-11 · in Rust’s async isn’t colored
  29. …a ComptimeStringMap type for this use case which is used by the self hosted tokenizer for example. https://github.com/ziglang/zig/blob/master/lib/std/comptime_...
  30. …has been expanded into a full fledged implementation in the standard library! std.ComptimeStringMap https://github.com/ziglang/zig/blob/master/lib/std/comptime_...
  31. …computed at comptime since we already know the search space ahead of time! Really neat stuff. [0] https://github.com/ziglang/zig/issues/2647 [1] https://andrewkelley.me/post/string-matching-comptime-perfec...
  32. …will be left for loop unrolling and possibly in use with `inline switch` where it matters. [1]: https://github.com/ziglang/zig/issues/7224
  33. …you say. (But shows great promise, I think!) [0] https://ziglang.org/documentation/0.7.1/#call [1] https://github.com/ziglang/zig/issues/1006
  34. …a lot since its first iterations. There are still some breaking changes coming that you can find at https://github.com/ziglang/zig/issues . One of the cooler aspects of Zig's breaking changes is that its formatting tool can automatically…
  35. …of the pinned keyword proposed here should fix most if not all @fieldParentPtr() footguns https://github.com/ziglang/zig/issues/7769
  36. Here's another example of the coolness of Zig's comptime code execution: https://github.com/ziglang/zig/commit/0808d98e10c5fea27cebf9... That's a generic container class (similar to vector in C++ or List in C#). But! With a twist! It…
  37. …} } If pins happen to be very sparse, one could switch from a basic array to a comptime hashmap: https://github.com/ziglang/zig/blob/master/lib/std/comptime_... There's also other ways of approaching the implementation depending on the…
  38. …needed. That said proposals about adding support for error payloads are still open, so who knows. https://github.com/ziglang/zig/issues/2647 https://github.com/ziglang/zig/issues/7812 Existing pattern:…
  39. ▲ 8
    Struct-of-arrays collection type in Zig
    story by dilap · 2021-02-25 · 1 comment
  40. …that the linker doesn't (yet) address the types of complex scenarios that rui talks about. [0] https://github.com/ziglang/zig/issues/1535#issuecomment-6784...
    comment by lhorie · 2021-02-23 · in Mold: A Modern Linker
  41. I think this is the issue tracking memory safety in Zig: https://github.com/ziglang/zig/issues/2301
  42. …stdlib you can see how `os` corresponds to a different struct definition depending on the target: https://github.com/ziglang/zig/blob/master/lib/std/os.zig#L5...
  43. ▲ 13
    Ask HN: How can V compile 1M code lines/s while doing implicit type parsing
    story by mardiyah · 2021-01-17 · 3 comments
  44. There's a proposal for that https://github.com/ziglang/zig/issues/6965
    comment by kristoff_it · 2021-01-16 · in Why Zig when there is already C++, D, and Rust?
  45. …in that search¹. I find the open and frank discussion of problem choices to be very refreshing. ¹ https://github.com/ziglang/zig/search?q=design+flaw&type=iss...
  46. …and they're not necessarily opposed to an idea like that. I agree that could be a nice addition. https://github.com/ziglang/zig/issues/427
  47. …how practical that is for e.g. long running servers w/ many clients interesting discussion here: https://github.com/ziglang/zig/issues/3516
  48. while zig's error handling is almost perfect, it's missing a way to return context w/ the error ( https://github.com/ziglang/zig/issues/2647 ) while the debug allocator can tell you at runtime about use-after-free or memory leaks, that's a…
  49. …Yeah, that's definitely a reasonable way to do it, and actually Andrew gives an example of this: https://github.com/ziglang/zig/issues/2647#issuecomment-5898... (Andrew's example is slightly different in that rather than an explicit…
    comment by dilap · 2021-01-04 · in Zig in 30 Minutes
  50. …to zig's goal of enabling the creation of perfect software. :-) I found this thread interesting https://github.com/ziglang/zig/issues/2647
    comment by dilap · 2021-01-04 · in Zig in 30 Minutes