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
-
…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 -
▲ 3
Zon – object notation like JSON in Zigstory by begoon · 2024-11-29 · 0 comments
-
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 -
…to adopt this over libc, citing concerns about "libc not existing on certain configurations"[1] [1] https://github.com/ziglang/zig/issues/1840
comment by sedatk · 2024-11-07 · in Linux Syscall Support -
…this for instance (at least for x86_64 linux [0]) as a way to avoid having to link libc at all [0] https://github.com/ziglang/zig/blob/ee9f00d673f2bccddc2751c3...
comment by jcalabro · 2024-11-07 · in Linux Syscall Support -
…you can see it's calling the user defined main function and handling its return value / error. https://github.com/ziglang/zig/blob/2d888a8e639856e8cb6e4c6f... > Also, what happened to argv/argc? You can access argv with std.os.argv which…
comment by jiripospisil · 2024-10-22 · in Zig is everything I want C to be -
…choice to directly develop against a mostly undocumented NT-API instead of the Win32 API. [1]: https://github.com/ziglang/zig/issues/1840
comment by sebazzz · 2024-10-21 · in Introduction to Zig (a project-based book) -
…While browser aren't effected, this broke compatibility with at least Zig's HTTP client. => https://github.com/ziglang/zig/issues/21674 zig fetch does not work with sqlite.org
comment by MatthiasPortzel · 2024-10-13 · in CRLF is obsolete and should be abolished -
> And there's also the aliasing issue Plans to address this were shared just last week: https://github.com/ziglang/zig/issues/5973#issuecomment-2380...
comment by codethief · 2024-10-03 · in Pledging $300k to the Zig Software Foundation -
I believe these are the issues: https://github.com/golang/go/issues/52690 https://github.com/ziglang/zig/issues/14989
comment by dwattttt · 2024-10-02 · in The Fastest Mutexes -
…Zig, e.g. [0]). Two things: 1. People who link that issue often forget about Andrew's comments ( https://github.com/ziglang/zig/issues/16270#issuecomment-161... , https://github.com/ziglang/zig/issues/16270#issuecomment-161... , example:…
comment by cornstalks · 2024-10-02 · in Pledging $300k to the Zig Software Foundation -
…forced to code a certain way, why not just use Rust and get free memory safety out of it too? [0] https://github.com/ziglang/zig/issues/16270
comment by troad · 2024-10-02 · in Pledging $300k to the Zig Software Foundation -
That would be a good reason. The thing is that it is present in many distributions. https://github.com/ziglang/zig/wiki/Install-Zig-from-a-Packa... Perhaps the foundational distros are stricter.
comment by TZubiri · 2024-10-02 · in Pledging $300k to the Zig Software Foundation -
More info https://github.com/ziglang/zig/issues/16270#issuecomment-161...
comment by stevenhuang · 2024-09-25 · in The Python Package Index Should Get Rid of Its Training Wheels -
I raise you https://github.com/ziglang/zig/issues/20875 It is not entirely clear what any of this means for the future, and in any case, it keeps changing all the time. The promise to maintain LLVM support just applies to Zig code . That…
comment by kbolino · 2024-09-24 · in The Python Package Index Should Get Rid of Its Training Wheels -
…will it be shipping clang so you can build other code with it, they aren't removing LLVM support. https://github.com/ziglang/zig/issues/16270#issuecomment-205...
comment by sitkack · 2024-09-24 · in The Python Package Index Should Get Rid of Its Training Wheels -
Which doesn't mean what you're implying it means: https://github.com/ziglang/zig/issues/16270#issuecomment-161...
comment by kristoff_it · 2024-09-24 · in The Python Package Index Should Get Rid of Its Training Wheels -
Zig is divorcing itself from Clang: https://github.com/ziglang/zig/issues/16270
comment by kbolino · 2024-09-24 · in The Python Package Index Should Get Rid of Its Training Wheels -
…continue statements to target specific switch cases. Like computed-gotos in C. - Zig issue: https://github.com/ziglang/zig/issues/8220 - Release notes: https://github.com/ziglang/zig/pull/21257#issuecomment-23368...
comment by simonklee · 2024-09-10 -
…break. This is why Zig's close method[0] ignores errors (with the exception of `EBADF`). [0]: https://github.com/ziglang/zig/blob/fb0028a0d7b43a2a5dd05f07...
comment by trashburger · 2024-09-08 · in Don't defer Close() on writable files (2017) -
▲ 3
Zig: Prefer depending on NtDll rather than kernel32 or other higher level DLLsstory by sebazzz · 2024-09-04 · 0 comments
-
…kit isn’t on a good level yet to replace C in Linux. And, there’s still no good and fast allocator: https://github.com/ziglang/zig/issues/12484
comment by mrklol · 2024-08-29 · in Linus Torvalds talks AI, Rust, & why Linux is the only thing that matters -
…genuinely, since if not it seems like an easy way for someone to inject a KTH (Ken Thompson Hack): https://github.com/ziglang/zig/commits/master/stage1/zig1.wa...
comment by maxdamantus · 2024-08-27 · in Writing a Rust compiler in C -
Zig is moving away from LLVM ( https://github.com/ziglang/zig/issues/16270 ) and Rust has added Cranelift as a debug backend ( https://lwn.net/Articles/964735/ ). Not sure about Jai.
comment by vulcan01 · 2024-08-15 · in Writing a C Compiler: Build a Real Programming Language from Scratch -
…well (which would force you to use build.zig), but I don't think it's been decided to do that. [1] https://github.com/ziglang/zig/issues/20630#issuecomment-225...
comment by mk12 · 2024-07-30 · in C Macro Reflection in Zig -
…I not only write Zig code almost daily, I’ve personally contributed to the Zig build system. [0]: https://github.com/ziglang/zig/issues/20630
comment by jay-barronville · 2024-07-30 · in C Macro Reflection in Zig -
…= target, .optimize = optimize, }); exe.root_module.addImport("c", translate_c.createModule()); https://github.com/ziglang/zig/issues/20648
comment by kbolino · 2024-07-30 · in C Macro Reflection in Zig -
See: https://github.com/ziglang/zig/issues/16270#issuecomment-161... The ability to seamlessly compile C/C++/ObjC code within a Zig project is extremely important for me as well, but I'm fine with that job being delegated to a Zig package…
comment by flohofwoe · 2024-07-30 · in C Macro Reflection in Zig -
…functionality isn't going anywhere, just the method of achieving said functionality is changing: https://github.com/ziglang/zig/issues/16270#issuecomment-161... https://github.com/ziglang/zig/issues/16270#issuecomment-161...
comment by Laremere · 2024-07-30 · in C Macro Reflection in Zig -
…they want this functionality out of the language so they can remove libclang dependency. [0]: https://github.com/ziglang/zig/issues/20630
comment by skywal_l · 2024-07-30 · in C Macro Reflection in Zig -
We would need more branch hints? https://github.com/ziglang/zig/issues/5177 Cold, warm, warmer, omit hot as it is the default? Sometimes you would set all branches to be cold except one
comment by pyrolistical · 2024-07-27 · in Zen 5's 2-ahead branch predictor: how a 30 year old idea allows for new tricks -
…macOS uses Zig's own linker since roughly 2021 as far as I recall. Tracking issue for reference: https://github.com/ziglang/zig/issues/8726
comment by kubkon · 2024-07-21 · in Aro – Zig's new C compiler -
It's the major area of focus right now. You can track the issues with this tag/link if you'd like: https://github.com/ziglang/zig/issues?q=is%3Aissue+is%3Aopen...
comment by samatman · 2024-07-20 · in Aro – Zig's new C compiler -
Is this part of the long-term plan for zig to get rid of the dependency on clang/llvm? https://github.com/ziglang/zig/issues/16270
comment by livrem · 2024-07-20 · in Aro – Zig's new C compiler -
▲ 13
Use Zig cc to cross‐compile a CMake projectstory by jcbhmr · 2024-07-18 · 2 comments
-
…out in the post). Here's the relevant issue/comment, which makes me think this won't happen in Zig: https://github.com/ziglang/zig/issues/3897#issuecomment-7389...
comment by danvk · 2024-07-18 · in What can TypeScript learn from Zig? What can Zig learn from TypeScript? -
…to the mix and you get a slow ass compilation time even in Zig (See Zig filing divorce from LLVM https://github.com/ziglang/zig/issues/16270 ). Granted, LLVM isn't the only thing to blame. Rust has its own share of problems stemming from…
comment by Ygg2 · 2024-07-16 · in I Hope Rust Does Not Oxidize Everything -
Good news! If all goes well, seems that 0.14.0 will bring async/await https://github.com/ziglang/zig/issues/6025
comment by punkbit · 2024-06-07 · in Zig 0.13.0 Release Notes -
▲ 90
Zig Goalsstory by whatever3 · 2024-06-07 · 48 comments
-
There is an issue proposing this approach: https://github.com/ziglang/zig/issues/4284
comment by tiehuis · 2024-04-23 · in Memory-mapped IO registers in zig (2021) -
Note TLS/HTTPS is still not working https://github.com/ziglang/zig/issues/14172
comment by 38 · 2024-04-21 · in Zig Language 0.12 Release