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. …and what people are using in reality is the stage1 compiler, which does not accept hard tabs. https://github.com/ziglang/zig/wiki/FAQ#why-does-zig-force-m...
    comment by gmcabrita · 2020-07-11 · in Announcing The Zig Software Foundation
  2. Answered clearly here https://github.com/ziglang/zig/wiki/FAQ#why-does-zig-force-m...
  3. …much in terms of memory safety, Zig [1] might be a better alternative + it actually exists. 1 - https://github.com/ziglang/zig
  4. Zig. There's a Why Zig When There is Already CPP, D, and Rust? writeup at https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al...
  5. …is one other language that managed to avoid that problem too by using compile-time magic [0]. [0] https://github.com/ziglang/zig/issues/1778
    comment by MrBuddyCasino · 2020-05-16 · in State of Loom
  6. There's ongoing work to add support for generating arbitary types at compile time: https://github.com/ziglang/zig/issues/383 .
  7. …offering there help it would be annoying. There are already more that three hundreds proposals: https://github.com/ziglang/zig/issues?q=is%3Aissue+is%3Aopen... A lot of them are about the syntax. Maybe this won't be endless but I'm sure a…
  8. …complaint at all. Perhaps you could you elaborate, provide a reference, or soften your stance? [1]: https://github.com/ziglang/zig/wiki/FAQ#why-does-zig-force-m...
  9. …actively in development with an engaging and helpful community.[2] [1]: https://ziglang.org/ [2]: https://github.com/ziglang/zig/wiki/Community
  10. …but still WIP? Is there a commit or series of commits showing recent targets that got support? [1] https://github.com/ziglang/zig/issues/853
  11. 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
  12. …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
  13. …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...
  14. The zig project was also plagued with issues around VCRUNTIME140_1.dll. See https://github.com/ziglang/zig/issues/3391
  15. …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
  16. 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:…
  17. …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…
  18. 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
  19. …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
  20. …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
  21. 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
  22. …for Zig to be able to bootstrap itself. Usually, this means the language is mature enough. [1] https://github.com/ziglang/zig/projects/2
  23. …"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…
  24. …flag into the wrong register! -- but unfortunately those don't quite work right on ARMv4T yet: https://github.com/ziglang/zig/issues/2767
  25. 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
  26. …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…
  27. 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
  28. 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
  29. 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
  30. …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
  31. 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
  32. https://github.com/ziglang/zig/wiki/FAQ#where-is-the-documen...
    comment by AndyKelley · 2019-09-30 · in Zig 0.5.0 Release Notes
  33. …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
  34. 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
  35. …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…
  36. …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?
  37. …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?
  38. 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?
  39. …://code.google.com/p/chromium/issues/detail?id=269623 - https://github.com/wahern/cqueues/issues/56 - https://github.com/ziglang/zig/issues/2425
  40. 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
  41. https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al...
  42. …://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...
  43. …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
  44. 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
  45. 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
  46. 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
  47. 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
  48. …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
  49. …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
  50. …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