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. Maybe this: https://github.com/ziglang/zig/issues/335#issuecomment-10138...
    comment by strager · 2022-09-08 · in Zig, the Small Language
  2. Yeah I miss interfaces/traits as well, see https://github.com/ziglang/zig/issues/1268 related open issue.
    comment by bouiaw · 2022-09-07 · in Zig, the Small Language
  3. …even more trivial things like public/private and var/const before it will even compile your code. https://github.com/ziglang/zig/issues/335 https://github.com/ziglang/zig/issues/224 Maybe I'm a bad developer, but my code is never perfect…
    comment by TakeBlaster16 · 2022-09-07 · in Zig, the Small Language
  4. …comment, but when I consider the code I have left in me, I'd like it to look as nice as possible. 0 https://github.com/ziglang/zig/issues/1097
    comment by ibiza · 2022-08-28 · in I like Odin
  5. …and both Nim and Zig interface with libc. Zig does not depend on libc on Linux, for example: https://github.com/ziglang/zig/blob/master/lib/std/os/linux.... You can choose to link libc though.
    comment by generichuman · 2022-08-26 · in Hooking Go from Rust
  6. …depending on the differences between the stage1 and stage2 backend, respectively. Related: https://github.com/ziglang/zig/issues/12183
    comment by AndyKelley · 2022-08-20 · in Zig is now self–hosted by default
  7. …[2]: https://ziglang.org/documentation/master/#Error-Return-Trace... [3]: https://github.com/ziglang/zig/blob/4a98385b0aa3808ab05a1ebf...
    comment by AndyKelley · 2022-08-20 · in Zig is now self–hosted by default
  8. …know about it until today, very impressive. Generic SoA in less than 500 lines of userland code... https://github.com/ziglang/zig/blob/master/lib/std/multi_arr...
    comment by sekao · 2022-08-20 · in Zig is now self–hosted by default
  9. Originally it was meant to be https://github.com/ziglang/zig/issues/89#issuecomment-122118... , but somehow last aprt was stripped. But that doesn't matter, thank you so much! New URL is definitely better.
    comment by BratishkaErik · 2022-08-20 · in Zig is now self–hosted by default
  10. We changed the URL from https://github.com/ziglang/zig/issues/89 .
    comment by dang · 2022-08-20 · in Zig is now self–hosted by default
  11. Yep, https://github.com/ziglang/zig/issues/6378
    comment by nyberg · 2022-08-20 · in Zig is now self–hosted by default
  12. …upgrade immediately. See the full upgrade guide [3] for help deciding when and how to upgrade. [1]: https://github.com/ziglang/zig/tree/master/src/stage1 [2]: https://github.com/ziglang/zig/tree/master/src [3]:…
    comment by AndyKelley · 2022-08-20 · in Zig is now self–hosted by default
  13. …and can instead use the stdlib that already exists to automagically get that functionality. [0]: https://github.com/ziglang/zig/blob/master/src/stage1/os.hpp [1]: https://github.com/ziglang/zig/blob/a9c4dc84f487c4764c578743...
    comment by _gabe_ · 2022-08-15 · in Will Bun JavaScript Take Node's Crown
  14. …the programming language Bun is written on, is currently having some Windows headaches of its own: https://github.com/ziglang/zig/issues/12420 I wonder how much of Bun's immaturity is due to Zig's own immaturity.
    comment by Hamcha · 2022-08-14 · in Will Bun JavaScript Take Node's Crown
  15. …macro assemblers". They derive their semantics from the semantics of the underlying assembly. Take https://github.com/ziglang/zig/issues/12251 as an example. Several people from the Rust and Haskell community slacked off on twitter about…
    comment by j-pb · 2022-08-08 · in MiniRust
  16. …bit pattern to directly generate the exponent. This is what is done in the Zig standard library: https://github.com/ziglang/zig/pull/10428
  17. …to edit, but related: https://news.ycombinator.com/item?id=27089184 , immutable pointer aliasing, https://github.com/ziglang/zig/issues/4021 .
  18. There is an accepted (but as of yet unimplemented) proposal to fix just that: https://github.com/ziglang/zig/issues/7257#issuecomment-1030...
    comment by Aransentin · 2022-07-22 · in Some Thoughts on Zig
  19. …devs are open to considering any alternative, rather they just hope we can learn to live with it. https://github.com/ziglang/zig/issues/335 This is by far my biggest annoyance with Go, more so than writing if err != nil. I feel I write…
    comment by sph · 2022-07-22 · in Some Thoughts on Zig
  20. …are forced to declare loop index outside the loop body, despite many requests from the community. https://github.com/ziglang/zig/issues/358#issuecomment-49100...
    comment by markisus · 2022-07-22 · in Some Thoughts on Zig
  21. …out of the bounds where that is possible. Here's a thread I'm at least a year out of date on https://github.com/ziglang/zig/issues/1006 The general philosophy is to give the programmer tools to know what the consequence of a choice will be…
    comment by Schroedingersat · 2022-07-22 · in Some Thoughts on Zig
  22. Zig basically does plan to disallow recursion : https://github.com/ziglang/zig/issues/1006#issuecomment-5346... More specifically, it'll force you to allocate memory for your recursive functions on the heap (and thus handle the possible…
    comment by csande17 · 2022-07-22 · in Some Thoughts on Zig
  23. …build the zig compiler and patch it. See this post by ryuukk in the corresponding issue on github: https://github.com/ziglang/zig/issues/335#issuecomment-10138... and also https://github.com/ziglang/zig/issues/335#issuecomment-10184... I…
    comment by chienandalou · 2022-07-05 · in Zig is becoming more production-worthy
  24. They don't (at least the GPA's defaulting backing allocator is the page_allocator, which doesn't). https://github.com/ziglang/zig/blob/master/lib/std/heap.zig
    comment by dundarious · 2022-06-23 · in How safe is Zig?
  25. …self-hosted compiler recently, so they're behind on actually implementing accepted proposals. [0] https://github.com/ziglang/zig/issues/7769
    comment by alphazino · 2022-06-23 · in How safe is Zig?
  26. This. I believe it is in the works, but postponed to finish up self-hosted. https://github.com/ziglang/zig/issues/2301
    comment by throwawaymaths · 2022-06-23 · in How safe is Zig?
  27. …read. Even a primitive editor with primitive highlighting can make the syntax painless. Reasoning: https://github.com/ziglang/zig/issues/162
  28. I was sad to find out "Zig supports only the last three macOS versions". No ncdu2 for me :( https://github.com/ziglang/zig/pull/10232#issue-1064864004
  29. …definition is a compile-time expression that creates the function. Edit: here’s that Zig rfc: https://github.com/ziglang/zig/issues/1717#
    comment by kbd · 2022-06-14 · in Why I Don't Like Golang (2016)
  30. …containers are dependent on making a comptime allocator available. There's a ticket for that: https://github.com/ziglang/zig/issues/1291 > * a generic memoization utility in the standard library for caching. If I want my function to handle…
    comment by formerly_proven · 2022-05-27 · in How I Built Zig-SQLite
  31. …source code is very easy in good part thanks to the reasons you already mentioned in your post. https://github.com/ziglang/zig/wiki/How-to-read-the-standard... You might also be interested in reading about the project to see if you like…
    comment by kristoff_it · 2022-05-23 · in How Uber Uses Zig
  32. …to fix some issues, it is likely fair. > Contract terms were roughly as follows: > * Uber reports issues to github.com/ziglang/zig and pings Loris. > * Loris assigns it to someone in ZSF. > * Hack hack hack hack hack. > * When done, Loris…
    comment by johanj · 2022-05-23 · in How Uber Uses Zig
  33. …right now. I attempted to use zig cc as the cross compiler for sqlite3 the other day. Ran into https://github.com/ziglang/zig/issues/5882 https://github.com/ziglang/zig/issues/9485 an almost two-year-old issue. Cross compiling C sucks.
    comment by oefrha · 2022-05-13 · in SQLite in Go, with and Without Cgo
  34. Sort of random to see this pop-up out of nowhere. Very interesting language. This blew my mind: https://github.com/ziglang/zig/blob/master/lib/std/multi_arr...
    comment by dilap · 2022-05-12 · in Zig Programming Language
  35. …language features and then make sure those features did the right thing. You can find them here: https://github.com/ziglang/zig/tree/master/test/behavior > Is that a list of compilation targets? Mostly. Pedantically, it's a list of code…
  36. …runtime safety checks If you're looking forward to giving it a spin, subscribe to [this issue]( https://github.com/ziglang/zig/issues/89 ) to be notified when it is landed in master branch. Edit: The talk recording about upcoming compiler…
  37. For reference: Tracking issue for overall progress on the self-hosted compiler: https://github.com/ziglang/zig/issues/89 Zig's New Relationship with LLVM: https://kristoff.it/blog/zig-new-relationship-llvm/
  38. …[2]. So in answer to your question, the PoC adds about 150 lines to an 186,865 line codebase. [1]: https://github.com/ziglang/zig/compare/hcs [2]: https://github.com/ziglang/zig/compare/hcs-macos
    comment by AndyKelley · 2022-03-18 · in Hot-code reloading on macOS/arm64 with Zig
  39. …follow its development a bit. Zig has or may add foreach-like loops over one or more collections: https://github.com/ziglang/zig/issues/7257#issuecomment-1030...
  40. …a definitive answer to this, but this merged PR looks like it might implement support for this: https://github.com/ziglang/zig/issues/4786
    comment by nicoburns · 2022-02-28 · in Using Zig as cross-platform C toolchain
  41. …(deduplicated) libc headers for pretty much every platform, including macOS and glibc/musl. https://github.com/ziglang/zig/tree/master/lib/libc/include * Provides a libc implementation (libSystem for macOS, musl and glibc, mingw for…
    comment by slimsag · 2022-02-28 · in Using Zig as cross-platform C toolchain
  42. Just to tag onto this comment, for anybody interested the repo is: https://github.com/ziglang/zig The code in the lib/std directory is very readable, and I’d strongly encourage checking it out for anybody who wants to learn Zig or know…
    comment by messe · 2022-02-26 · in Zig build system internals
  43. They seem to have their own linker: https://github.com/ziglang/zig/issues/8755 . > Now that there is significant work put into Mach-O linking thanks to @kubkon, Zig is more than just a linker driver for LLD. It is now a linker that…
  44. …CPython-level performance once the self-hosted compiler is finished, so things might become better. https://github.com/ziglang/zig/issues/4055
    comment by cyber_kinetist · 2022-02-13 · in Compile-Time Sort in D
  45. …* D ImportC is shipped, while Aro as a C frontend in Zig is an [unfinished branch]( https://github.com/ziglang/zig/pull/10795 ) It's been really exciting watching Vexu and ehaas (and other contributors) working on Aro. Looks like there's…
    comment by AndyKelley · 2022-02-05 · in Aro: A C compiler written in Zig
  46. …gap would mean that seamless C compilation could still be done, without LLVM being involved. [1] https://github.com/ziglang/zig/pull/10795 [2] https://kristoff.it/blog/zig-new-relationship-llvm/
    comment by tiehuis · 2022-02-05 · in Aro: A C compiler written in Zig
  47. …I say that as someone who spend a significant amount of time writing JavaScript for a living. [2] https://github.com/ziglang/zig/issues/2301 [3] I say “better” because it would be strongly linked with the actual semantics of the languages…
    comment by littlestymaar · 2022-01-27 · in Being fair about memory safety and performance
  48. …- 1. Generators that can allocate prevent comptime-overapproximation of potential stack usage ( https://github.com/ziglang/zig/issues/157#issuecomment-76395... ) or make analysis inside the compiler significant harder. - 2. There is no…
  49. …a 3-year-old reddit comments section really a better source for this than the Zig standard library? https://github.com/ziglang/zig/blob/master/lib/std/unicode.z...
    comment by anonymoushn · 2022-01-24 · in The case for a modern language
  50. …not depriving users of control when they know better than the type checker/lifetime analysis. [1]: https://github.com/ziglang/zig/issues/782 [2]: https://github.com/ziglang/zig/issues/2301
    comment by nyberg · 2022-01-17 · in Failing to Learn Zig via Advent of Code