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
-
…can't guess Zig naming. It's supposed to be "indexOfScalar" which of course makes 100% sense. [1]: https://github.com/ziglang/zig/blob/master/lib/std/mem.zig#L...
comment by unwind · 2023-05-02 · in SIMD with Zig -
This is called [function multi-versioning]( https://github.com/ziglang/zig/issues/1018 ).
comment by AndyKelley · 2023-05-02 · in SIMD with Zig -
It's planned: https://github.com/ziglang/zig/issues/1018
comment by kristoff_it · 2023-05-02 · in SIMD with Zig -
This has been mentioned before: https://github.com/ziglang/zig/issues/7702 I don't think anyone disagrees about the need for intrinsics. In fact, I have actually taken a crack at implementing the AVX512 intrinsics into the Zig compiler as…
comment by 10000truths · 2023-05-02 · in SIMD with Zig -
…be hard to benchmark. [1]: https://learn.microsoft.com/en-us/windows/win32/api/synchapi... [2]: https://github.com/ziglang/zig/blob/295b8ca467da36cd1066395e...
comment by overthrow · 2023-04-26 · in You could have invented futexes -
…less than the latest 3 versions. https://ziglang.org/download/0.10.0/release-notes.html#macOS https://github.com/ziglang/zig/issues/14651#issuecomment-143...
comment by diimdeep · 2023-04-14 · in Zig build system -
…OS released just 3 years ago. So it is not possible to compile Zig for it. It is ridiculous. https://github.com/ziglang/zig/issues/13313#issuecomment-129...
comment by diimdeep · 2023-04-14 · in Zig build system -
…dot, while C++'s compound literals (for example) don't. The pros and cons of this are discussed in https://github.com/ziglang/zig/issues/5039 .
comment by mauricioc · 2023-04-14 · in Zig build system -
▲ 6
HTTP server merged into Zig standard librarystory by motiejus · 2023-04-09 · 3 comments
-
…struct item. This isn't a special compiler feature, but a regular usage of Zig's comptime stuff: https://github.com/ziglang/zig/blob/master/lib/std/multi_arr...
comment by flohofwoe · 2023-04-01 · in Decreasing the number of memory accesses -
…pull in dynamic libs. It finds static libs but alas the .tsk doesn't give expected behavior anyway: https://github.com/ziglang/zig/issues/14939 A. Kelly (head Zig dev), to his credit, seems to already be on top of in this through a related…
comment by scrubs · 2023-03-27 · in Zig Quirks -
…downsides. Andrew gave a while ago a good overview on the more "ziggy" perspective on the issue: https://github.com/ziglang/zig/issues/9909#issuecomment-9426...
comment by kristoff_it · 2023-03-27 · in Zig Quirks -
…a similar thing? I see that rationale for not having private struct members was given here: https://github.com/ziglang/zig/issues/9909#issuecomment-9426... > The idea of private fields and getter/setter methods was popularized by Java, but…
comment by haberman · 2023-03-27 · in Zig Quirks -
…your Zoloft because it looks like there's going to be one last big disruption before it's over. https://github.com/ziglang/zig/issues/1097#issuecomment-1404...
comment by overthrow · 2023-03-27 · in Zig Quirks -
…a minimalist language. Edit: Looks like they are already aware of the problem. That is good news. https://github.com/ziglang/zig/issues/1097#issuecomment-6142...
comment by nromiun · 2023-03-27 · in Zig Quirks -
https://github.com/ziglang/zig/issues/544 Maybe? They say their stage2 parser accepts them now.
comment by nromiun · 2023-03-27 · in Zig Quirks -
…I use relatively large fonts for medical reasons and tabs are much more accessible to me. (1) https://github.com/ziglang/zig/issues/544
comment by latch · 2023-03-27 · in Zig Quirks -
…rationale being there is no difference between snake_case and camelCase for one word identifiers: https://github.com/ziglang/zig/issues/1097
comment by ngrilly · 2023-03-27 · in Zig Quirks -
No, it won't work. It'll say "actual" is undeclared. https://github.com/ziglang/zig/issues/4437 is tracking the issue. I think std.testing is going to see some major changes, so it's possible this gets fixed. But going from the responses…
comment by latch · 2023-03-27 · in Zig Quirks -
…recognize this because they still have an old issue open for it which is still planned [0]. [0] https://github.com/ziglang/zig/issues/2647
comment by skywal_l · 2023-03-22 · in Errors and Zig -
…little documentation there is a are really helpful, and that looks to be a long-standing issue ( https://github.com/ziglang/zig/issues/3049 ). Seems to me like this allocator should be renamed something like "FixedBufferBumpAllocator",…
comment by masklinn · 2023-03-19 · in The curious case of a memory leak in a Zig program -
…to use a GeneralPurposeAllocator and setting "enable_memory_limit" and "requested_memory_limit": https://github.com/ziglang/zig/blob/8f481dfc3c4f12327499485e... . If the purpose is to "only use the stack", then "allocating a huge chunk and…
comment by judofyr · 2023-03-19 · in The curious case of a memory leak in a Zig program -
…https://github.com/espressif/llvm-project/issues/4#issuecomm... https://github.com/ziglang/zig/issues/5467#issuecomment-1465...
comment by weitzj · 2023-03-18 · in LLVM 16.0.0 Release -
…there does seem to be community interest in metadata annotations for external static analysis https://github.com/ziglang/zig/issues/14656 ] Although I only have a beginner knowledge of the language, it seems to me that Zig is just on the…
comment by kps · 2023-03-10 · in Zig: The Modern Alternative to C -
…or tooling to find unused variables. It's quite an ironic outcome if you think about it. [1]: https://github.com/ziglang/zig/pull/12803
comment by rom-antics · 2023-03-10 · in Zig: The Modern Alternative to C -
…in the stdlib, but it has some limitations and there is some discussion to change it or remove it https://github.com/ziglang/zig/issues/8224 Some Zig libraries implementing an event loop: - libxev by Mitchell Hashimoto…
comment by fbouvier · 2023-03-10 · in Zig: The Modern Alternative to C -
…example is considering triggering an error for incorrectly indented code/misleading indentation: https://github.com/ziglang/zig/issues/35
comment by ngrilly · 2023-03-03 · in Why Python keeps growing, explained -
…to provide a at least an AST to ensure annotations have known + unique semantics as I explain in https://github.com/ziglang/zig/issues/14656#issuecomment-143... . I would say that this is a primitive quasi-type check decoupled from main…
comment by matu3ba · 2023-02-27 · in Zig's multi-sequence for loops -
…Zig meta-programming to actually be fairly readable, here's the function that does the formatting: https://github.com/ziglang/zig/blob/master/lib/std/fmt.zig
comment by Laremere · 2023-02-27 · in Zig's multi-sequence for loops -
…function is implemented in the std library[1] not the compiler and Zig does not have varargs [1] https://github.com/ziglang/zig/blob/f6c934677315665c140151b8...
comment by quic5 · 2023-02-27 · in Zig's multi-sequence for loops -
I don't speak for Jarred or Andrew, but here is a recent exchange between them about this matter: https://github.com/ziglang/zig/issues/14542#issuecomment-141... The tension is understandable: Zig is explicitly not production-ready, yet it…
comment by hryx · 2023-02-25 · in Bun v0.5.7 -
▲ 3
Implement Multi-Object for Loopsstory by nyberg · 2023-02-18 · 0 comments
-
…it'll 'just work' as claimed for the Go use case, so best not to claim otherwise until then. [0] https://github.com/ziglang/zig/issues/1349
comment by slimsag · 2023-02-12 · in Purego – A library for calling C functions from Go without Cgo -
…eliminate the goroutine -> OS thread switching overhead. [0] https://github.com/hexops/mach [1] https://github.com/ziglang/zig/issues/157
comment by slimsag · 2023-02-12 · in Purego – A library for calling C functions from Go without Cgo -
…else. I don't see how this is much worse? What you seem to be looking for is an "unused function" ( https://github.com/ziglang/zig/issues/335 ) error instead as it catches that case unless you use the function in a branch that's not part…
comment by nyberg · 2023-02-11 · in How a Zig IDE Could Work -
…as anytype, so zls auto-completion doesn't work. Also see: comptime interfaces proposal https://github.com/ziglang/zig/issues/1268
comment by nusaru · 2023-02-10 · in How a Zig IDE Could Work -
…have done great contribution for async I/O in the Zig community: - io_uring support on the std lib https://github.com/ziglang/zig/pull/6356 - a cross-platform io_uring based event loop https://github.com/tigerbeetledb/tigerbeetle/tree/main/…
comment by fbouvier · 2023-01-31 · in TigerBeetle raises $6.4M to power the future of financial accounting infra -
…I’d expected at this point. Though, I am still curious what the end game IDE support would look. https://github.com/ziglang/zig/issues/3028 is a big component of that.
comment by matklad · 2023-01-31 · in TigerBeetle raises $6.4M to power the future of financial accounting infra -
…code, executed at compile-time. No magic, no macros, fully compile-time error-checked formatting. https://github.com/ziglang/zig/blob/master/lib/std/fmt.zig#L...
comment by dilap · 2023-01-16 · in Rust vs. C++ Formatting -
…See also why even "intentionally C-like" languages like Zig are growing increasing complexity https://github.com/ziglang/zig/issues/7769 Or why things like D's betterC adds all the same "objectionable" stuff C++ does - RAII, operator…
comment by kllrnohj · 2023-01-13 · in Care is needed to use C++ std:optional with non-trivial objects -
…of releases each. For a good read of how weird these can be here is a bug report from last month https://github.com/ziglang/zig/issues/13480
comment by zamadatix · 2023-01-11 · in A Zig Diary -
https://github.com/ziglang/zig/pull/14265
comment by usdogu · 2023-01-11 · in A Zig Diary -
Is a package manager still in the works? A rudimentary search led me to this GitHub issue: https://github.com/ziglang/zig/issues/943
comment by stoicjumbotron · 2023-01-11 · in A Zig Diary -
▲ 72
Zig Package Manager MVPstory by modernerd · 2023-01-11 · 16 comments
-
▲ 8
Zig now has a built in HTTP 1.1 clientstory by kuon · 2023-01-06 · 0 comments
-
▲ 1
Show HN: Zig Without Unused Variable Errorstory by markisus · 2023-01-02 · 0 comments
-
…those are required for the borrow checker or safety, but it's a philosophical design decision. 1: https://github.com/ziglang/zig/issues/1251
comment by elcritch · 2022-12-30 · in 50 years of C, the good, the bad and the ugly [video] -
…> Zig is a programming language, but it also ships with a package manager Which is not true: https://github.com/ziglang/zig/issues/943 > Zig has no macros and no metaprogramming Literally from Zig's homepage ( https://ziglang.org/ ):…
comment by henry_viii · 2022-12-26 · in I wrote a Ruby extension in Zig -
…a zig-help channel that's pretty responsive if you're ok with Discord. The archive is searchable. https://github.com/ziglang/zig/wiki/Community#discord-englis... . GitHub's code search beta is a good way to find out how other people are…
comment by modernerd · 2022-12-26 · in I wrote a Ruby extension in Zig