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
-
…of a function then finding it is in a sea of text is very difficult and not fun. Zig ArrayList: https://github.com/ziglang/zig/blob/master/lib/std/array_lis... C++ Vector: https://en.cppreference.com/w/cpp/container/vector Rust Vec:…
comment by forrestthewoods · 2022-01-17 · in Failing to Learn Zig via Advent of Code -
…is also the reason why I gave up on it for now. But I'm sure it will improve over time. [1] https://github.com/ziglang/zig/blob/79628d48a4429818bddef2e8...
comment by zppln · 2022-01-17 · in Failing to Learn Zig via Advent of Code -
…The ecosystem for zig is insignificant now and a stable release would help the language. [1] https://github.com/ziglang/zig/issues/234 [2] https://about.sourcegraph.com/podcast/andrew-kelley/
comment by megumax · 2022-01-17 · in Failing to Learn Zig via Advent of Code -
…a good example being > Bit-shifting is a monumental pain in the ass. Yes, it indeed is. See: https://github.com/ziglang/zig/issues/7605 Ok, so, here's my advice to forrestthewoods if you're ever going to try Zig again: [1] Interact more…
comment by kristoff_it · 2022-01-17 · in Failing to Learn Zig via Advent of Code -
…in the meantime. It also links to a page that explains how the standard library is structured: https://github.com/ziglang/zig/wiki/How-to-read-the-standard...
comment by kristoff_it · 2022-01-17 · in Failing to Learn Zig via Advent of Code -
…now. Zig has a few peculiarities, it's not stable yet, you kind of have to follow it's development. https://github.com/ziglang/zig/tree/master/lib/std
comment by Comevius · 2022-01-17 · in Failing to Learn Zig via Advent of Code -
The Zig programming language approach to communications is a great example of what you advocate: https://github.com/ziglang/zig/wiki/Community
comment by williamstein · 2021-12-28 · in Please don't use Discord for FOSS projects -
Correction: https://github.com/ziglang/zig/issues/10018
comment by guidorice · 2021-12-28 · in A Review of the Zig Programming Language (Using Advent of Code 2021) -
There is an open issue for something like `cargo test` https://github.com/ziglang/zig/issues/10018
comment by arch_rust · 2021-12-27 · in A Review of the Zig Programming Language (Using Advent of Code 2021) -
…is a report from someone who tried using valgrind [2]. Yes, it doesn’t sound all that special. [1] https://github.com/ziglang/zig/blob/master/lib/std/valgrind.... [2] https://dev.to/stein/some-notes-on-using-valgrind-with-zig-3...
comment by skybrian · 2021-12-27 · in A Review of the Zig Programming Language (Using Advent of Code 2021) -
…they haven't really settled on a desirable solution yet, but it's something they're hoping to add. https://github.com/ziglang/zig/issues/782 I work in games with C++ and we already do so much manual management and initialization+teardown…
comment by Bekwnn · 2021-12-27 · in A Review of the Zig Programming Language (Using Advent of Code 2021) -
…at the top that links you to a wiki page that explains how the standard library is structured. https://github.com/ziglang/zig/wiki/How-to-read-the-standard...
comment by kristoff_it · 2021-12-27 · in A Review of the Zig Programming Language (Using Advent of Code 2021) -
…any real sense. I will re-emphasize that I've not used it, so I cannot speak for its quality. [1]: https://github.com/ziglang/zig/blob/master/lib/std/unicode.z...
comment by llimllib · 2021-12-27 · in A Review of the Zig Programming Language (Using Advent of Code 2021) -
…common ones I used. Was there something in particular you were looking for and didn't find? [1]: https://github.com/ziglang/zig/blob/master/lib/std/mem.zig#L... [2]: https://github.com/ziglang/zig/blob/master/lib/std/mem.zig#L... [3]:…
comment by llimllib · 2021-12-27 · in A Review of the Zig Programming Language (Using Advent of Code 2021) -
…const x = blah;, so why are functions not const bar = function() {};? This may or may not happen: https://github.com/ziglang/zig/issues/8383 > Fixing the standard library documentation would be my biggest priority if I worked on Zig,…
comment by dnautics · 2021-12-27 · in A Review of the Zig Programming Language (Using Advent of Code 2021) -
…functions not const bar = function() {};? Good question, there's an accepted proposal to fix this: https://github.com/ziglang/zig/issues/1717 > The builtin compiler macros (that start with @) are a bit confusing. Some of them have a…
comment by AnIdiotOnTheNet · 2021-12-27 · in A Review of the Zig Programming Language (Using Advent of Code 2021) -
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 -
…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