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
-
I have no fear of abysses: https://github.com/ziglang/glibc-abi-tool/ https://github.com/ziglang/zig/blob/master/tools/gen_stubs.z... bring it on
comment by AndyKelley · 2021-12-19 · in Zig: Drop MinGW-w64 -
…one argument to the right. The same pointer must be returned by the callee in RAX. Isn't this what https://github.com/ziglang/zig/issues/9998#issuecomment-9970... claims to be undocumented?
comment by anonymfus · 2021-12-19 · in Zig: Drop MinGW-w64 -
▲ 105
Zig: Drop MinGW-w64story by goranmoomin · 2021-12-19 · 34 comments
-
…the the closest thing to RAII is this proposal, but there is no guarantee that it will be accepted. https://github.com/ziglang/zig/issues/782
comment by kristoff_it · 2021-12-15 · in Allocgate: Restructuring how allocators work in Zig -
Some context: In master branch of Zig right now (before https://github.com/ziglang/zig/pull/10330 is merged), status quo: $ cat ../lib/libc/glibc/*.txt | wc -c 205219 $ cat ../lib/libc/glibc/*.txt | xz | wc -c 22976 Zig supports targeting…
comment by AndyKelley · 2021-12-13 · in Show HN: A 166 KB file for cross compiling glibc for any version, any target -
No it doesn't. https://github.com/ziglang/zig/issues/782
comment by lenkite · 2021-12-10 · in Sayonara, C++, and Hello to Rust -
They seem to be almost ready to make a new 0.9.0 release, by the way: https://github.com/ziglang/zig/milestone/11
comment by xvilka · 2021-12-06 · in Zig Performance Tracking Dashboard -
…in Zig, in case you want a still-maintained, up-to-date file. It's just called "windows_sdk.cpp". https://github.com/ziglang/zig/blob/master/src/windows_sdk.c...
comment by AndyKelley · 2021-11-24 · in Microsoft_craziness.h (2018) -
…and such can still happen because of programmer error in well-formed zig programs. see also: https://github.com/ziglang/zig/issues/2301
comment by nice_byte · 2021-11-22 · in Ask HN: Alternatives to Rust Programming Language -
Zig is working on hot reloading, needs compiler and linker level support. https://github.com/ziglang/zig/issues/68 That issue has some links to people doing it in C/C++.
comment by ximeng · 2021-11-11 · in Paradox of the perfect code editor -
…have created for the very purpose of ensuring memory safety with unrestricted aliasing.) [1]: https://github.com/ziglang/zig/issues/6396
comment by pcwalton · 2021-11-05 · in What memory model should Rust use? -
? https://github.com/ziglang/zig
comment by adenozine · 2021-11-03 · in Zig monthly, October 2021: Games, gamedev, Elixir, tools and more -
…need newer systems programming languages that don't have an answer for use-after-free in safe code. https://github.com/ziglang/zig/issues/2301 https://github.com/ziglang/zig/issues/1966 Naturally I have taken the time, and did not come out…
comment by pjmlp · 2021-10-19 · in Zig gamedev project – left my job to build games in Zig lang -
Andrew plans to audit the zig stdlib before the 1.0 release to fix those issues: https://github.com/ziglang/zig/issues/1629
comment by 10000truths · 2021-10-18 · in Zig gamedev project – left my job to build games in Zig lang -
…yet, at least in my experience from trying it earlier this year. I ran into a compiler crash: https://github.com/ziglang/zig/issues/7865 . I attempted to fix the compiler crash myself ( https://github.com/ziglang/zig/pull/8372 ), and I…
comment by haberman · 2021-10-18 · in Zig gamedev project – left my job to build games in Zig lang -
…with raylib for my next project. The show stopper was that C ABI compatibility is not yet complete: https://github.com/ziglang/zig/issues/1481 I could have probably worked around it but decided to go the C and Lua for scripting route for…
comment by cardanome · 2021-10-17 · in Zig gamedev project – left my job to build games in Zig lang -
…more questions you can pop into irc or the discord, they'll have better resources at the ready. https://github.com/ziglang/zig/wiki/Community
comment by lkey · 2021-10-07 · in Why I'm donating $150/month (10% of my income) to the musl Libc project (2019) -
…I last checked; ha. Although, it's not clear to me whether it's intended for end-user use yet. https://github.com/ziglang/zig/releases/tag/0.8.0
comment by dleslie · 2021-10-07 · in We moved from Pony to Rust -
Zig's stage2 compiler has a C backend https://github.com/ziglang/zig/blob/master/src/codegen/c.zig
comment by jedisct1 · 2021-10-07 · in We moved from Pony to Rust -
Zig appears to have a proposed solution to this similar to your option 1, move recursion to the heap. https://github.com/ziglang/zig/issues/1639 They're also looking at static analysis of the maximum stack depth which might help in some…
comment by ximeng · 2021-09-28 · in Stack size invisibility in C and the effects on "portability" -
To answer myself. Zig doesn't really do separate compilation: https://github.com/ziglang/zig/issues/233
comment by gpderetta · 2021-09-27 · in What color is your function? (2015) -
…something like: if (!std.event.loop.instance) @compileError("X function only supports async"); [1]: https://github.com/ziglang/zig/issues/1778
comment by aeldidi · 2021-09-27 · in What color is your function? (2015) -
…use case that computed goto tries to solve is addressed with labeled continue on a switch [1] [1]: https://github.com/ziglang/zig/issues/8220
comment by AndyKelley · 2021-09-21 · in A function decorator that rewrites the bytecode to enable goto in Python -
…like 10 years later. Zig moved in the opposite direction. It had one at first, and then removed it: https://github.com/ziglang/zig/issues/630
comment by mumblemumble · 2021-09-21 · in A function decorator that rewrites the bytecode to enable goto in Python -
…times, and includes interesting examples from the stdlib where resources were not closed properly: https://github.com/ziglang/zig/issues/782
comment by llimllib · 2021-09-10 · in Clearing up Myths about Ada -
There’s this helpful guide: https://github.com/ziglang/zig/blob/master/CONTRIBUTING.md Though I’m interested in hearing from the creator itself as well.
comment by pryelluw · 2021-09-09 · in Maintain It with Zig -
…but I think you could wrap it pretty easily in a struct of your own if you needed that. [0] https://github.com/ziglang/zig/blob/master/lib/std/unicode.z...
comment by losvedir · 2021-09-08 · in Maintain It with Zig -
Probably related to the following: https://github.com/ziglang/zig/issues/3180
comment by sigzero · 2021-09-08 · in Maintain It with Zig -
…been using Zig for a month and I am still positively surprised so he must be onto something. [0]: https://github.com/ziglang/zig/blob/master/lib/std/json.zig#...
comment by skywal_l · 2021-09-08 · in Maintain It with Zig -
There's a discussion about this here: https://github.com/ziglang/zig/issues/2647
comment by dralley · 2021-09-07 · in Looking into Odin and Zig -
“Adding everything” is definitely not a part of Zig’s philosophy. https://github.com/ziglang/zig/issues/130#issuecomment-70601... > However, at this point the plan is to not add an additional dynamic dispatch language feature.
comment by judofyr · 2021-08-28 · in Weird Languages -
…safe languages Zig is a nice improvement over C, but it is not safe. There is work in progress ( https://github.com/ziglang/zig/issues/2301 ), but from what I can tell, key details are still to be decided, including the classes of errors…
comment by ojeda · 2021-08-21 · in The Janet Programming Language -
…C/C++ easier we might see a Zig package manager making C/C++ packaging easier too. [0] https://github.com/ziglang/zig/issues/943
comment by skywal_l · 2021-08-19 · in C++20 Modules with GCC11 -
…and Zig is very much opposed to both. Non-capturing anonymous functions expressions will be added ( https://github.com/ziglang/zig/issues/1717 ), while a limited form of closure is being considered ( https://github.com/ziglang/zig/issues/69…
comment by pron · 2021-08-10 · in Zig Pathtracer -
…similar to this earlier - there is actually a quite cool proposal for something like this here now: https://github.com/ziglang/zig/issues/8973
comment by slimsag · 2021-08-08 · in Bringing NetBSD to Zig's Continuous Integration -
They're discussing this in https://github.com/ziglang/zig/issues/910 (server) and https://github.com/ziglang/zig/issues/2007 (client).
comment by jks · 2021-08-07 · in Looking into Zig -
…the error set of the current function to not include the handled ones. Here are a couple examples: https://github.com/ziglang/zig/blob/7d0de54ad44832589379a4bc... You get compile errors if you try to handle an impossible error, or don't…
comment by AndyKelley · 2021-08-07 · in Looking into Zig -
> Can it be used for c++ code? Yup! https://github.com/ziglang/zig/commit/db17c0d88c44183b306099... > Also we build LLVM tip of tree from scratch... I would have also thought it would be non-trivial (Julia uses LLVM and has some…
comment by O_H_E · 2021-07-18 · in Zig cc: A drop-in replacement for GCC/Clang (2020) -
…etc) for for the target, then set them in the current env ("CC=zig-cc", "CXX=zig-c++") [1]. [0]: https://github.com/ziglang/zig/issues/8716 [1]: https://github.com/ziglang/zig/issues/8973
comment by Andoryuuta · 2021-07-18 · in Zig cc: A drop-in replacement for GCC/Clang (2020) -
…https://github.com/Hejsil/zig-clap Also this pattern was also mentioned in the issue you mentioned: https://github.com/ziglang/zig/issues/2647#issuecomment-5898... The advantage of this system is that the caller can decide whether error…
comment by kristoff_it · 2021-07-18 · in Zig cc: A drop-in replacement for GCC/Clang (2020) -
…an allocation for errors, especially given that error handling is generally not the hot path. [0]: https://github.com/ziglang/zig/issues/2647 (among other issues)
comment by coder543 · 2021-07-18 · in Zig cc: A drop-in replacement for GCC/Clang (2020)