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
-
…vectors and there has been discussion to rename it to something that reflects this more clearly. https://github.com/ziglang/zig/issues/7305
comment by Hoppetosse · 2021-07-15 · in Zig, Skia, Clojure, Geometry and the Japanese TV Show: ICFP Contest 2021 -
…you will have fewer cache misses. future languages will be able to suss this out at compile-time: https://github.com/ziglang/zig/blob/2ac769eab9b7dba4cd38e5de...
comment by dnautics · 2021-06-26 · in Understanding thread stack sizes and how Alpine is different -
…creates instances of the type. EDIT: Aaand shockingly, I'm not the first to come up with this idea: https://github.com/ziglang/zig/issues/782
comment by PoignardAzur · 2021-06-05 · in Zig 0.8.0 Release Notes -
I think GP means RAII, which is still an open area of discussion in Zig: https://github.com/ziglang/zig/issues/782 I'd love to see it if it can be implemented in a way that fits the language, but that remains to be seen.
comment by slimsag · 2021-06-05 · in Zig 0.8.0 Release Notes -
…Well, I guess I will admire the language from a distance but I am unlikely to use it practically. https://github.com/ziglang/zig/issues/782
comment by lenkite · 2021-06-05 · in Zig 0.8.0 Release Notes -
Re: strings, this is a thread about that topic: https://github.com/ziglang/zig/issues/234 It strikes me as a difference in opinion wrt at which level should strings be handled (zig folks saying it should be a userspace/stdlib concern,…
comment by lhorie · 2021-05-25 · in Advances of the Hare programming language compared to C -
…have a single leader. Zig on the other hand does have a single main contributor/maintainer/creator: https://github.com/ziglang/zig/graphs/contributors?from=2015...
comment by est31 · 2021-05-22 · in Rust heads into the kernel? -
…It is worth looking at all the serious bugs in deficiencies in the upcoming 0.8 milestone: https://github.com/ziglang/zig/milestone/10 This is not a criticism of Zig, nor is it an insinuation that Zig is unable to write correct software.…
comment by nicklecompte · 2021-05-22 · in Rust heads into the kernel? -
…investment either way (I had one use case, where I would slightly prefer the infix operation). https://github.com/ziglang/zig/issues/8204
comment by dnautics · 2021-05-13 · in Building an efficient and portable programming language with Zig -
…to be explicit. There's more at [0]. Side note: the proposal at [0] seems very close to [1]. [0]: https://github.com/ziglang/zig/issues/782 [1]: https://www.haskellforall.com/2013/06/the-resource-applicati...
comment by creata · 2021-05-13 · in Building an efficient and portable programming language with Zig -
…can be disabled with `-fno-sanitize=undefined` or by enabling optimizations with `-O2` or `-O3`. https://github.com/ziglang/zig/issues/4830#issuecomment-6054...
comment by ifreund · 2021-05-10 · in Adding ANSI C11 C compiler to D so it can import and compile C files directly -
…and first-class capability of zig (you can run it now, the issue isn't closed because it's an epic) https://github.com/ziglang/zig/issues/2457
comment by dnautics · 2021-05-07 · in Modern C and What We Can Learn from It [video] -
Sad but true. This is why I'm hopeful that Zig will add support for "constant time" blocks: https://github.com/ziglang/zig/issues/1776
comment by nemo1618 · 2021-05-05 · in Branchless Coding in Go -
…its stdlib? In any case, they have been refactoring the language parser to use SOA to great effect: https://github.com/ziglang/zig/pull/7920
comment by dnautics · 2021-05-03 · in The compiler will optimize that away -
Here's a related Zig proposal: https://github.com/ziglang/zig/issues/8220 Relevant section pasted here: > Other Possible Solution: Tail Calls > Tail calls solve this problem. Each switch prong would return foo() (tail call) and foo() at…
comment by AndyKelley · 2021-04-25 · in Parsing Protobuf at 2+GB/S: How I Learned to Love Tail Calls in C -
Is LLD on Mach-O considered stable? https://github.com/ziglang/zig/pull/8282 https://chromium.googlesource.com/chromium/src/+/refs/heads/...
comment by fomine3 · 2021-04-12 · in Initial M1 support merged into Linux SoC tree -
> no REPL Personally I don't find it necessary, but the proposal for REPL has been accepted: https://github.com/ziglang/zig/issues/596
comment by ttt0 · 2021-03-31 · in Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust -
▲ 3
Introduce labeled continue syntax inside a switch expressionstory by luu · 2021-03-31 · 0 comments
-
…is a very hard problem but it is in the Zig issues list and it will probably be worked on: https://github.com/ziglang/zig/issues/5725
comment by dnautics · 2021-03-27 · in A “Better C” Benchmark -
…reading them, they are both interesting): ------- "Improved handling of strings and unicode", https://github.com/ziglang/zig/issues/234 Andrew answer: > I'm not convinced that this is a language change rather than a standard library…
comment by dgellow · 2021-03-27 · in A “Better C” Benchmark -
…It's like some bizarro alternative universe, where ASCII or a bag of bytes is good enough... [1] https://github.com/ziglang/zig/issues/234
comment by coldtea · 2021-03-25 · in A “Better C” Benchmark -
…and obscured. Oh, don't worry about that :) [1] https://www.youtube.com/watch?v=NQgju_2mX-8 [2] https://github.com/ziglang/zig/wiki/Community [3] https://ziglang.org/documentation/master/std/ [4] https://kristoff.it/blog/zig-new-relationshi…
comment by kristoff_it · 2021-03-24 · in A “Better C” Benchmark -
…without automatic resource cleanup. A lot of people forget cleanup and destroy safety without RAII. https://github.com/ziglang/zig/issues/782 Zig is apparently a PL for folks with perfect memory who never make mistakes like those described…
comment by lenkite · 2021-03-23 · in How Safe Is Zig? -
https://github.com/ziglang/zig/pull/4929#issuecomment-649191... The bulk of the conversation happened in Discord around that time. Initial attempts to bring this up were met with "zig is perfect"-type conversation, none of which was very…
comment by _u9xp · 2021-03-22 · in How Safe Is Zig? -
…safety, hands down. I do want to note that the safety story in zig is [under active development]( https://github.com/ziglang/zig/projects/3 ) and will be worth checking back in on in a year or two and see what has changed :)
comment by AndyKelley · 2021-03-22 · in How Safe Is Zig? -
…to not have a computed goto language feature. More details here, with lots of fun godbolt links: https://github.com/ziglang/zig/issues/8220 [1]: https://godbolt.org/z/T3v881
comment by AndyKelley · 2021-03-13 · in Speed of Rust vs. C -
You can read more about it here: https://github.com/ziglang/zig/issues/2765
comment by lhorie · 2021-03-11 · in Zig, parser combinators, and why they're awesome -
…upfront in the other. Presumably this would not be an issue anymore once [0] is implemented. [0] https://github.com/ziglang/zig/issues/1006
comment by lhorie · 2021-03-11 · in Rust’s async isn’t colored -
…a ComptimeStringMap type for this use case which is used by the self hosted tokenizer for example. https://github.com/ziglang/zig/blob/master/lib/std/comptime_...
comment by ifreund · 2021-03-10 · in Zig, parser combinators, and why they're awesome -
…has been expanded into a full fledged implementation in the standard library! std.ComptimeStringMap https://github.com/ziglang/zig/blob/master/lib/std/comptime_...
comment by kristoff_it · 2021-03-10 · in Zig, parser combinators, and why they're awesome -
…computed at comptime since we already know the search space ahead of time! Really neat stuff. [0] https://github.com/ziglang/zig/issues/2647 [1] https://andrewkelley.me/post/string-matching-comptime-perfec...
comment by lhorie · 2021-03-10 · in Zig, parser combinators, and why they're awesome -
…will be left for loop unrolling and possibly in use with `inline switch` where it matters. [1]: https://github.com/ziglang/zig/issues/7224
comment by nyberg · 2021-03-07 · in Why I rewrote my Rust keyboard firmware in Zig: consistency, mastery, and fun -
…you say. (But shows great promise, I think!) [0] https://ziglang.org/documentation/0.7.1/#call [1] https://github.com/ziglang/zig/issues/1006
comment by losvedir · 2021-03-07 · in Why I rewrote my Rust keyboard firmware in Zig: consistency, mastery, and fun -
…a lot since its first iterations. There are still some breaking changes coming that you can find at https://github.com/ziglang/zig/issues . One of the cooler aspects of Zig's breaking changes is that its formatting tool can automatically…
comment by Hoppetosse · 2021-03-07 · in Why I rewrote my Rust keyboard firmware in Zig: consistency, mastery, and fun -
…of the pinned keyword proposed here should fix most if not all @fieldParentPtr() footguns https://github.com/ziglang/zig/issues/7769
comment by ifreund · 2021-03-07 · in Why I rewrote my Rust keyboard firmware in Zig: consistency, mastery, and fun -
Here's another example of the coolness of Zig's comptime code execution: https://github.com/ziglang/zig/commit/0808d98e10c5fea27cebf9... That's a generic container class (similar to vector in C++ or List in C#). But! With a twist! It…
comment by dilap · 2021-03-07 · in Why I rewrote my Rust keyboard firmware in Zig: consistency, mastery, and fun -
…} } If pins happen to be very sparse, one could switch from a basic array to a comptime hashmap: https://github.com/ziglang/zig/blob/master/lib/std/comptime_... There's also other ways of approaching the implementation depending on the…
comment by kristoff_it · 2021-03-07 · in Why I rewrote my Rust keyboard firmware in Zig: consistency, mastery, and fun -
…needed. That said proposals about adding support for error payloads are still open, so who knows. https://github.com/ziglang/zig/issues/2647 https://github.com/ziglang/zig/issues/7812 Existing pattern:…
comment by kristoff_it · 2021-03-07 · in Why I rewrote my Rust keyboard firmware in Zig: consistency, mastery, and fun -
▲ 8
Struct-of-arrays collection type in Zigstory by dilap · 2021-02-25 · 1 comment
-
…that the linker doesn't (yet) address the types of complex scenarios that rui talks about. [0] https://github.com/ziglang/zig/issues/1535#issuecomment-6784...
comment by lhorie · 2021-02-23 · in Mold: A Modern Linker -
I think this is the issue tracking memory safety in Zig: https://github.com/ziglang/zig/issues/2301
comment by Zababa · 2021-02-18 · in Mitigating Memory Safety Issues in Open Source Software -
…stdlib you can see how `os` corresponds to a different struct definition depending on the target: https://github.com/ziglang/zig/blob/master/lib/std/os.zig#L5...
comment by kristoff_it · 2021-02-13 · in Ziglings: Learn the Zig programming language by fixing tiny broken programs -
▲ 13
Ask HN: How can V compile 1M code lines/s while doing implicit type parsingstory by mardiyah · 2021-01-17 · 3 comments
-
There's a proposal for that https://github.com/ziglang/zig/issues/6965
comment by kristoff_it · 2021-01-16 · in Why Zig when there is already C++, D, and Rust? -
…in that search¹. I find the open and frank discussion of problem choices to be very refreshing. ¹ https://github.com/ziglang/zig/search?q=design+flaw&type=iss...
comment by JNRowe · 2021-01-16 · in Why Zig when there is already C++, D, and Rust? -
…and they're not necessarily opposed to an idea like that. I agree that could be a nice addition. https://github.com/ziglang/zig/issues/427
comment by hansvm · 2021-01-16 · in Why Zig when there is already C++, D, and Rust? -
…how practical that is for e.g. long running servers w/ many clients interesting discussion here: https://github.com/ziglang/zig/issues/3516
comment by dilap · 2021-01-16 · in Why Zig when there is already C++, D, and Rust? -
while zig's error handling is almost perfect, it's missing a way to return context w/ the error ( https://github.com/ziglang/zig/issues/2647 ) while the debug allocator can tell you at runtime about use-after-free or memory leaks, that's a…
comment by dilap · 2021-01-16 · in Why Zig when there is already C++, D, and Rust? -
…Yeah, that's definitely a reasonable way to do it, and actually Andrew gives an example of this: https://github.com/ziglang/zig/issues/2647#issuecomment-5898... (Andrew's example is slightly different in that rather than an explicit…
comment by dilap · 2021-01-04 · in Zig in 30 Minutes -
…to zig's goal of enabling the creation of perfect software. :-) I found this thread interesting https://github.com/ziglang/zig/issues/2647
comment by dilap · 2021-01-04 · in Zig in 30 Minutes