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. …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
  2. …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...
  3. …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
  4. …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
  5. …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
  6. …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
  7. 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
  8. Correction: https://github.com/ziglang/zig/issues/10018
  9. There is an open issue for something like `cargo test` https://github.com/ziglang/zig/issues/10018
  10. …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...
  11. …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…
  12. …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...
  13. …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...
  14. …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]:…
  15. …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,…
  16. …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…
  17. …I'd recommend sticking to the current FAQ from 2021 which has a section dedicated to this question: https://github.com/ziglang/zig/wiki/FAQ#why-does-zig-force-m... as this is the fully current and authoritative answer on the status of tab…
    comment by zamadatix · 2021-12-21 · in Zig 0.9.0
  18. …compiler as operations on Vector types aren't explicitly tied to particular CPU instructions. 1: https://github.com/ziglang/zig/issues/903#issuecomment-45950... 2: https://ziglang.org/documentation/master/#Vectors 3:…
    comment by bnprks · 2021-12-21 · in Zig 0.9.0
  19. Please see https://github.com/ziglang/zig/issues/544#issuecomment-36396... and https://github.com/ziglang/zig/issues/663 . In particular, `For every codepoint of zig source code, it is an error for the codepoint to be one of U+0000-U+0009,…
    comment by Vendan · 2021-12-21 · in Zig 0.9.0
  20. …point. It would not be anything quite like the Rust borrow checker but I think would be a big help. https://github.com/ziglang/zig/issues/782
    comment by jeremyjh · 2021-12-21 · in Zig 0.9.0
  21. Yes: https://github.com/ziglang/zig/milestones
    comment by squeek502 · 2021-12-21 · in Zig 0.9.0
  22. See https://github.com/ziglang/zig/wiki/FAQ#why-does-zig-force-m... In a nutshell, what you're currently using is the stage 1 compiler, aka the bootstrapping compiler to compile the official zig compiler going forward. zig fmt is…
    comment by lhorie · 2021-12-21 · in Zig 0.9.0
  23. …between things being marked unused and actually being used, and improving tooling integration. [1]: https://github.com/ziglang/zig/issues/10245
    comment by AndyKelley · 2021-12-20 · in Zig 0.9.0
  24. …me from using Zig. I look forward to 1.0, which will hopefully have proper strings. [0] [0]: https://github.com/ziglang/zig/issues/234
    comment by vladharbuz · 2021-12-20 · in Zig 0.9.0
  25. I have no fear of abysses: https://github.com/ziglang/glibc-abi-tool/ https://github.com/ziglang/zig/blob/master/tools/gen_stubs.z... bring it on
    comment by AndyKelley · 2021-12-19 · in Zig: Drop MinGW-w64
  26. …one argument to the right. The same pointer must be returned by the callee in RAX. Isn't this what https://github.com/ziglang/zig/issues/9998#issuecomment-9970... claims to be undocumented?
    comment by anonymfus · 2021-12-19 · in Zig: Drop MinGW-w64
  27. …the the closest thing to RAII is this proposal, but there is no guarantee that it will be accepted. https://github.com/ziglang/zig/issues/782
  28. Some context: In master branch of Zig right now (before https://github.com/ziglang/zig/pull/10330 is merged), status quo: $ cat ../lib/libc/glibc/*.txt | wc -c 205219 $ cat ../lib/libc/glibc/*.txt | xz | wc -c 22976 Zig supports targeting…
  29. No it doesn't. https://github.com/ziglang/zig/issues/782
    comment by lenkite · 2021-12-10 · in Sayonara, C++, and Hello to Rust
  30. They seem to be almost ready to make a new 0.9.0 release, by the way: https://github.com/ziglang/zig/milestone/11
    comment by xvilka · 2021-12-06 · in Zig Performance Tracking Dashboard
  31. …in Zig, in case you want a still-maintained, up-to-date file. It's just called "windows_sdk.cpp". https://github.com/ziglang/zig/blob/master/src/windows_sdk.c...
    comment by AndyKelley · 2021-11-24 · in Microsoft_craziness.h (2018)
  32. …and such can still happen because of programmer error in well-formed zig programs. see also: https://github.com/ziglang/zig/issues/2301
  33. Zig is working on hot reloading, needs compiler and linker level support. https://github.com/ziglang/zig/issues/68 That issue has some links to people doing it in C/C++.
    comment by ximeng · 2021-11-11 · in Paradox of the perfect code editor
  34. …have created for the very purpose of ensuring memory safety with unrestricted aliasing.) [1]: https://github.com/ziglang/zig/issues/6396
    comment by pcwalton · 2021-11-05 · in What memory model should Rust use?
  35. ? https://github.com/ziglang/zig
  36. …need newer systems programming languages that don't have an answer for use-after-free in safe code. https://github.com/ziglang/zig/issues/2301 https://github.com/ziglang/zig/issues/1966 Naturally I have taken the time, and did not come out…
  37. Andrew plans to audit the zig stdlib before the 1.0 release to fix those issues: https://github.com/ziglang/zig/issues/1629
  38. …yet, at least in my experience from trying it earlier this year. I ran into a compiler crash: https://github.com/ziglang/zig/issues/7865 . I attempted to fix the compiler crash myself ( https://github.com/ziglang/zig/pull/8372 ), and I…
  39. …with raylib for my next project. The show stopper was that C ABI compatibility is not yet complete: https://github.com/ziglang/zig/issues/1481 I could have probably worked around it but decided to go the C and Lua for scripting route for…
  40. …more questions you can pop into irc or the discord, they'll have better resources at the ready. https://github.com/ziglang/zig/wiki/Community
  41. …I last checked; ha. Although, it's not clear to me whether it's intended for end-user use yet. https://github.com/ziglang/zig/releases/tag/0.8.0
    comment by dleslie · 2021-10-07 · in We moved from Pony to Rust
  42. Zig's stage2 compiler has a C backend https://github.com/ziglang/zig/blob/master/src/codegen/c.zig
    comment by jedisct1 · 2021-10-07 · in We moved from Pony to Rust
  43. At the end of the post is a link to a Github issue to "support compiling and linking c++ code": https://github.com/ziglang/zig/issues/4786 It was closed in March of 2020.
    comment by SloopJon · 2021-10-06 · in LLVM 13.0
  44. Zig appears to have a proposed solution to this similar to your option 1, move recursion to the heap. https://github.com/ziglang/zig/issues/1639 They're also looking at static analysis of the maximum stack depth which might help in some…
  45. To answer myself. Zig doesn't really do separate compilation: https://github.com/ziglang/zig/issues/233
    comment by gpderetta · 2021-09-27 · in What color is your function? (2015)
  46. …something like: if (!std.event.loop.instance) @compileError("X function only supports async"); [1]: https://github.com/ziglang/zig/issues/1778
    comment by aeldidi · 2021-09-27 · in What color is your function? (2015)
  47. …use case that computed goto tries to solve is addressed with labeled continue on a switch [1] [1]: https://github.com/ziglang/zig/issues/8220
  48. …like 10 years later. Zig moved in the opposite direction. It had one at first, and then removed it: https://github.com/ziglang/zig/issues/630
  49. …times, and includes interesting examples from the stdlib where resources were not closed properly: https://github.com/ziglang/zig/issues/782
    comment by llimllib · 2021-09-10 · in Clearing up Myths about Ada
  50. There’s this helpful guide: https://github.com/ziglang/zig/blob/master/CONTRIBUTING.md Though I’m interested in hearing from the creator itself as well.
    comment by pryelluw · 2021-09-09 · in Maintain It with Zig