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
-
…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) -
…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 -
…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 -
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 -
I think there are at least 2 serious issues with TLS, both documented in: https://github.com/ziglang/zig/issues/15226
comment by latch · 2024-04-21 · in Zig 0.12.0 Release Notes -
Note TLS/HTTPS is still not working https://github.com/ziglang/zig/issues/14172
comment by 38 · 2024-04-20 · in Zig 0.12.0 Release Notes -
…another case of "this should be a warning instead". The discussion about it is indeed interesting: https://github.com/ziglang/zig/issues/224 e.g.: > > When debugging/prototyping, it's useful to comment out a line without having to…
comment by wild_pointer · 2024-04-20 · in Zig 0.12.0 Release Notes -
…for contexts. [1]: https://github.com/ctx-core/be [2]: https://github.com/ctx-core/rmemo [3]: https://github.com/ziglang/zig/issues/1286 [4]: https://pkg.go.dev/context
comment by briantakita · 2024-03-25 · in Context: The Missing Feature of Programming Languages -
…Zig wants to have "package manager" at all. ? it's literally one of the project's main milestones: https://github.com/ziglang/zig/projects?type=classic
comment by wavemode · 2024-03-16 · in Zig, Rust, and Other Languages -
…Similarly zig’s stdlib shouldn’t allocate behind your back, except for thread spawn where it does: https://github.com/ziglang/zig/blob/5cd7fef17faa2a40c8da23f0... Generally speaking, it’s as mentioned just a convention. A zig library might…
comment by alchemio · 2024-03-15 · in Zig, Rust, and Other Languages -
Zig also has an IRC channel on libera (#zig) that is moderated by Andrew Kelley.[1] [1] https://github.com/ziglang/zig/wiki/Community
comment by otoburb · 2024-03-14 · in Nanos – A Unikernel -
…. We made a decision a while ago to follow Zig's lead here and have no 'official' community space ( https://github.com/ziglang/zig?tab=readme-ov-file#community ) instead letting people form their own spaces.
comment by eyberg · 2024-03-14 · in Nanos – A Unikernel -
zig https://github.com/ziglang/zig
comment by Cloudef · 2024-03-10 · in Ask HN: What underrated open source project deserves more recognition? -
ESP32 and STM32 support is very welcome! I have been following https://github.com/ziglang/zig/issues/5467 for a while and progress seemed to have slowed significantly
comment by 22c · 2024-02-28 · in MicroZig: Unified abstraction layer and HAL for Zig on several microcontrollers -
…of hard technical issues with LLVM, debugging, etc. I recommend checking the issue tracker, eg. https://github.com/ziglang/zig/issues/6025 I personally don't understand the domain well enough at all, but honestly, I feel like (if possible)…
comment by TwentyPosts · 2024-02-25 · in Asynchronous clean-up