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. The "Support WASIX" [1] link shows up there, that's what led to this. [1] https://github.com/ziglang/zig/issues/17115
    comment by wyldfire · 2023-09-17 · in Bounties Damage Open Source Projects
  2. Wasmer attempted to do this in the Ziglang repo barely 4 days ago: https://github.com/ziglang/zig/issues/17115
    comment by ayewo · 2023-09-15 · in Should I Rust or Should I Go?
  3. ▲ 2
    Support Wasix in Ziglang
    story by ayewo · 2023-09-14 · 0 comments
  4. Link to GitHub issue: https://github.com/ziglang/zig/issues/17115 Wasmer offered a bounty of $5,000 for completion and merging was optional, the only requirement was to pass a test suite.
    comment by aquariusDue · 2023-09-14 · in Bounties Damage Open Source Projects
  5. …using comptime. It parses the format string and validates the arguments at compile time. See https://github.com/ziglang/zig/blob/master/lib/std/fmt.zig I also toyed around with turning a math equation dsl into compiled statements at…
    comment by Laremere · 2023-09-09 · in Learning Zig
  6. …I tried pulling a very simple SDL2 project off github and building it on my macbook M1 and hit https://github.com/ziglang/zig/issues/12069 . Homebrew also has no option for --HEAD, so I don't know if I'm running into a fixed issue or what.…
    comment by BaculumMeumEst · 2023-09-09 · in Learning Zig
  7. …from a number of miscompilation [0] that is quite higher than for a more mature compiler. [0]: https://github.com/ziglang/zig/issues?q=is%3Aopen+is%3Aissue...
    comment by KolmogorovComp · 2023-09-07 · in Bun 1.0 announcement [video]
  8. …the compiler error (as in, prevents compilation) for unused local variables. See discussion here: https://github.com/ziglang/zig/issues/335#issuecomment-10011...
    comment by alwaysbeconsing · 2023-09-03 · in Focus: A simple and fast text editor written in Jai
  9. We also migrated all compile-time types and values to be stored in a similar fashion: https://github.com/ziglang/zig/pull/15569 Perf was a bit of a wash on this one but it means we can serialize most of the compiler's state with a single…
    comment by AndyKelley · 2023-08-26 · in How to speed up the Rust compiler
  10. Zig did go on to apply the same style to their two later IRs, ZIR ( https://github.com/ziglang/zig/pull/8266 ) and AIR ( https://github.com/ziglang/zig/pull/9353 ). These don't look as thoroughly benchmarked (at least not on the PRs) but…
    comment by Rusky · 2023-08-26 · in How to speed up the Rust compiler
  11. …from an RDBMS. The closest thing I've seen in a compiler is rather Zig's AST memory layout work: https://github.com/ziglang/zig/pull/7920 . But this is a very "hand-crafted" version of what an RDBMS does.
    comment by Rusky · 2023-08-25 · in How to speed up the Rust compiler
  12. …in prod - he acknowledges there are potential security flaws that should be revisited before 1.0 ( https://github.com/ziglang/zig/pull/4929 ) I just feel like there is a lot of hair splitting here.
    comment by nonethewiser · 2023-08-24 · in Bun v0.8
  13. …only TLS 1.3 is implemented, which means that HTTPS requests are going to fail with many servers: https://github.com/ziglang/zig/issues/14172 I believe a 3rd party TLS package is available, but something to think about.
  14. …I'd recommend reading the GH issues and comments I've linked below to get a better idea of it. [1]: https://github.com/ziglang/zig/issues/16270#issuecomment-161... [2]: https://github.com/andrewrk/ffmpeg [3]:…
    comment by messe · 2023-08-22 · in Extend a C/C++ Project with Zig (2021)
  15. Versioned link: https://github.com/ziglang/zig/blob/b835fd90cef1447904d3b009...
    comment by LoganDark · 2023-08-11 · in Fastest branchless binary search
  16. …find, rather it calls to C++. Zig’s binary search is here, it’s an unoptimized textbook version: https://github.com/ziglang/zig/blob/b835fd90cef1447904d3b009... At TigerBeetle, we have our own branchless implementation here:…
    comment by matklad · 2023-08-11 · in Fastest branchless binary search
  17. The Zig stdlib does not call out to C++ for binary search. The binary search is currently here: https://github.com/ziglang/zig/blob/b835fd90cef1447904d3b009... (edit: fixed link to not decay, thanks)
    comment by anonymoushn · 2023-08-11 · in Fastest branchless binary search
  18. Not really: https://github.com/ziglang/zig/issues/16270#issuecomment-161...
    comment by ttrei · 2023-08-11 · in A Modern C Development Environment
  19. …every time. [2] [1] e.g. https://github.com/ddovod/jet-live , https://github.com/crosire/blink , https://github.com/ziglang/zig/issues/68 [2] https://rr-project.org/
    comment by kvemkon · 2023-08-11 · in A Modern C Development Environment
  20. …standard library source code [1] for examples. [0]: https://ziglang.org/documentation/0.11.0/ [1]: https://github.com/ziglang/zig/tree/master/lib/std
    comment by rgrmrts · 2023-08-04 · in Zig 0.11
  21. …etc. 3. There are no generics, but your functions can accept anytype, which is still type-safe. See https://github.com/ziglang/zig/blob/9c05810be60756e07bd7fee0... and note the return type is "computed" from the type of the input. 4. Types…
    comment by cztomsik · 2023-08-04 · in Zig 0.11
  22. Their biggest release in terms of issues closed: https://github.com/ziglang/zig/milestones?state=closed 1012 in less than 8 months. What an amazing feat.
    comment by captainhorst · 2023-08-04 · in Zig 0.11
  23. …allocation is a big help vs. having to rewrite every type yourself or use `no_std` variants. [1] https://github.com/ziglang/zig/issues/2974 [2] https://github.com/evanw/esbuild/issues/189#issuecomment-647...
    comment by armchairhacker · 2023-08-04 · in Zig 0.11
  24. Happens a lot with Zig's builtin functions: See https://github.com/ziglang/zig/issues?q=is%3Aissue+mentions%... for example
  25. Related: this pull request that was merged last night: https://github.com/ziglang/zig/pull/16558 Currently only enabled for debug builds of the compiler, but there's talk there about making it a more general purpose tool for finding where…
    comment by AndyKelley · 2023-07-26 · in Memory Copy Hunting
  26. …provide the required guarantees with required ergonomics, but this is being actively worked on: - https://github.com/ziglang/zig/issues/2765 - https://github.com/ziglang/zig/issues/12251 - https://github.com/ziglang/zig/issues/5973 In the…
    comment by matklad · 2023-07-26 · in Memory Copy Hunting
  27. …do not expect this to be a big problem once static analysis symbols can be enforced as unique (see https://github.com/ziglang/zig/issues/14656#issuecomment-143... and follow-up for the use cases of static analysis tooling). Also, since…
  28. What I'm really waiting for is zig support for custom range ints https://github.com/ziglang/zig/issues/3806 Also minor nitpick I have is that the interval/range syntax in zig is pretty confusing as it can be both inclusive and exclusive…
    comment by Cloudef · 2023-07-04 · in Problems of C, and how Zig addresses them
  29. Whoa, I haven't been keeping up to date about this, there seems to be good related discussion here: https://github.com/ziglang/zig/issues/7295 I'll hope for some future news of Zig having vector and complex number support! It will be a…
    comment by pixelpoet · 2023-07-03 · in Problems of C, and how Zig addresses them
  30. There's a proposal for complex numbers: https://github.com/ziglang/zig/issues/16278 Vectors are already first-class types via @Vector, aren't they?
  31. …recommend you do this). [0] https://ziglang.org/documentation/master/#Doc-Comment-Guidan... [1] https://github.com/ziglang/zig/blob/0dffab7356685c7643aa6e3c...
  32. …the new (k,v) pair? I can see that the difference between the two is in self.growIfNeeded() call, https://github.com/ziglang/zig/blob/0dffab7356685c7643aa6e3c... , which the one that doesn't allocate really doesn't have. Does it assume…
    comment by menaerus · 2023-07-03 · in Problems of C, and how Zig addresses them
  33. Compare these two methods: https://github.com/ziglang/zig/blob/0dffab7356685c7643aa6e3c... https://github.com/ziglang/zig/blob/0dffab7356685c7643aa6e3c... One of them requires passing an allocator (and can allocate), the other doesn’t have…
    comment by matklad · 2023-07-03 · in Problems of C, and how Zig addresses them
  34. …-% zero) *% mmmm); if (result > 9999) return error.CertificateTimeInvalid; return result; } source: https://github.com/ziglang/zig/blob/fc9ab5f0e838196e99d1706e... machine code example: https://godbolt.org/z/ezrPEdPx7
  35. Here’s a list of rejected proposals made by the BDFL: https://github.com/ziglang/zig/issues?q=is%3Aissue+label%3Ap...
    comment by somethingor · 2023-06-30 · in File for divorce from LLVM
  36. It’ll still output LLVM bitcode, but it won’t depend on LLVM libs anymore https://github.com/ziglang/zig/issues/13265
    comment by cobbzilla · 2023-06-30 · in File for divorce from LLVM
  37. ▲ 353
    File for divorce from LLVM
    story by detaro · 2023-06-30 · 161 comments
  38. ▲ 3
    Show HN: I built the DuckDB extension template with Nix and the Zig C compiler
    story by rupurt · 2023-06-23 · 0 comments
  39. …the ability to opt out at the individual parameter level (and with safety checks in debug builds). https://github.com/ziglang/zig/issues/1108 Either way we can definitely thank Rust for blazing the trail. noalias in LLVM had never been…
    comment by EscapeFromNY · 2023-06-17 · in Rust vs Zig Benchmarks
  40. …gs.debian.org/cgi-bin/bugreport.cgi?bug=995670 2. we don't tell you to "just use a snap.". Please see https://github.com/ziglang/zig/#installation 3. we tag releases soon after llvm tags releases for the convenience of package maintainers.…
    comment by AndyKelley · 2023-06-01 · in Zig is hard but worth it
  41. …everything to and from C at the binary interface, and losing all ziggyness in the process. [1] https://github.com/ziglang/zig/issues/3786
    comment by bitshiffed · 2023-06-01 · in Zig is hard but worth it
  42. This comment suggests otherwise: https://github.com/ziglang/zig/issues/89#issuecomment-122118... Although I'm not sure the "self hosted compiler" is the same as "llvm free backend".
  43. looks like the project's now abandonned : https://github.com/ziglang/zig/projects/2
  44. My understanding is that it's there to allow for testing the client. Relevant issue: https://github.com/ziglang/zig/issues/910
  45. ▲ 267
    Zig now has built-in HTTP server and client in std
    story by huydotnet · 2023-05-18 · 174 comments
  46. …that achieves the trifecta: high performance, tiny machine code size, and fundamentally simple. https://github.com/ziglang/zig/blob/c1add1e19ea35b4d96fbab31...
    comment by AndyKelley · 2023-05-17 · in Bun 0.6
  47. …language. Btw, Zig is beating trees with a stick to see what may fall down in this area: https://github.com/ziglang/zig/issues/12484
    comment by ojosilva · 2023-05-17 · in Bun 0.6
  48. ▲ 5
    Zig now has HTTP server in std
    story by alexbezhan · 2023-05-11 · 0 comments
  49. ▲ 7
    Removing branch from ArrayList.ensureTotalCapacity
    story by davikr · 2023-05-04 · 0 comments
  50. https://github.com/ziglang/zig/issues/6966 was discussed
    comment by nyberg · 2023-05-02 · in SIMD with Zig