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
-
…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 -
Answered clearly here https://github.com/ziglang/zig/wiki/FAQ#why-does-zig-force-m...
comment by O_H_E · 2020-06-28 · in Using Zig to provide stack traces on kernel panic on bare metal (2018) -
…much in terms of memory safety, Zig [1] might be a better alternative + it actually exists. 1 - https://github.com/ziglang/zig
comment by AsyncAwait · 2020-05-23 · in Ask HN: What startup/technology is on your 'to watch' list? -
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...
comment by chx · 2020-05-23 · in Ask HN: What startup/technology is on your 'to watch' list? -
…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 -
There's ongoing work to add support for generating arbitary types at compile time: https://github.com/ziglang/zig/issues/383 .
comment by logicchains · 2020-05-06 · in Circle – A C++ compiler with compile-time imperative metaprogramming -
…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…
comment by kreco · 2020-04-29 · in Better C – A subset of D Programming Language -
…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...
comment by schaefer · 2020-04-28 · in Better C – A subset of D Programming Language -
…actively in development with an engaging and helpful community.[2] [1]: https://ziglang.org/ [2]: https://github.com/ziglang/zig/wiki/Community
comment by anand-bala · 2020-04-21 · in Why should I have written ZeroMQ in C, not C++ (2012) -
…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
comment by wyldfire · 2020-03-26 · in Zig cc: A drop-in replacement for GCC/Clang -
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 -
…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
comment by pjmlp · 2020-03-25 · in Zig cc: A drop-in replacement for GCC/Clang -
…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...
comment by dnautics · 2020-03-25 · in Zig cc: A drop-in replacement for GCC/Clang -
The zig project was also plagued with issues around VCRUNTIME140_1.dll. See https://github.com/ziglang/zig/issues/3391
comment by daurnimator · 2020-02-08 · in Dolphin Progress Report: December 2019 and January 2020 -
…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 -
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:…
comment by AndyKelley · 2020-01-11 · in T1: A Modern Programming Language for Constrained Environments -
…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…
comment by AndyKelley · 2020-01-08 · in Show HN: Beef, a new performance-oriented programming language -
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 -
…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 -
…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 -
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 -
…for Zig to be able to bootstrap itself. Usually, this means the language is mature enough. [1] https://github.com/ziglang/zig/projects/2
comment by xvilka · 2019-12-09 · in Game Boy Advance “Hello World” Using Zig -
…"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…
comment by crowhack · 2019-12-09 · in Game Boy Advance “Hello World” Using Zig -
…flag into the wrong register! -- but unfortunately those don't quite work right on ARMv4T yet: https://github.com/ziglang/zig/issues/2767
comment by csande17 · 2019-12-09 · in Game Boy Advance “Hello World” Using Zig -
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 -
…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…
comment by earenndil · 2019-10-04 · in Ask HN: Why hasn't visual programming taken over? -
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 -
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 -
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 -
…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 -
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 -
https://github.com/ziglang/zig/wiki/FAQ#where-is-the-documen...
comment by AndyKelley · 2019-09-30 · in Zig 0.5.0 Release Notes -
…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 -
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 -
…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…
comment by Jayschwa · 2019-08-16 · in Async-std: an async port of the Rust standard library -
…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? -
…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? -
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? -
…://code.google.com/p/chromium/issues/detail?id=269623 - https://github.com/wahern/cqueues/issues/56 - https://github.com/ziglang/zig/issues/2425
comment by daurnimator · 2019-06-19 · in EINTR and PC Loser-Ing: The “Worse Is Better” Case Study (2011) -
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 -
https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al...
comment by dinglejungle · 2019-05-07 · in Ziglang – robust, optimal, and maintainable programming language -
…://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...
comment by coldtea · 2019-05-06 · in Tetris clone written in Zig running on WebGL and WebAssembly -
…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 -
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 -
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 -
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 -
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 -
…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 -
…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 -
…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