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
-
…} } 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 -
…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 -
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 -
Zig does not have varargs. They were removed in favor of anonymous structs/tuples. See https://github.com/ziglang/zig/issues/208#issuecomment-39377... .
comment by edflsafoiewq · 2021-01-03 · in Zig in 30 Minutes -
…the linker invocation with `--verbose-link` on the end of that. The issue tracking the problem is: https://github.com/ziglang/zig/issues/7133
comment by grayrest · 2020-12-20 · in How Shopify Uses WebAssembly Outside of the Browser -
…of this would be compiling stuff to GPUs, e.g. SPIR-V. Such things are planned but not implemented. https://github.com/ziglang/zig/issues/2683 * Things that will never be in scope. An example of this would be code obfuscation, which is a…
comment by AndyKelley · 2020-12-14 · in Zig 0.7.1 Released – 69 bugs fixed -
> I can't find the link Here you go! https://github.com/ziglang/zig/issues/6378
comment by AndyKelley · 2020-12-13 · in Zig 0.7.1 Released – 69 bugs fixed -
Another example, Zig landed io_uring in the std lib a month ago: https://github.com/ziglang/zig/pull/6356 I'm also really excited by how you can use io_uring to power everything (fs, networking etc.) with one easy api and a single-threaded…
comment by jorangreef · 2020-11-27 · in How io_uring and eBPF Will Revolutionize Programming in Linux -
Thanks. Now searching through issues I see: https://github.com/ziglang/zig/issues/5246 and the most recent entry (Sep 2): "The plan for this is now to, at some strategic moment, utilize the C backend of stage2 to do a one time thing where…
comment by acqq · 2020-11-10 · in Zig 0.7.0 Release Notes -
…bugs in that C/C++ code. Worth noting that UB is also checked in ReleaseSafe mode. Related issue: https://github.com/ziglang/zig/issues/2301
comment by xandroo · 2020-11-08 · in Zig 0.7.0 tagged -
https://github.com/facebook/folly https://github.com/ziglang/zig
comment by latenightcoding · 2020-10-28 · in Ask HN: Good C++ code bases to read? -
…and could be compiled to C code. Zig will eventually have this feature. It is a work-in-progress: https://github.com/ziglang/zig/blob/master/src/codegen/c.zig
comment by Jayschwa · 2020-10-21 · in Assorted Thoughts on Zig and Rust -
I believe zig does not intend to implement this eg https://github.com/ziglang/zig/issues/2479#issuecomment-5709... Naming conventions seem like the way to go.
comment by jamii · 2020-10-20 · in Assorted Thoughts on Zig and Rust -
…and anyone is free to start their own space, as stated in the Community wiki page of the project https://github.com/ziglang/zig/wiki/Community So when it comes to Discord servers, at the moment of writing there are two listed in that…
comment by kristoff_it · 2020-10-20 · in Assorted Thoughts on Zig and Rust -
…this in the Zig math tests, where it tests calling the same function at both comptime and runtime: https://github.com/ziglang/zig/blob/33c4ad7f3a79aad5d7ea481a...
comment by dinglejungle · 2020-10-20 · in Assorted Thoughts on Zig and Rust -
…to the people who have opened pull requests on Zig and help them get their code merged. [1]: https://github.com/ziglang/zig/projects/3
comment by AndyKelley · 2020-10-20 · in Assorted Thoughts on Zig and Rust -
Yes, but eventually, no https://github.com/ziglang/zig/wiki/FAQ#why-does-zig-force-m...
comment by steveklabnik · 2020-10-20 · in Assorted Thoughts on Zig and Rust -
…consumers up for DOS attacks with malformed utf-8 inputs. EDIT: DOS vulnerability is still there ( https://github.com/ziglang/zig/blob/master/lib/std/unicode.z... , PR to fix that was closed https://github.com/ziglang/zig/pull/4929 ). I…
comment by _u9xp · 2020-10-20 · in Assorted Thoughts on Zig and Rust -
Zig has high interoperability with C and plans to have a C backend as well. https://github.com/ziglang/zig/issues/3772
comment by AnIdiotOnTheNet · 2020-10-20 · in Assorted Thoughts on Zig and Rust -
…for me. I've had a few small side projects I wanted to do which involved exposing an API. (1) https://github.com/ziglang/zig/issues/910 (2) https://github.com/ziglang/zig/issues/2007
comment by latch · 2020-10-20 · in Assorted Thoughts on Zig and Rust -
For the time being, https://github.com/ziglang/zig/issues/2018
comment by pjmlp · 2020-09-29 · in Zig's New Relationship with LLVM -
…that I see on the download page is: >Releases >You can also [install Zig from a package manager.]( https://github.com/ziglang/zig/wiki/Install-Zig-from-a-Packa... ) Going by the AUR package script and the table in the wiki itself, those…
comment by Arnavion · 2020-09-28 · in Zig's New Relationship with LLVM -
…that some aspects will change. E.g. I'm in favour of some of the (more minimal) suggestions here: https://github.com/ziglang/zig/issues/1669
comment by pron · 2020-09-28 · in Zig's New Relationship with LLVM -
…a design principle of Zig's, and not just the current state of the project? @andrewrk's comments at https://github.com/ziglang/zig/issues/130 lead me to believe that it's still undecided. (To be clear, I don't use Zig, yet.)
comment by creata · 2020-09-28 · in Zig's New Relationship with LLVM -
…bike shedding Zig 1.0 won't have this restrictions anymore. More information can be found here: https://github.com/ziglang/zig/wiki/FAQ#why-does-zig-force-m... https://github.com/ziglang/zig/issues/544
comment by ikskuh · 2020-09-28 · in Zig's New Relationship with LLVM -
…always detect use-after-free even with all safety flags on. It seems progress is being made though. https://github.com/ziglang/zig/issues/3180
comment by nyanpasu64 · 2020-09-28 · in Zig's New Relationship with LLVM -
…at https://ziglearn.org/ immediately fails with the installable zig binary from Arch (0.6.0) due to https://github.com/ziglang/zig/issues/5683 I'd never heard of zig until now, but as a community having top level "how to get started"…
comment by gravitas · 2020-09-28 · in Zig's New Relationship with LLVM -
Quick bootstrapping is one of the goals for 1.0. Related issue: https://github.com/ziglang/zig/issues/6378
comment by kristoff_it · 2020-09-28 · in Zig's New Relationship with LLVM -
Also relevant concerning the "No 5" contributor, Mr. Tate: https://github.com/ziglang/zig/issues/1530 That link is what the statement references as a sign of Mr. Tate's "flawed technical arguments". I'll admit I'm an outsider and a bit…
comment by mkeedlinger · 2020-09-16 · in Statement Regarding the Zen Programming Language -
…I immediately reverted the commit in question[1] and then I fixed the bug independently[2]. [1]: https://github.com/ziglang/zig/commit/8ed88280a62f2a400d00b5... [2]: https://github.com/ziglang/zig/commit/9050a07540b7387dade818...
comment by AndyKelley · 2020-09-15 · in Statement Regarding the Zen Programming Language -
Here's one example: https://github.com/ziglang/zig/pull/2701
comment by ifreund · 2020-09-15 · in Statement Regarding the Zen Programming Language -
Relevant: https://github.com/ziglang/zig/commit/3ca4925709ac6369391eb4...
comment by jhardy54 · 2020-09-15 · in Statement Regarding the Zen Programming Language -
…one in version 0.8.0, indicatively 6 months from now. If you want to help speed the development up: https://github.com/ziglang/zig to contribute https://github.com/sponsors/ziglang (or email us at donations@ziglang.org) to donate
comment by kristoff_it · 2020-09-15 · in Statement Regarding the Zen Programming Language -
A simple search on github will show what I worked on: https://github.com/ziglang/zig/search?q=author%3Akristate&un...
comment by kristopher · 2020-09-15 · in Statement Regarding the Zen Programming Language -
On whose authority was https://github.com/ziglang/zig/pull/2701 made, and what are the implications for the Zig project now that the referenced commit ( https://github.com/ziglang/zig/commit/aa60d2a688c965dcccf8e2... ) is part of the…
comment by kstenerud · 2020-09-15 · in Statement Regarding the Zen Programming Language -
Here is a proposal for cleaner error handling, using named catch blocks: https://github.com/ziglang/zig/issues/5421
comment by networkimprov · 2020-08-27 · in Interview with Zig language creator Andrew Kelley [video] -
(Small copy past error here, you posted the same link twice.) Regarding https://github.com/ziglang/zig/pull/5998 here we're exactly in the realm of C, changing the allocator with a custom one with additional bookkeeping to check for memory…
comment by littlestymaar · 2020-08-27 · in Interview with Zig language creator Andrew Kelley [video] -
> https://github.com/ziglang/zig/pull/5998 TBD :) But here's one way that's currently being tried: https://github.com/ziglang/zig/pull/5998
comment by pron · 2020-08-27 · in Interview with Zig language creator Andrew Kelley [video] -
…Zig goes further than that. In particular it just added a safe allocator suitable for production, https://github.com/ziglang/zig/pull/5998 edit: For more details, see https://ziglang.org/#Performance-and-Safety-Choose-Two
comment by azakai · 2020-08-27 · in Interview with Zig language creator Andrew Kelley [video] -
…accepted hard tabs, then in practice, there would be accidental mixing of tabs and spaces. [1]: https://github.com/ziglang/zig/wiki/FAQ#why-does-zig-force-m... [2]: https://github.com/ziglang/zig/issues/544g
comment by nyberg · 2020-07-16 · in Announcing The Zig Software Foundation -
You can see the planned releases in the milestones on GitHub: https://github.com/ziglang/zig/milestones I would say at least two more years then.
comment by schroffl · 2020-07-12 · in Announcing The Zig Software Foundation