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. …builtin calls like memcpy. But I’d argue volatile would still be more appropriate in this case. https://github.com/ziglang/zig/issues/22110 Edit: this comment from later in the thread is also relevant:…
    comment by MatthiasPortzel · 2024-12-31 · in I wrote a Game Boy Advance game in Zig
  2. …enforcement in Rust is there for a reason. Two examples I quickly found on Zig's issue tracker: * https://github.com/ziglang/zig/issues/3696 * https://github.com/ziglang/zig/issues/5973
    comment by ameixaseca · 2024-12-30 · in When Zig Is Safer and Faster Than Rust
  3. …This is the "strategic use of friction" described here, ironically enough, by the creator of Zig: https://github.com/ziglang/zig/issues/3320#issuecomment-8844...
    comment by do_not_redeem · 2024-12-30 · in When Zig Is Safer and Faster Than Rust
  4. …and you get serialization benefits. The zig compiler uses this pattern in quite a few places: * https://github.com/ziglang/zig/blob/77c63ac36034db577a9287c5... * https://github.com/ziglang/zig/blob/77c63ac36034db577a9287c5... *…
    comment by AndyKelley · 2024-12-21 · in Enum of Arrays
  5. ▲ 3
    Zon – object notation like JSON in Zig
    story by begoon · 2024-11-29 · 0 comments
  6. IIRC there's `zig reduce` builtin in Zig :) https://github.com/ziglang/zig/blob/master/lib/compiler/redu...
    comment by cztomsik · 2024-11-28 · in You can use C-Reduce for any language
  7. …std.Thread.Pool API respect the Linux jobserver and macOS dispatcher automatically out of the box: https://github.com/ziglang/zig/issues/20274
  8. There's an issue tracking that: https://github.com/ziglang/zig/issues/3806
    comment by samatman · 2024-11-09 · in Zig's (.{}){} Syntax
  9. …they ought to consider named/labelled parameters, too, if they're so concerned about clarity. 0: https://github.com/ziglang/zig/issues/484
    comment by dleslie · 2024-11-09 · in Zig's (.{}){} Syntax
  10. Welcome to 2016. https://github.com/ziglang/zig/blob/5f0bfcac24036e1fff0b2bed...
    comment by AndyKelley · 2024-11-07 · in Linux Syscall Support
  11. …to adopt this over libc, citing concerns about "libc not existing on certain configurations"[1] [1] https://github.com/ziglang/zig/issues/1840
    comment by sedatk · 2024-11-07 · in Linux Syscall Support
  12. …this for instance (at least for x86_64 linux [0]) as a way to avoid having to link libc at all [0] https://github.com/ziglang/zig/blob/ee9f00d673f2bccddc2751c3...
    comment by jcalabro · 2024-11-07 · in Linux Syscall Support
  13. …you can see it's calling the user defined main function and handling its return value / error. https://github.com/ziglang/zig/blob/2d888a8e639856e8cb6e4c6f... > Also, what happened to argv/argc? You can access argv with std.os.argv which…
    comment by jiripospisil · 2024-10-22 · in Zig is everything I want C to be
  14. …choice to directly develop against a mostly undocumented NT-API instead of the Win32 API. [1]: https://github.com/ziglang/zig/issues/1840
  15. …While browser aren't effected, this broke compatibility with at least Zig's HTTP client. => https://github.com/ziglang/zig/issues/21674 zig fetch does not work with sqlite.org
    comment by MatthiasPortzel · 2024-10-13 · in CRLF is obsolete and should be abolished
  16. > And there's also the aliasing issue Plans to address this were shared just last week: https://github.com/ziglang/zig/issues/5973#issuecomment-2380...
  17. I believe these are the issues: https://github.com/golang/go/issues/52690 https://github.com/ziglang/zig/issues/14989
    comment by dwattttt · 2024-10-02 · in The Fastest Mutexes
  18. …Zig, e.g. [0]). Two things: 1. People who link that issue often forget about Andrew's comments ( https://github.com/ziglang/zig/issues/16270#issuecomment-161... , https://github.com/ziglang/zig/issues/16270#issuecomment-161... , example:…
    comment by cornstalks · 2024-10-02 · in Pledging $300k to the Zig Software Foundation
  19. …forced to code a certain way, why not just use Rust and get free memory safety out of it too? [0] https://github.com/ziglang/zig/issues/16270
  20. That would be a good reason. The thing is that it is present in many distributions. https://github.com/ziglang/zig/wiki/Install-Zig-from-a-Packa... Perhaps the foundational distros are stricter.
  21. More info https://github.com/ziglang/zig/issues/16270#issuecomment-161...
  22. I raise you https://github.com/ziglang/zig/issues/20875 It is not entirely clear what any of this means for the future, and in any case, it keeps changing all the time. The promise to maintain LLVM support just applies to Zig code . That…
  23. …will it be shipping clang so you can build other code with it, they aren't removing LLVM support. https://github.com/ziglang/zig/issues/16270#issuecomment-205...
  24. Which doesn't mean what you're implying it means: https://github.com/ziglang/zig/issues/16270#issuecomment-161...
  25. Zig is divorcing itself from Clang: https://github.com/ziglang/zig/issues/16270
  26. …continue statements to target specific switch cases. Like computed-gotos in C. - Zig issue: https://github.com/ziglang/zig/issues/8220 - Release notes: https://github.com/ziglang/zig/pull/21257#issuecomment-23368...
    comment by simonklee · 2024-09-10
  27. …break. This is why Zig's close method[0] ignores errors (with the exception of `EBADF`). [0]: https://github.com/ziglang/zig/blob/fb0028a0d7b43a2a5dd05f07...
    comment by trashburger · 2024-09-08 · in Don't defer Close() on writable files (2017)
  28. ▲ 3
    Zig: Prefer depending on NtDll rather than kernel32 or other higher level DLLs
    story by sebazzz · 2024-09-04 · 0 comments
  29. …kit isn’t on a good level yet to replace C in Linux. And, there’s still no good and fast allocator: https://github.com/ziglang/zig/issues/12484
  30. …genuinely, since if not it seems like an easy way for someone to inject a KTH (Ken Thompson Hack): https://github.com/ziglang/zig/commits/master/stage1/zig1.wa...
    comment by maxdamantus · 2024-08-27 · in Writing a Rust compiler in C
  31. Zig is moving away from LLVM ( https://github.com/ziglang/zig/issues/16270 ) and Rust has added Cranelift as a debug backend ( https://lwn.net/Articles/964735/ ). Not sure about Jai.
  32. …well (which would force you to use build.zig), but I don't think it's been decided to do that. [1] https://github.com/ziglang/zig/issues/20630#issuecomment-225...
    comment by mk12 · 2024-07-30 · in C Macro Reflection in Zig
  33. …I not only write Zig code almost daily, I’ve personally contributed to the Zig build system. [0]: https://github.com/ziglang/zig/issues/20630
    comment by jay-barronville · 2024-07-30 · in C Macro Reflection in Zig
  34. …= target, .optimize = optimize, }); exe.root_module.addImport("c", translate_c.createModule()); https://github.com/ziglang/zig/issues/20648
    comment by kbolino · 2024-07-30 · in C Macro Reflection in Zig
  35. See: https://github.com/ziglang/zig/issues/16270#issuecomment-161... The ability to seamlessly compile C/C++/ObjC code within a Zig project is extremely important for me as well, but I'm fine with that job being delegated to a Zig package…
    comment by flohofwoe · 2024-07-30 · in C Macro Reflection in Zig
  36. …functionality isn't going anywhere, just the method of achieving said functionality is changing: https://github.com/ziglang/zig/issues/16270#issuecomment-161... https://github.com/ziglang/zig/issues/16270#issuecomment-161...
    comment by Laremere · 2024-07-30 · in C Macro Reflection in Zig
  37. …they want this functionality out of the language so they can remove libclang dependency. [0]: https://github.com/ziglang/zig/issues/20630
    comment by skywal_l · 2024-07-30 · in C Macro Reflection in Zig
  38. We would need more branch hints? https://github.com/ziglang/zig/issues/5177 Cold, warm, warmer, omit hot as it is the default? Sometimes you would set all branches to be cold except one
  39. …macOS uses Zig's own linker since roughly 2021 as far as I recall. Tracking issue for reference: https://github.com/ziglang/zig/issues/8726
    comment by kubkon · 2024-07-21 · in Aro – Zig's new C compiler
  40. It's the major area of focus right now. You can track the issues with this tag/link if you'd like: https://github.com/ziglang/zig/issues?q=is%3Aissue+is%3Aopen...
    comment by samatman · 2024-07-20 · in Aro – Zig's new C compiler
  41. Is this part of the long-term plan for zig to get rid of the dependency on clang/llvm? https://github.com/ziglang/zig/issues/16270
    comment by livrem · 2024-07-20 · in Aro – Zig's new C compiler
  42. ▲ 13
    Use Zig cc to cross‐compile a CMake project
    story by jcbhmr · 2024-07-18 · 2 comments
  43. …out in the post). Here's the relevant issue/comment, which makes me think this won't happen in Zig: https://github.com/ziglang/zig/issues/3897#issuecomment-7389...
  44. …to the mix and you get a slow ass compilation time even in Zig (See Zig filing divorce from LLVM https://github.com/ziglang/zig/issues/16270 ). Granted, LLVM isn't the only thing to blame. Rust has its own share of problems stemming from…
  45. …to just write the C corresponding header files yourself, the issue mentions a couple of examples. https://github.com/ziglang/zig/issues/9698#issuecomment-9747...
    comment by frankjr · 2024-06-07 · in Zig Goals
  46. Good news! If all goes well, seems that 0.14.0 will bring async/await https://github.com/ziglang/zig/issues/6025
    comment by punkbit · 2024-06-07 · in Zig 0.13.0 Release Notes
  47. I agree. Below is the direct link in case one of the moderators see this and want to update. https://github.com/ziglang/zig/blob/4236b85c722b36cb31595634...
    comment by thangngoc89 · 2024-06-07 · in Zig Goals
  48. ▲ 90
    Zig Goals
    story by whatever3 · 2024-06-07 · 48 comments
  49. There is an issue proposing this approach: https://github.com/ziglang/zig/issues/4284
    comment by tiehuis · 2024-04-23 · in Memory-mapped IO registers in zig (2021)
  50. Note TLS/HTTPS is still not working https://github.com/ziglang/zig/issues/14172
    comment by 38 · 2024-04-21 · in Zig Language 0.12 Release