Hacker GitHub

← All repos

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

Mentions per year 680 mentions · busiest year 2025 (123)
20082026
  1. https://github.com/ziglang/zig/wiki/FAQ#why-does-zig-force-m...
    comment by AndyKelley · 2020-03-25 · in Zig cc: A drop-in replacement for GCC/Clang
  2. …security is part of the requirements in a connected world. Still no way to catch use-after-free. https://github.com/ziglang/zig/issues/3180
  3. …give you some of these things in its (admittedly still poorly documented) std lib: std.os.fork: https://github.com/ziglang/zig/blob/master/lib/std/os.zig#L2... std.os.fcntl: https://github.com/ziglang/zig/blob/master/lib/std/os.zig#L3...
  4. The zig project was also plagued with issues around VCRUNTIME140_1.dll. See https://github.com/ziglang/zig/issues/3391
  5. …are you sure ? zig does not seem to have something that looks like concepts (an issue is open : https://github.com/ziglang/zig/issues/1268 ) nor a way to put restrictions on a given type passed to a function or series of function. e.g. it…
    comment by jcelerier · 2020-01-29 · in C++20 Reference Card
  6. it's been planned since the beginning: https://github.com/ziglang/zig/issues/157 https://github.com/ziglang/zig/issues/1639 also I figured out how to have safe recursion, taking advantage of the stackless coroutines:…
  7. …was a smart move. For what it's worth, here is my current vaporware plan to solve this problem: https://github.com/ziglang/zig/issues/3028 I would be curious to see your thoughts on this, especially if you end up trying to tackle this…
  8. Check out zig's "Safety" project https://github.com/ziglang/zig/projects/3#card-27896159 to get a view of what sort of safety is being planned. I'd like to state that after significant time and effort with Rust, I also think it's too…
    comment by aganame · 2020-01-07 · in Hobby x86 kernel written with Zig
  9. …such a library. [^]: Being able to create brand new types at `comptime` isn't [yet implemented]( https://github.com/ziglang/zig/issues/383 ), so this can't quite be done yet, though you could fake it with `get`/`set` methods instead of…
    comment by curtisf · 2020-01-06 · in Hobby x86 kernel written with Zig
  10. ▲ 1
    Why Zig When There Is Already CPP, D, and Rust?
    story by ironchief · 2020-01-06 · 0 comments
  11. …so it could be tricky to use for kernel programming. [0] https://github.com/jzck/kernel-rs [1] https://github.com/ziglang/zig/issues/943 [2] https://www.youtube.com/watch?v=iWRrkuFCYXQ
    comment by jackhalford · 2020-01-06 · in Hobby x86 kernel written with Zig
  12. Shout out to [zig]( https://github.com/ziglang/zig ) as a modern alternative to C.
    comment by pgruenbacher · 2019-12-26 · in I love coding in C
  13. …for Zig to be able to bootstrap itself. Usually, this means the language is mature enough. [1] https://github.com/ziglang/zig/projects/2
  14. …"test". 0.5.0 Documentation https://ziglang.org/documentation/0.5.0/#Introduction root std library https://github.com/ziglang/zig/tree/master/lib/std examples of writing and reading to a file https://github.com/ziglang/zig/blob/master/lib/s…
  15. …flag into the wrong register! -- but unfortunately those don't quite work right on ARMv4T yet: https://github.com/ziglang/zig/issues/2767
  16. The issue to get rid of the llvm-objcopy build dependency is https://github.com/ziglang/zig/issues/2826 . This appears to be the only thing that is currently required to be installed besides Zig itself.
    comment by AndyKelley · 2019-12-09 · in Game Boy Advance “Hello World” Using Zig
  17. …about. Just look at all the comments and controversy on this ticket about zig not supporting tabs: https://github.com/ziglang/zig/issues/544 . Consider how much time has been spent making auto-formatters, and making them preserve things…
  18. The zig wrapper is only a minimal experiment and work in progress now, also I've hit a little bug :) https://github.com/ziglang/zig/issues/3211 BUT the sokol_app.h and sokol_gfx.h headers require an underlying platform 3D-API (e.g. GL,…
    comment by flohofwoe · 2019-10-02 · in Making a RISC-V Operating System Using Rust
  19. There's a task to rename UB to illegal behavior: https://github.com/ziglang/zig/issues/2402 As well as some followups to see if Zig can detect all of these errors: * https://github.com/ziglang/zig/issues/1966 *…
    comment by fengb · 2019-09-30 · in Zig 0.5.0 Release Notes
  20. https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al...
    comment by rhodysurf · 2019-09-30 · in Zig 0.5.0 Release Notes
  21. …is an excellent example for avoiding that. Does anybody use Zig + fmt? I know they have something. https://github.com/ziglang/zig/issues/1523
    comment by StreamBright · 2019-09-30 · in Zig 0.5.0 Release Notes
  22. Can you though? I cant get cURL to work: https://github.com/ziglang/zig/issues/988
    comment by svnpenn · 2019-09-30 · in Zig 0.5.0 Release Notes
  23. https://github.com/ziglang/zig/wiki/FAQ#where-is-the-documen...
    comment by AndyKelley · 2019-09-30 · in Zig 0.5.0 Release Notes
  24. …complexity. One of Zig's philosophy was simplicity[1], but I do not think it applies now. [1] https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al...
    comment by johnisgood · 2019-09-30 · in Zig 0.5.0 Release Notes
  25. Looks like its still lacking in network support: https://github.com/ziglang/zig/issues/2007 I wonder though, does it already have socket support? that could be a stopgap for me. Edit, looks like it doesnt have sockets either:…
    comment by svnpenn · 2019-09-30 · in Zig 0.5.0 Release Notes
  26. …Zig[0] recently merged a change to try and tackle the use case of [a]sync-agnostic functions: https://github.com/ziglang/zig/issues/1778 . The "What Color is Your Function" blog post appears to have been one of the inspirations behind the…
  27. …That doesn't mean it will necessarily be added, but it's something the community is thinking about. https://github.com/ziglang/zig/issues/1669
    comment by Jayschwa · 2019-08-09 · in What Is Zig's Comptime?
  28. …to memory. Zig's release-safe mode is worlds away from "the memory bugs that exist in C". See also: https://github.com/ziglang/zig/issues/2301
    comment by jorangreef · 2019-08-09 · in What Is Zig's Comptime?
  29. The stage 1 compiler is written in C++, but the Stage 2 compiler will be Zig: https://github.com/ziglang/zig#stage-2-build-self-hosted-zig... Eventually, i'll be Zig all the way down, but the language needs to get to the point where it can…
    comment by euan_torano · 2019-08-09 · in What Is Zig's Comptime?
  30. …://code.google.com/p/chromium/issues/detail?id=269623 - https://github.com/wahern/cqueues/issues/56 - https://github.com/ziglang/zig/issues/2425
  31. I like Zig, but it doesnt even have a HTTP client yet: https://github.com/ziglang/zig/issues/2007 granted neither does C, but C has cURL, and Zig doesnt (and wont) have cURL binding: https://github.com/ziglang/zig/issues/2056
    comment by svnpenn · 2019-06-06 · in Nim 0.20.0 (1.0 RC1) released
  32. https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al...
  33. ▲ 44
    Ziglang – robust, optimal, and maintainable programming language
    story by rodmena · 2019-05-07 · 15 comments
  34. …://ziglang.org/#A-fresh-take-on-error-handling But the one I posted is from GitHub, where it has e.g: https://github.com/ziglang/zig/blob/8139c5a516eaa217ed76acdf... also: https://github.com/ziglang/zig/blob/92d9cef07116da8639ac33b7...
  35. …Parameters can have `noalias` on them. This is [currently undocumented]( https://github.com/ziglang/zig/issues/1521 ) and [not yet safety checked]( https://github.com/ziglang/zig/issues/476 ) and there is an [open area of research
    comment by AndyKelley · 2019-05-02 · in The Zig Programming Language
  36. I think we just need a terminology update: https://github.com/ziglang/zig/issues/2402 Would you feel better if it was called "illegal behavior"? In the safe build modes of Zig, integer arithmetic, shifting, wrong union field access, etc is…
    comment by AndyKelley · 2019-05-02 · in The Zig Programming Language
  37. Yes: https://github.com/ziglang/zig/tree/master/src-self-hosted Right now progress is blocking on [The Coroutine Rewrite Issue]( https://github.com/ziglang/zig/issues/2377 ).
    comment by AndyKelley · 2019-05-02 · in The Zig Programming Language
  38. It's [planned]( https://github.com/ziglang/zig/issues/615 ). The feature will only be present in the self-hosted compiler, not the "stage1" C++ compiler, which is what is currently shipped. It'll be especially well suited for this kind of…
    comment by AndyKelley · 2019-05-02 · in The Zig Programming Language
  39. Looks like someone just filed the lack of samples as an issue: https://github.com/ziglang/zig/issues/2218
    comment by daurnimator · 2019-04-09 · in Zig 0.4.0 Released
  40. …of a skeptic but Zig and Jai aren't going anywhere. Zig appears to be a largely single contibutor ( https://github.com/ziglang/zig/graphs/contributors the creator has < 2/3 of commits). Jai does not have a public compiler and is not likely…
    comment by rat87 · 2019-04-09 · in Zig 0.4.0 Released
  41. …hopefully reduces this barrier. There was a long issue regarding hard tabs with discussion here: https://github.com/ziglang/zig/issues/544
    comment by tiehuis · 2019-04-09 · in Zig 0.4.0 Released
  42. …with a nice introduction: https://andrewkelley.me/post/intro-to-zig.html and an examples directory: https://github.com/ziglang/zig/tree/master/example Interesting to see how the language has evolved away from using "%" in the original…
    comment by dmix · 2019-04-09 · in Zig 0.4.0 Released
  43. …stack overflow while keeping recursion (by enabling the user to allocate stack frames in the heap). https://github.com/ziglang/zig/issues/1639
  44. ▲ 2
    GitHub gains syntax highlighting support for Zig
    story by AndyKelley · 2019-02-09 · 0 comments
  45. https://github.com/ziglang/zig/issues/853
    comment by AndyKelley · 2019-01-08 · in C++ Headers are Expensive
  46. …video: > Documentation is about 80% done And yet there is not standard library documentation. :( https://github.com/ziglang/zig/issues/965
    comment by gbuk2013 · 2018-11-11 · in Zig: software should be perfect [video]
  47. I think Zig would be better suited. See: https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al...
  48. Can you link to Nim's userland implementation of printf? Here's zig: https://github.com/ziglang/zig/blob/822d4fa216ea8f598e4a9d53...
  49. ▲ 141
    Why Zig When There Is Already CPP, D, and Rust? (2017)
    story by luu · 2018-10-14 · 145 comments
  50. There's an allocator in the standard library that is specifically designed to fail. https://github.com/ziglang/zig/blob/master/std/debug/failing...
    comment by AnIdiotOnTheNet · 2018-09-21 · in LLVM 7.0.0 released