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. …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
  2. …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
  3. …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
  4. 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
  5. …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
  6. 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?
  7. …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?
  8. 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?
  9. …read. Even a primitive editor with primitive highlighting can make the syntax painless. Reasoning: https://github.com/ziglang/zig/issues/162
  10. 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
  11. …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)
  12. …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
  13. …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
  14. …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
  15. …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
  16. 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
  17. …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…
  18. …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…
  19. 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/
  20. ▲ 752
    Zig self hosted compiler is now capable of building itself
    story by marcthe12 · 2022-04-16 · 274 comments
  21. …[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
  22. …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...
  23. ▲ 27
    MultiArrayList: Zig type that auto-SoAs your structs
    story by cropcirclbureau · 2022-03-09 · 2 comments
  24. …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
  25. …(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
  26. 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
  27. 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…
  28. …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
  29. …* 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
  30. …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
  31. …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
  32. …- 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…
  33. …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
  34. …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
  35. …of a function then finding it is in a sea of text is very difficult and not fun. Zig ArrayList: https://github.com/ziglang/zig/blob/master/lib/std/array_lis... C++ Vector: https://en.cppreference.com/w/cpp/container/vector Rust Vec:…
    comment by forrestthewoods · 2022-01-17 · in Failing to Learn Zig via Advent of Code
  36. …is also the reason why I gave up on it for now. But I'm sure it will improve over time. [1] https://github.com/ziglang/zig/blob/79628d48a4429818bddef2e8...
  37. …The ecosystem for zig is insignificant now and a stable release would help the language. [1] https://github.com/ziglang/zig/issues/234 [2] https://about.sourcegraph.com/podcast/andrew-kelley/
    comment by megumax · 2022-01-17 · in Failing to Learn Zig via Advent of Code
  38. …a good example being > Bit-shifting is a monumental pain in the ass. Yes, it indeed is. See: https://github.com/ziglang/zig/issues/7605 Ok, so, here's my advice to forrestthewoods if you're ever going to try Zig again: [1] Interact more…
    comment by kristoff_it · 2022-01-17 · in Failing to Learn Zig via Advent of Code
  39. …in the meantime. It also links to a page that explains how the standard library is structured: https://github.com/ziglang/zig/wiki/How-to-read-the-standard...
    comment by kristoff_it · 2022-01-17 · in Failing to Learn Zig via Advent of Code
  40. …now. Zig has a few peculiarities, it's not stable yet, you kind of have to follow it's development. https://github.com/ziglang/zig/tree/master/lib/std
    comment by Comevius · 2022-01-17 · in Failing to Learn Zig via Advent of Code
  41. The Zig programming language approach to communications is a great example of what you advocate: https://github.com/ziglang/zig/wiki/Community
    comment by williamstein · 2021-12-28 · in Please don't use Discord for FOSS projects
  42. Correction: https://github.com/ziglang/zig/issues/10018
  43. There is an open issue for something like `cargo test` https://github.com/ziglang/zig/issues/10018
  44. …is a report from someone who tried using valgrind [2]. Yes, it doesn’t sound all that special. [1] https://github.com/ziglang/zig/blob/master/lib/std/valgrind.... [2] https://dev.to/stein/some-notes-on-using-valgrind-with-zig-3...
  45. …they haven't really settled on a desirable solution yet, but it's something they're hoping to add. https://github.com/ziglang/zig/issues/782 I work in games with C++ and we already do so much manual management and initialization+teardown…
  46. …at the top that links you to a wiki page that explains how the standard library is structured. https://github.com/ziglang/zig/wiki/How-to-read-the-standard...
  47. …any real sense. I will re-emphasize that I've not used it, so I cannot speak for its quality. [1]: https://github.com/ziglang/zig/blob/master/lib/std/unicode.z...
  48. …common ones I used. Was there something in particular you were looking for and didn't find? [1]: https://github.com/ziglang/zig/blob/master/lib/std/mem.zig#L... [2]: https://github.com/ziglang/zig/blob/master/lib/std/mem.zig#L... [3]:…
  49. …const x = blah;, so why are functions not const bar = function() {};? This may or may not happen: https://github.com/ziglang/zig/issues/8383 > Fixing the standard library documentation would be my biggest priority if I worked on Zig,…
  50. …functions not const bar = function() {};? Good question, there's an accepted proposal to fix this: https://github.com/ziglang/zig/issues/1717 > The builtin compiler macros (that start with @) are a bit confusing. Some of them have a…