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. …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
  2. …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
  3. 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
  4. …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
  5. Yes: https://github.com/ziglang/zig/milestones
    comment by squeek502 · 2021-12-21 · in Zig 0.9.0
  6. 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
  7. …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
  8. …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
  9. 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
  10. …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
  11. ▲ 105
    Zig: Drop MinGW-w64
    story by goranmoomin · 2021-12-19 · 34 comments
  12. …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
  13. 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…
  14. No it doesn't. https://github.com/ziglang/zig/issues/782
    comment by lenkite · 2021-12-10 · in Sayonara, C++, and Hello to Rust
  15. 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
  16. …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)
  17. …and such can still happen because of programmer error in well-formed zig programs. see also: https://github.com/ziglang/zig/issues/2301
  18. 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
  19. …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?
  20. ? https://github.com/ziglang/zig
  21. …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…
  22. Andrew plans to audit the zig stdlib before the 1.0 release to fix those issues: https://github.com/ziglang/zig/issues/1629
  23. …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…
  24. …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…
  25. …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
  26. …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
  27. 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
  28. 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
  29. 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…
  30. 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)
  31. …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)
  32. …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
  33. …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
  34. …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
  35. 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
  36. …but I think you could wrap it pretty easily in a struct of your own if you needed that. [0] https://github.com/ziglang/zig/blob/master/lib/std/unicode.z...
    comment by losvedir · 2021-09-08 · in Maintain It with Zig
  37. Probably related to the following: https://github.com/ziglang/zig/issues/3180
    comment by sigzero · 2021-09-08 · in Maintain It with Zig
  38. …been using Zig for a month and I am still positively surprised so he must be onto something. [0]: https://github.com/ziglang/zig/blob/master/lib/std/json.zig#...
    comment by skywal_l · 2021-09-08 · in Maintain It with Zig
  39. There's a discussion about this here: https://github.com/ziglang/zig/issues/2647
    comment by dralley · 2021-09-07 · in Looking into Odin and Zig
  40. “Adding everything” is definitely not a part of Zig’s philosophy. https://github.com/ziglang/zig/issues/130#issuecomment-70601... > However, at this point the plan is to not add an additional dynamic dispatch language feature.
    comment by judofyr · 2021-08-28 · in Weird Languages
  41. …safe languages Zig is a nice improvement over C, but it is not safe. There is work in progress ( https://github.com/ziglang/zig/issues/2301 ), but from what I can tell, key details are still to be decided, including the classes of errors…
    comment by ojeda · 2021-08-21 · in The Janet Programming Language
  42. …C/C++ easier we might see a Zig package manager making C/C++ packaging easier too. [0] https://github.com/ziglang/zig/issues/943
    comment by skywal_l · 2021-08-19 · in C++20 Modules with GCC11
  43. …and Zig is very much opposed to both. Non-capturing anonymous functions expressions will be added ( https://github.com/ziglang/zig/issues/1717 ), while a limited form of closure is being considered ( https://github.com/ziglang/zig/issues/69…
    comment by pron · 2021-08-10 · in Zig Pathtracer
  44. …similar to this earlier - there is actually a quite cool proposal for something like this here now: https://github.com/ziglang/zig/issues/8973
  45. They're discussing this in https://github.com/ziglang/zig/issues/910 (server) and https://github.com/ziglang/zig/issues/2007 (client).
    comment by jks · 2021-08-07 · in Looking into Zig
  46. …the error set of the current function to not include the handled ones. Here are a couple examples: https://github.com/ziglang/zig/blob/7d0de54ad44832589379a4bc... You get compile errors if you try to handle an impossible error, or don't…
    comment by AndyKelley · 2021-08-07 · in Looking into Zig
  47. > Can it be used for c++ code? Yup! https://github.com/ziglang/zig/commit/db17c0d88c44183b306099... > Also we build LLVM tip of tree from scratch... I would have also thought it would be non-trivial (Julia uses LLVM and has some…
  48. …etc) for for the target, then set them in the current env ("CC=zig-cc", "CXX=zig-c++") [1]. [0]: https://github.com/ziglang/zig/issues/8716 [1]: https://github.com/ziglang/zig/issues/8973
  49. …https://github.com/Hejsil/zig-clap Also this pattern was also mentioned in the issue you mentioned: https://github.com/ziglang/zig/issues/2647#issuecomment-5898... The advantage of this system is that the caller can decide whether error…
  50. …an allocation for errors, especially given that error handling is generally not the hot path. [0]: https://github.com/ziglang/zig/issues/2647 (among other issues)