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
20082026
-
…very clear plans[0] for a 1.0 release. That's not 0ver, it's just the beta stage of semver. [0] https://github.com/ziglang/zig/milestone/2
comment by sramsay64 · 2025-06-18 · in Bzip2 crate switches from C to 100% Rust -
…and then just has a nice convenient tagged union (`enum` in Rust terms) value to work with. [0]: https://github.com/ziglang/zig/blob/dd75e7bcb1fe142f4d60dc2d... [1]: https://github.com/ziglang/zig/blob/dd75e7bcb1fe142f4d60dc2d...
comment by mlugg · 2025-06-13 · in Rust compiler performance -
…ttps://github.com/rust-lang/rust/tree/1.87.0/compiler/rustc... (main logic seems to be in expr.rs) vs https://github.com/ziglang/zig/blob/0.14.1/lib/std/zig/Parse... Again, for those who wish to form their own opinions.
comment by AndyKelley · 2025-06-12 · in Rust compiler performance -
…about whether this style of programming is easier or harder than it would be in other languages: https://github.com/ziglang/zig/blob/0.14.1/lib/std/zig/token...
comment by AndyKelley · 2025-06-12 · in Rust compiler performance -
…, but that doesn't mean async is "never coming back", nor that you'll be waiting "till 2028". [0]: https://github.com/ziglang/zig/issues/23446 [1]: https://github.com/ziglang/zig/blob/async-await-demo/lib/std...
comment by mlugg · 2025-06-09 · in Self-hosted x86 back end is now default in debug mode -
Relevant: https://github.com/ziglang/zig/issues/4055#issuecomment-1646...
comment by squeek502 · 2025-06-09 · in Self-hosted x86 back end is now default in debug mode -
18s eh? we're looking at 15s in https://github.com/ziglang/zig/pull/24124 oh, and by the way that includes the package manager, so the compile time accounts for: * HTTP * TLS (including aegis-128l, aegis-256, aes128-gcm, aes256-gcm,…
comment by AndyKelley · 2025-06-09 · in Self-hosted x86 back end is now default in debug mode -
…other than Debug mode is a goal, but a far-future goal. I believe the most relevant links are https://github.com/ziglang/zig/issues/16270 and https://github.com/orgs/ziglang/projects/2/views/1?pane=issu... (as you can see, nothing is…
comment by squeek502 · 2025-06-09 · in Self-hosted x86 back end is now default in debug mode -
Isn't this one of the preconditions for bringing async/await back to Zig? https://github.com/ziglang/zig/wiki/FAQ#what-is-the-status-o...
comment by foresto · 2025-06-09 · in Self-hosted x86 back end is now default in debug mode -
…repos shows a pretty big difference between the nature of the "segfault" issues reported. yikes... https://github.com/ziglang/zig/issues/23556
comment by VWWHFSfQ · 2025-06-09 · in Self-hosted x86 back end is now default in debug mode -
…for a better development experience. Almost every day there's something being worked on - like https://github.com/ziglang/zig/pull/24124 just now. I know that Zig had some plans in the past to also work on hot code swapping. At this rate…
comment by Retro_Dev · 2025-06-08 · in Self-hosted x86 back end is now default in debug mode -
…x86 backend makes for a significantly better debugging experience with this zig-aware lldb fork: https://github.com/ziglang/zig/wiki/LLDB-for-Zig I don't recall whether it supports stepping through comptime logic at the moment; that was…
comment by AndyKelley · 2025-06-08 · in Self-hosted x86 back end is now default in debug mode -
…its weakest points IMHO. Zig is hostile to encapsulation. You cannot make struct members private: https://github.com/ziglang/zig/issues/9909#issuecomment-9426... Key quote: > The idea of private fields and getter/setter methods was…
comment by haberman · 2025-06-07 · in Low-Level Optimization with Zig -
…x86_64 backend (which is coincidentally becoming default for debugging on linux right now - https://github.com/ziglang/zig/pull/24072 ) has full support for most (all?) builtins. I don't think that we need to worry about that. It's an…
comment by Retro_Dev · 2025-06-07 · in Low-Level Optimization with Zig -
…As for arithmetic, I agree that it is a bit too verbose at the moment. Hopefully some variant of https://github.com/ziglang/zig/issues/3806 will fix this. I fully agree with your TL;DR there, but would emphasize that gaining the same…
comment by Retro_Dev · 2025-06-07 · in Low-Level Optimization with Zig -
https://github.com/ziglang/zig/issues/544#issuecomment-61807... > In order to simplify everything, tabs are not allowed. Spaces are necessary; we can't ban spaces. They seem to be open to the alternative but not to a solution that isn't…
comment by alpaca128 · 2025-06-01 · in Why Use Structured Errors in Rust Applications? -
Zig solved this by not having a string type at all and not shipping full Unicode support in std: https://github.com/ziglang/zig/issues/234#issuecomment-27630... .
comment by ivanjermakov · 2025-06-01 · in Show HN: A new programming language inspired by Go, no LLVM -
…we'll start by changing all => unreachable to => return error.Unexpected in std.posix and std.os. https://github.com/ziglang/zig/issues/6389#issuecomment-2895...
comment by Zambyte · 2025-05-22 · in Using unwrap() in Rust is Okay (2022) -
…however, so I am opposed to a blanket modification of all EINVAL code sites without cause. Source: https://github.com/ziglang/zig/issues/6925#issuecomment-7214...
comment by Zambyte · 2025-05-22 · in Using unwrap() in Rust is Okay (2022) -
…there is also Slack, there is also mailing list, libera IRC, Telegram, QQ, Zulip... https://github.com/ziglang/zig/wiki/Community
comment by karel-3d · 2025-05-02 · in Reflecting on a Year of Gamedev in Zig -
…all of the time. Any language can be claimed to be buggy or minor issues taken out of context. [0] https://github.com/ziglang/zig/issues
comment by baranul · 2025-04-28 · in Ask HN: Memory-safe low level languages? -
Yep, there's the range https://github.com/rcalixte/libqt6zig to https://microzig.tech and soon https://github.com/ziglang/zig/issues/2683 then follow-up issues are resolved.
comment by tauoverpi · 2025-04-24 · in C++26: more constexpr in the core language -
…https://zig.news/kristoff/struct-of-arrays-soa-in-zig-easy-i... . If you read the implementation ( https://github.com/ziglang/zig/blob/master/lib/std/multi_arr... ) the SoA is an elaborately specialized type, parameterized on a struct type…
comment by msteffen · 2025-04-21 · in Things Zig comptime won't do -
…not a thing and if I catch you saying that I’m gonna bonk you with an Intel optimization manual. " https://github.com/ziglang/zig/issues/20690
comment by cwood-sdf · 2025-04-15 · in What the hell is a target triple? -
…implementation [2]. [1]: https://github.com/search?q=repo%3Atokio-rs%2Ftokio%20unsafe... [2]: https://github.com/ziglang/zig/issues/2414
comment by AndyKelley · 2025-04-14 · in Zig's new LinkedList API (it's time to learn fieldParentPtr) -
…learned about it and prompted me to investigate whether Zig also suffers from the same issue. [1]: https://github.com/ziglang/zig/issues/694#issuecomment-15674... [2]: https://github.com/llvm/llvm-project/issues/54964 [3]:…
comment by SkiFire13 · 2025-03-30 · in Tail Call Recursion in Java with ASM (2023) -
…cross-compile CGO to macOS [0], granted you link the appropriate macOS frameworks and SDK [1]. [0]: https://github.com/ziglang/zig/issues/20689 , https://github.com/ziglang/zig/issues/21721 [1]: https://github.com/tpoechtrager/osxcross
comment by ezekg · 2025-03-05 · in Zig-0.14.0 Landed -
…to do that. As someone who has spent [an incredible amount of time reviewing other people's code]( https://github.com/ziglang/zig/pulls?q=is%3Apr+is%3Aclosed ), my perspective is that reviewing code is fundamentally slower than writing it…
comment by AndyKelley · 2025-03-02 · in Hallucinations in code are the least dangerous form of LLM mistakes -
…on practicality. Example 3 reads very odd, an over-approximated upper stack bound is very possible https://github.com/ziglang/zig/issues/157#issuecomment-76395... and tighter computation with advanced analysis as well. Example…
comment by matu3ba · 2025-02-15 · in NASA has a list of 10 rules for software development -
…instance, Zig is written in zig and bootstraps from a binary wasm file which is translated to C: https://github.com/ziglang/zig/tree/master/stage1 Golang has an even more complicated bootstrapping procedure requiring to build each…
comment by foobazfoo · 2025-02-08 · in A tale of distros joining forces for a common goal: reproducible builds [video] -
…There wouldn't be countless issues about it in the Zig repository if it were that simple. See https://github.com/ziglang/zig/issues/17198 I'm simply going to quote one of the comments from the linked GitHub issue: > generic code is hard.…
comment by YuukiRey · 2025-02-05 · in Zig; what I think after months of using it -
…being equipped to handle Unicode is the entire problem. what? unicode is in the standard library. https://github.com/ziglang/zig/blob/master/lib/std/unicode.z...
comment by throwawaymaths · 2025-02-05 · in Zig; what I think after months of using it -
https://github.com/ziglang/zig/blob/master/lib/std/unicode.z... wdym?
comment by ulbu · 2025-02-05 · in Zig; what I think after months of using it -
…. On the other hand zig errors can't have any associated value ( https://github.com/ziglang/zig/issues/2647 ). I often find this requires me to store those values in some other big sum type somewhere which leads to all the
comment by jamii · 2025-02-05 · in Zig; what I think after months of using it -
…both speed and incremental compilation. That still looks to be the case due to no linker support. https://github.com/ziglang/zig/issues/21165
comment by modernerd · 2025-02-04 · in Roc rewrites the compiler in Zig -
…than in other languages (2) (1) https://gist.github.com/karlseguin/1d189f683797b0ee00cdb8186... (2) https://github.com/ziglang/zig/issues/17985
comment by latch · 2025-02-02 · in In Zig, what's a writer? -
…the internet, especially not a webserver. [0] : https://news.ycombinator.com/item?id=41720995 [1] : https://github.com/ziglang/zig/issues/16467#issuecomment-164...
comment by bmacho · 2025-01-23 · in Bun 1.2 Is Released -
…it is struct-of-arrays, so walking the tree is even more cache friendly. For AST see: https://github.com/ziglang/zig/blob/master/lib/std/zig/Ast.z...
comment by dmagyari · 2025-01-10 · in Flattening ASTs and other compiler data structures (2023) -
Yes, please read the comment linked at the issue description: https://github.com/ziglang/zig/issues/16270#issuecomment-161...
comment by brabel · 2025-01-01 · in I wrote a Game Boy Advance game in Zig -
Have you been following https://github.com/ziglang/zig/issues/16270 ?
comment by cgh · 2024-12-31 · in I wrote a Game Boy Advance game in Zig -
…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 -
…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 -
…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 -
…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 -
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 -
…std.Thread.Pool API respect the Linux jobserver and macOS dispatcher automatically out of the box: https://github.com/ziglang/zig/issues/20274
comment by slimsag · 2024-11-12 · in Bus Number – The GitHub plugin my coworkers asked me not to write -
There's an issue tracking that: https://github.com/ziglang/zig/issues/3806
comment by samatman · 2024-11-09 · in Zig's (.{}){} Syntax -
…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 -
Welcome to 2016. https://github.com/ziglang/zig/blob/5f0bfcac24036e1fff0b2bed...
comment by AndyKelley · 2024-11-07 · in Linux Syscall Support