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
-
…stack overflow while keeping recursion (by enabling the user to allocate stack frames in the heap). https://github.com/ziglang/zig/issues/1639
comment by lasagnaphil · 2019-02-18 · in JPL Institutional Coding Standard for the C Programming Language (2009) [pdf] -
https://github.com/ziglang/zig/issues/853
comment by AndyKelley · 2019-01-08 · in C++ Headers are Expensive -
…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] -
I think Zig would be better suited. See: https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al...
comment by jorangreef · 2018-11-08 · in Is it time to rewrite the operating system in Rust? [slides] -
Can you link to Nim's userland implementation of printf? Here's zig: https://github.com/ziglang/zig/blob/822d4fa216ea8f598e4a9d53...
comment by AndyKelley · 2018-10-14 · in Why Zig When There Is Already CPP, D, and Rust? (2017) -
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 -
…fail will either be `if`, `while`, `catch`, or `try`, in order to deal with the error case. [1]: https://github.com/ziglang/zig/blob/e3d8cae35a5d194386eacd9a... [2]: https://ziglang.org/documentation/master/#Error-Set-Type
comment by AndyKelley · 2018-09-19 · in LLVM 7.0.0 released -
…as how it does in clang with -O3. There's an open issue for adding guaranteed tail call semantics: https://github.com/ziglang/zig/issues/694 it's an important issue for the project because one of the things it is tackling is the problem of…
comment by AndyKelley · 2018-09-19 · in LLVM 7.0.0 released -
I understand the question, but as @AndyKelley taught me ( https://github.com/ziglang/zig/pull/993#commitcomment-289183... ), it is actually worse to zero a value unnecessarily if you can use Valgrind/sanitizers to check for uninitialized…
comment by isaachier · 2018-08-10 · in Reading the NSA’s codebase: LemonGraph review -
…because of eager execution, the ref is guaranteed. [1]: http://llvm.org/docs/Coroutines.html [2]: https://github.com/ziglang/zig/blob/363f4facea7fac2d6cfeab9d...
comment by AndyKelley · 2018-07-16 · in Async and Await in Rust: a full proposal -
Learn Zig ( https://github.com/ziglang/zig ). Aims to be lightweight alternative to Rust, similar to how C is lightweight alternative to C++. Both Zig and Rust use LLVM backend and borrow some concepts from the LLVM IR.
comment by isaachier · 2018-07-04 · in Ask HN: Best programming language or theory to learn before learning Rust? -
…pointer reform [0]. There are a lot of other changes too, but that one's the most noticeable. [0] https://github.com/ziglang/zig/issues/770
comment by AnIdiotOnTheNet · 2018-07-02 · in Pointers Are More Abstract Than You Might Expect in C -
…even than hand-tuned assembly) SHA-2 [1] [0] https://andrewkelley.me/post/intro-to-zig.html , https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al... [1] https://ziglang.org/download/0.2.0/release-notes.html , it's also mentioned…
comment by MaxBarraclough · 2018-07-02 · in Pointers Are More Abstract Than You Might Expect in C -
…is being developed by a high-performance game designer for the usecase of high-performance games." https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al...
comment by slobotron · 2018-06-07 · in I Quit My Job to Live on Donations to Zig -
https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al...
comment by AndyKelley · 2018-06-07 · in I Quit My Job to Live on Donations to Zig -
https://github.com/ziglang/zig and Jonathan Blow's JAI language seem to be contenders for C replacement.
comment by backpropaganda · 2018-05-30 · in Depressing and faintly terrifying days for the C standard [pdf] -
…quirks around varargs (such as using not being able to use varargs functions at comptime). [1] https://github.com/ziglang/zig/issues/130 [2] https://github.com/ziglang/zig/blob/15302e84a45a04cfe94a8842... [3]…
comment by tiehuis · 2018-05-30 · in Zig: programming language designed for robustness optimality and clarity [video] -
…Will have to see what the future holds. [1] https://ziglang.org/documentation/master/#Alignment [2] https://github.com/ziglang/zig/issues/1006
comment by tiehuis · 2018-05-30 · in Zig: programming language designed for robustness optimality and clarity [video] -
…SHA-256 demo tests in the talk show, Zig is as fast or faster than C. [1] http://ziglang.org [2] https://github.com/ziglang/zig
comment by espeed · 2018-05-30 · in Zig: programming language designed for robustness optimality and clarity [video] -
…is not called during program startup. I didn't find the zig issue for this feature so I created it: https://github.com/ziglang/zig/issues/1024 If we did the "Static control flow analysis" idea then zig would bench the same as the…
comment by AndyKelley · 2018-05-27 · in Comparing the C FFI overhead in various programming languages -
…accept an allocator at runtime, or possibly at either compile time or runtime." more in this wiki! https://github.com/zig-lang/zig/wiki/Why-Zig-When-There-is-A...
comment by jfo · 2018-01-24 · in Unsafe Zig Is Safer Than Unsafe Rust -
…explained in more detail in this wiki article, "Why Zig When There is Already C++, D, and Rust?": https://github.com/zig-lang/zig/wiki/Why-Zig-When-There-is-A...
comment by AndyKelley · 2017-11-10 · in The long goodbye to C -
…looks ambitious. But... It's not very pretty? Looks a bit like an unholy union of TeX and C? https://github.com/zig-lang/zig/blob/master/example/cat/main...
comment by e12e · 2017-10-17 · in Zig Programming Language 0.1.1: First beta release -
https://github.com/zig-lang/zig/wiki/Why-Zig-When-There-is-A...
comment by AndyKelley · 2017-10-17 · in Zig Programming Language 0.1.1: First beta release -
I was wondering why `inline if` would be necessary. Apparently it's already been removed: https://github.com/andrewrk/zig/commit/b78c91951a1db34c615a0...
comment by ndh2 · 2017-03-01 · in Compile-Time Evaluation in the Zig System Programming Language -
…There's a language you might like, but I can't _quite_ find it right now, gah. EDIT: Oh! Zig! https://github.com/andrewrk/zig
comment by steveklabnik · 2017-01-12 · in The Dark Path -
https://github.com/andrewrk/zig/issues/176
comment by codygman · 2016-08-30 · in Zig: a system language which prioritizes optimality, safety, and readability -
Make issues. I made one for the %% operator: https://github.com/andrewrk/zig/issues/176
comment by codygman · 2016-08-30 · in Zig: a system language which prioritizes optimality, safety, and readability -
https://github.com/andrewrk/zig/issues/176
comment by codygman · 2016-08-30 · in Zig: a system language which prioritizes optimality, safety, and readability -
https://github.com/andrewrk/zig/issues/89 As long as we rely on libclang and LLVM there will be a part of the compiler written in C++, and I foresee these dependencies sticking around.
comment by AndyKelley · 2016-08-29 · in Zig: a system language which prioritizes optimality, safety, and readability -
Zig ( https://github.com/andrewrk/zig ), "a system programming language intended to replace C", has a lot of those features.
comment by roryokane · 2016-08-04 · in Crystal: Fast as C, Slick as Ruby -
…much just copied GCC's syntax[1]. Do you have any specific suggestions on how to do better? [1]: https://github.com/andrewrk/zig/blob/master/std/linux_x86_64...
comment by AndyKelley · 2016-05-02 · in Inline assembly in Linux -
…person's work but I just got this working a few minutes ago and I'm really excited to demo it! [1]: https://github.com/andrewrk/zig [2]: https://github.com/andrewrk/tetris/blob/aaf09e30a3a7b9ed8f34... OK I think I understand what the…
comment by AndyKelley · 2016-02-01 · in ZL: A C/C++ Compatible Language with Hygienic Macros -
…it's a new programming language, we don't have the other types sitting there as a red herring. [1]: https://github.com/andrewrk/zig [2]: https://gist.github.com/andrewrk/131e6f48a15c42fc5ca8
comment by AndyKelley · 2016-01-08 · in How to C in 2016