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
-
…among other things, it makes it more difficult to discover what the required type actually is. [0] https://github.com/ziglang/zig/blob/b3aed4e2c8b4d48b8b12f606... [1] https://github.com/ziglang/zig/issues/17198
comment by jiripospisil · 2024-02-07 · in Show HN: Tokamak – Server-side framework for Zig -
…is also very poorly tuned for a large number of small batch jobs, but that's a place to start. [1] https://github.com/ziglang/zig/blob/b3aed4e2c8b4d48b8b12f606...
comment by latch · 2024-02-07 · in Show HN: Tokamak – Server-side framework for Zig -
…unusual to write the C stdlib in a different language. E.g. Zig is getting a libc written in Zig: https://github.com/ziglang/zig/issues/514 Rust would work too of course. MUSL is probably the only popular C stdlib actually written in C.
comment by flohofwoe · 2024-02-04 · in New Linux glibc flaw lets attackers get root on major distros -
Thanks for the detailed reply. > You can find more details on this at https://github.com/ziglang/zig/issues/13265 . Thanks for the link, my thoughts mirror those of certik in the thread, which Andrew answered well. > at the very least, we…
comment by MaxBarraclough · 2024-01-28 · in Zig Roadmap 2024 [video] -
…the build process and drops the Zig compiler binary size by a full order of magnitude - see https://github.com/ziglang/zig/issues/16270 for more deatils on that. It also allows us to implement incremental compilation on the bitcode file…
comment by mlugg · 2024-01-27 · in Zig Roadmap 2024 [video] -
…important to note that we have quite a few compiler bugs which are [caused by upstream LLVM bugs]( https://github.com/ziglang/zig/issues?q=is%3Aissue+is%3Aopen... ). LLVM often ships with regressions which we report before releases come…
comment by mlugg · 2024-01-27 · in Zig Roadmap 2024 [video] -
…here [0] it seems to be the latter - full removal of LLVM for all builds - which surprises me. [0] https://github.com/ziglang/zig/issues/16270
comment by MaxBarraclough · 2024-01-27 · in Zig Roadmap 2024 [video] -
…helps to catch typical memory-related issues at runtime (like leaks and dangling access), e.g. see: https://github.com/ziglang/zig/blob/master/lib/std/heap/gene... Tagged-index-handles are also always an option to achieve spatial and…
comment by flohofwoe · 2024-01-27 · in Zig Roadmap 2024 [video] -
…time I checked Zig still had a subtle form function coloring for function pointers. See for example https://github.com/ziglang/zig/issues/8907
comment by SkiFire13 · 2024-01-20 · in The bane of my existence: Supporting both async and sync code in Rust -
I am not entirely sure, but it seems they chose to return a null pointer: https://github.com/ziglang/zig/commit/32e0dfd4f0dab351a024e7...
comment by brabel · 2024-01-17 · in Passing nothing is surprisingly difficult -
…return a * (ones - tv) + b * tv; } which still leaves some room for improvement. See for example https://github.com/ziglang/zig/issues/17274
comment by boomlinde · 2024-01-08 · in Failing to Learn Zig via Advent of Code (2022) -
> I think this is the same in the still experimental Carbon Apparently, it's not (anymore?): https://github.com/ziglang/zig/issues/5973#issuecomment-1801...
comment by codethief · 2024-01-06 · in Don't pass structs bigger than 16 bytes on AMD64 -
…[1] https://tutorial.ponylang.io/expressions/ops#precedence [2] https://github.com/ziglang/zig/issues/114
comment by MaxBarraclough · 2024-01-05 · in Dennis Ritchie on the priorities of && || vs. == etc. (1982) -
I still think noalias-by-default is the way to fix this. https://github.com/ziglang/zig/issues/1108 You get all the benefits of Zig being able to choose the function ABI, but if the optimization would have caused a bug, you'll get an…
comment by ForkMeOnTinder · 2024-01-05 · in Don't pass structs bigger than 16 bytes on AMD64 -
…compiler can actually decide to pass it by reference. It does expose this kind of footgun though https://github.com/ziglang/zig/issues/5973#issuecomment-1330...
comment by Cloudef · 2024-01-05 · in Don't pass structs bigger than 16 bytes on AMD64 -
…can't be created as const. There's a ticket about this here, but it's currently not high-priority: https://github.com/ziglang/zig/issues/6068 Zig also isn't alone in this, I haven't encountered any other programming language yet which has…
comment by flohofwoe · 2024-01-02 · in Zig cookbook: collection of simple Zig programs that demonstrate good practices -
Hmm, there's a distinct change of opinion by andrewrk from the linked issue (2022) to now https://github.com/ziglang/zig/issues/12064 (July 2022): > Hope you don't mind I'm going to reopen this issue because it concisely demonstrates a…
comment by kibibu · 2024-01-02 · in Zig cookbook: collection of simple Zig programs that demonstrate good practices -
…And maybe more work on composition, abstraction and interfaces. The issue is described here: https://github.com/ziglang/zig/issues/17985
comment by latch · 2024-01-02 · in Zig cookbook: collection of simple Zig programs that demonstrate good practices -
…a talk [2] that goes into details on why this is an issue. Regardless, I still love zig. [1] https://github.com/ziglang/zig/issues/12064 [2] https://youtu.be/dEIsJPpCZYg
comment by laserbeam · 2024-01-02 · in Zig cookbook: collection of simple Zig programs that demonstrate good practices -
…defining it first), you cannot do error.InvalidChar(c) to give back the actual character. https://github.com/ziglang/zig/issues/2647
comment by jiripospisil · 2023-12-30 · in Show HN: After a day of Zig – a review by a Rust enthusiast -
…Also it seems like even the discussion of Geometric Algebra has been covered before 3 years ago: https://github.com/ziglang/zig/issues/7295#issuecomment-7389... Unless it's actually possible after all this time (even in some random beta)…
comment by pixelpoet · 2023-11-29 · in Show HN: Error return traces for Go, inspired by Zig -
Doesn’t this open github issue imply that vector operators are still being considered? https://github.com/ziglang/zig/issues/7295 Or is it that the three years it’s been around indicate it will never progress?
comment by lll-o-lll · 2023-11-29 · in Show HN: Error return traces for Go, inspired by Zig -
…[1]: https://github.com/bytecodealliance/wit-bindgen/issues/306 [2]: https://github.com/ziglang/zig/issues/17115
comment by n42 · 2023-11-27 · in $20k bounty was claimed -
Zig’s issue tracker list them [0]. [0]: https://github.com/ziglang/zig/issues?q=is%3Aopen+is%3Aissue...
comment by KolmogorovComp · 2023-11-11 · in Hashmaps in Factor are faster than in Zig -
…bigger zig projects out there) noticed this issue [1]. It's also on their issue tracker [2]. [1] https://github.com/ziglang/zig/issues/17851 [2] https://github.com/tigerbeetle/tigerbeetle/issues/1191
comment by shemii · 2023-11-11 · in Hashmaps in Factor are faster than in Zig -
…decide for you. But what if the programmer forgets or somebody else is working on the code? [0] https://github.com/ziglang/zig/pull/17419
comment by jiripospisil · 2023-11-10 · in Servo announces grant from the NLnet Foundation -
This is exactly how random floats are computed in the Zig standard library: https://github.com/ziglang/zig/pull/10428/
comment by 10000truths · 2023-10-18 · in Higher quality random floats -
…support for exactly this type of OOM testing in Zig via std.testing.checkAllAllocationFailures: - https://github.com/ziglang/zig/blob/1606717b5fed83ee64ba1a91... - https://www.ryanliptak.com/blog/zig-intro-to-check-all-alloc...
comment by squeek502 · 2023-09-27 · in Arena allocator tips and tricks -
Zig has arena allocator in the standard library https://github.com/ziglang/zig/blob/master/lib/std/heap/aren...
comment by Cloudef · 2023-09-27 · in Arena allocator tips and tricks -
…still available via the zig build system. longer version: I think this is the relevant link here: https://github.com/ziglang/zig/issues/16270#issuecomment-161... as you can see the proposal "make the main zig executable no longer depend on…
comment by simon_void · 2023-09-26 · in Clang is being replaced by Aro (a C compiler written from scratch in Zig) -
For Zig this is planned via labeled continue syntax inside switch expressions: https://github.com/ziglang/zig/issues/8220 As mentioned in the proposal, this would even allow implementation of Duff's Device in Zig :-o
comment by AndyKelley · 2023-09-19 · in Memory-efficient enum arrays in Zig -
…whether or not it will be possible in practice is a different (and interesting!) question. [1]: https://github.com/ziglang/zig/issues/2646 [2]: https://github.com/ziglang/zig/issues/2301
comment by gpanders · 2023-09-18 · in Memory-efficient enum arrays in Zig -
This is the context that the parent poster is referring to. https://github.com/ziglang/zig/issues/14172#issuecomment-164... Yes, it's petty stuff.
comment by kristoff_it · 2023-09-17 · in Bounties Damage Open Source Projects -
The contributors are expected to follow code of conduct: https://github.com/ziglang/zig/blob/master/.github/CODE_OF_C... At least these lines sounds reasonable: Examples of behavior that contribute to creating a positive environment…
comment by tener · 2023-09-17 · in Bounties Damage Open Source Projects -
The "Support WASIX" [1] link shows up there, that's what led to this. [1] https://github.com/ziglang/zig/issues/17115
comment by wyldfire · 2023-09-17 · in Bounties Damage Open Source Projects -
Wasmer attempted to do this in the Ziglang repo barely 4 days ago: https://github.com/ziglang/zig/issues/17115
comment by ayewo · 2023-09-15 · in Should I Rust or Should I Go? -
Link to GitHub issue: https://github.com/ziglang/zig/issues/17115 Wasmer offered a bounty of $5,000 for completion and merging was optional, the only requirement was to pass a test suite.
comment by aquariusDue · 2023-09-14 · in Bounties Damage Open Source Projects -
…using comptime. It parses the format string and validates the arguments at compile time. See https://github.com/ziglang/zig/blob/master/lib/std/fmt.zig I also toyed around with turning a math equation dsl into compiled statements at…
comment by Laremere · 2023-09-09 · in Learning Zig -
…I tried pulling a very simple SDL2 project off github and building it on my macbook M1 and hit https://github.com/ziglang/zig/issues/12069 . Homebrew also has no option for --HEAD, so I don't know if I'm running into a fixed issue or what.…
comment by BaculumMeumEst · 2023-09-09 · in Learning Zig -
…from a number of miscompilation [0] that is quite higher than for a more mature compiler. [0]: https://github.com/ziglang/zig/issues?q=is%3Aopen+is%3Aissue...
comment by KolmogorovComp · 2023-09-07 · in Bun 1.0 announcement [video] -
…the compiler error (as in, prevents compilation) for unused local variables. See discussion here: https://github.com/ziglang/zig/issues/335#issuecomment-10011...
comment by alwaysbeconsing · 2023-09-03 · in Focus: A simple and fast text editor written in Jai -
We also migrated all compile-time types and values to be stored in a similar fashion: https://github.com/ziglang/zig/pull/15569 Perf was a bit of a wash on this one but it means we can serialize most of the compiler's state with a single…
comment by AndyKelley · 2023-08-26 · in How to speed up the Rust compiler -
Zig did go on to apply the same style to their two later IRs, ZIR ( https://github.com/ziglang/zig/pull/8266 ) and AIR ( https://github.com/ziglang/zig/pull/9353 ). These don't look as thoroughly benchmarked (at least not on the PRs) but…
comment by Rusky · 2023-08-26 · in How to speed up the Rust compiler -
…from an RDBMS. The closest thing I've seen in a compiler is rather Zig's AST memory layout work: https://github.com/ziglang/zig/pull/7920 . But this is a very "hand-crafted" version of what an RDBMS does.
comment by Rusky · 2023-08-25 · in How to speed up the Rust compiler -
…only TLS 1.3 is implemented, which means that HTTPS requests are going to fail with many servers: https://github.com/ziglang/zig/issues/14172 I believe a 3rd party TLS package is available, but something to think about.
comment by 38 · 2023-08-22 · in Extend a C/C++ Project with Zig (2021) -
…I'd recommend reading the GH issues and comments I've linked below to get a better idea of it. [1]: https://github.com/ziglang/zig/issues/16270#issuecomment-161... [2]: https://github.com/andrewrk/ffmpeg [3]:…
comment by messe · 2023-08-22 · in Extend a C/C++ Project with Zig (2021) -
Versioned link: https://github.com/ziglang/zig/blob/b835fd90cef1447904d3b009...
comment by LoganDark · 2023-08-11 · in Fastest branchless binary search -
…find, rather it calls to C++. Zig’s binary search is here, it’s an unoptimized textbook version: https://github.com/ziglang/zig/blob/b835fd90cef1447904d3b009... At TigerBeetle, we have our own branchless implementation here:…
comment by matklad · 2023-08-11 · in Fastest branchless binary search