#zig — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #zig, aggregated by home.social.
-
Doing some really interesting work for one of my clients now:
We have libraries for 7 or so different languages and want to ensure they all have equivalent test coverage. So now I define a shared test suite in (syntactically though not necessarily semantically valid) #Zig, then use the parsed `std.zig.Ast` to generate test files in the various target languages. Essentially a 1:n source-to-source compiler.
It works way better than I expected when I started and already uncovered some drift.
-
Doing some really interesting work for one of my clients now:
We have libraries for 7 or so different languages and want to ensure they all have equivalent test coverage. So now I define a shared test suite in (syntactically though not necessarily semantically valid) #Zig, then use the parsed `std.zig.Ast` to generate test files in the various target languages. Essentially a 1:n source-to-source compiler.
It works way better than I expected when I started and already uncovered some drift.
-
Moar progress, will probably move this into the struct along with MBR reconstruction from the struct. This might actually end up doing a bit of `fdisk` stuff...
-
Moar progress, will probably move this into the struct along with MBR reconstruction from the struct. This might actually end up doing a bit of `fdisk` stuff...
-
Tabs, Spaces, Hand Tools, and Seat Belts https://lobste.rs/s/xvezmx #ai #clojure #rust #zig
https://newsletter.powderworks.dev/p/tabs-spaces-hand-tools-and-seat-belts -
Tabs, Spaces, Hand Tools, and Seat Belts https://lobste.rs/s/xvezmx #ai #clojure #rust #zig
https://newsletter.powderworks.dev/p/tabs-spaces-hand-tools-and-seat-belts -
More `zig` fun: more modules, more problems...however, after some banging my head against a wall I've started getting data broken out from the MBR structure into the relevant parts. Lots of allocator calls, had to add a `deinit` to the struct to ensure that there weren't any leaks...overall it gets the job done even if it looks more complicated than it needs to be. I'm officially at the "know enough to be slightly dangerous".
-
More `zig` fun: more modules, more problems...however, after some banging my head against a wall I've started getting data broken out from the MBR structure into the relevant parts. Lots of allocator calls, had to add a `deinit` to the struct to ensure that there weren't any leaks...overall it gets the job done even if it looks more complicated than it needs to be. I'm officially at the "know enough to be slightly dangerous".
-
So, after some consideration I decided to break out the block device reading operations out into its own module. Also, the returned data is now in a struct with a `.deinit` method that will handle cleanups. It might be more complicated than necessary, but it's clean.
-
So, after some consideration I decided to break out the block device reading operations out into its own module. Also, the returned data is now in a struct with a `.deinit` method that will handle cleanups. It might be more complicated than necessary, but it's clean.
-
Having lots of fun with Zig today while creating a simple Brainfuck interpreter. https://codeberg.org/rustydev/brainfuck-zig
-
CachyOS August 2026 is out — the fifth release this year.
The headline change: Shelly, the default GUI package manager, is fully rewritten from C# to Zig. No managed runtime, native binaries, lower memory usage and faster startup. The UI also gets a welcome screen, list/grid browsing, AUR PKGBUILD previews, and a Utilities page.
-
CachyOS August 2026 is out — the fifth release this year.
The headline change: Shelly, the default GUI package manager, is fully rewritten from C# to Zig. No managed runtime, native binaries, lower memory usage and faster startup. The UI also gets a welcome screen, list/grid browsing, AUR PKGBUILD previews, and a Utilities page.
-
⚡ CachyOS (Lansarea din August 2026): Rescriere în Zig pentru Shelly și pregătiri intense pentru Server Edition!Echipa din spatele CachyOS — distribuția bazată pe Arch Linux renumită pentru optimizările sale agresive de performanță (compilare x86-64-v3/v4 și kernel-uri modificate) — a lansat actualizarea pentru luna august 2026. Această versiune aduce schimbări majore de arhitectură internă și extinde viziunea proiectului dincolo de desktop-ul de gaming.✨ Noutățile principale din lansarea CachyOS August 2026:⚡ Shelly rescris integral în limbajul Zig:• Utilitarul/instalatorul propriu al sistemului, Shelly, a fost complet rescris în Zig. Această tranziție oferă timp de execuție ultra-rapid, amprentă minimă pe memorie și o siguranță crescută a codului, eliminând dependențele greoaie din versiunile anterioare.🖥️ Pregătiri pentru prima ediție dedicată serverelor (CachyOS Server Edition):• Echipa pune bazele unei versiuni Server Edition concepută special pentru sarcini de lucru cu latență scăzută, containere și infrastructură de înaltă performanță. Aceasta va folosi profiluri de compilare dedicate și kernel-uri optimizate pentru throughput pe procesoare de server (AMD EPYC, Intel Xeon/Granite Rapids).⚙️ Actualizări de Kernel & Drivere:• Vine la pachet cu cele mai recente versiuni de kernel (optimizate cu patch-uri BORE / EEVDF scheduler).• Suport îmbunătățit din start pentru plăcile video NVIDIA (drivere din seria 555/560+ cu suport Wayland maturizat) și cele mai noi versiuni Mesa pentru GPU-urile AMD și Intel.🎮 Optimizări continue pentru Gaming & Handhelds:• Îmbunătățiri aduse instrumentului CachyOS Handheld Edition (pentru dispozitive precum Steam Deck, ROG Ally, Lenovo Legion Go), oferind un management mai bun al consumului energetic (TDP) și gestionare mai facilă a aplicațiilor Proton-GE și Wine-Cachyos.O lansare extrem de ambițioasă care confirmă statutul CachyOS de pionier în materie de performanță brută și inovație tehnică pe Linux! 🚀#CachyOS #ArchLinux #Zig #Linux #Performance #GamingOnLinux #LinuxServer #Linuxiac #TechNews #FOSS
-
⚡ CachyOS (Lansarea din August 2026): Rescriere în Zig pentru Shelly și pregătiri intense pentru Server Edition!Echipa din spatele CachyOS — distribuția bazată pe Arch Linux renumită pentru optimizările sale agresive de performanță (compilare x86-64-v3/v4 și kernel-uri modificate) — a lansat actualizarea pentru luna august 2026. Această versiune aduce schimbări majore de arhitectură internă și extinde viziunea proiectului dincolo de desktop-ul de gaming.✨ Noutățile principale din lansarea CachyOS August 2026:⚡ Shelly rescris integral în limbajul Zig:• Utilitarul/instalatorul propriu al sistemului, Shelly, a fost complet rescris în Zig. Această tranziție oferă timp de execuție ultra-rapid, amprentă minimă pe memorie și o siguranță crescută a codului, eliminând dependențele greoaie din versiunile anterioare.🖥️ Pregătiri pentru prima ediție dedicată serverelor (CachyOS Server Edition):• Echipa pune bazele unei versiuni Server Edition concepută special pentru sarcini de lucru cu latență scăzută, containere și infrastructură de înaltă performanță. Aceasta va folosi profiluri de compilare dedicate și kernel-uri optimizate pentru throughput pe procesoare de server (AMD EPYC, Intel Xeon/Granite Rapids).⚙️ Actualizări de Kernel & Drivere:• Vine la pachet cu cele mai recente versiuni de kernel (optimizate cu patch-uri BORE / EEVDF scheduler).• Suport îmbunătățit din start pentru plăcile video NVIDIA (drivere din seria 555/560+ cu suport Wayland maturizat) și cele mai noi versiuni Mesa pentru GPU-urile AMD și Intel.🎮 Optimizări continue pentru Gaming & Handhelds:• Îmbunătățiri aduse instrumentului CachyOS Handheld Edition (pentru dispozitive precum Steam Deck, ROG Ally, Lenovo Legion Go), oferind un management mai bun al consumului energetic (TDP) și gestionare mai facilă a aplicațiilor Proton-GE și Wine-Cachyos.O lansare extrem de ambițioasă care confirmă statutul CachyOS de pionier în materie de performanță brută și inovație tehnică pe Linux! 🚀#CachyOS #ArchLinux #Zig #Linux #Performance #GamingOnLinux #LinuxServer #Linuxiac #TechNews #FOSS
-
So, after searching far and wide on the internet I have managed to open a file from a command-line argument and read 10 bytes from it using Zig v0.16. I was not expecting it to be quite this complicated.
-
So, after searching far and wide on the internet I have managed to open a file from a command-line argument and read 10 bytes from it using Zig v0.16. I was not expecting it to be quite this complicated.
-
Who Should Pay For Source Code Availability? via @hugoarnal https://lobste.rs/s/rsztog #vcs #zig
https://kristoff.it/blog/source-code-availability/ -
Who Should Pay For Source Code Availability? via @hugoarnal https://lobste.rs/s/rsztog #vcs #zig
https://kristoff.it/blog/source-code-availability/ -
Who Should Pay For Source Code Availability?
https://fed.brid.gy/r/https://kristoff.it/blog/source-code-availability/
-
Started learning Zig and I found out that printing to stdout is surprisingly difficult. First of all, as of version 0.16.0, you need to have the main function accept
std.process.Initand then do a bunch of stuff preparing a writer interface before you can write. Second of all, the standard library changes very frequently between versions, which made it difficult to find how to do this. I guess this makes sense for a language that hasn't yet reached 1.0.0. -
Let's me introduce Firefly the new zig wasm plugin!
Install it, activate it, and add a few URLs to monitor, it will generate a beautiful status page for your production. Finally, a forge that lets you manage your app even after deployment!
Available now on the
mainbranch, or in the upcoming 0.5 release (planned for September).Reminder: this is my first time writing zig code, so please be indulgent 😅
Plugin: https://gitroot.dev/plugins/name/firefly.html
Doc: https://gitroot.dev/app/plugins/firefly/doc.html
Code: https://gitroot.dev/worktree/app/plugins/firefly/index.html -
Let's me introduce Firefly the new zig wasm plugin!
Install it, activate it, and add a few URLs to monitor, it will generate a beautiful status page for your production. Finally, a forge that lets you manage your app even after deployment!
Available now on the
mainbranch, or in the upcoming 0.5 release (planned for September).Reminder: this is my first time writing zig code, so please be indulgent 😅
Plugin: https://gitroot.dev/plugins/name/firefly.html
Doc: https://gitroot.dev/app/plugins/firefly/doc.html
Code: https://gitroot.dev/worktree/app/plugins/firefly/index.html -
Zig's Io.Threaded is Neat https://lobste.rs/s/aegq82 #zig
https://matklad.github.io/2026/08/06/neat-io-threaded.html -
Zig's Io.Threaded is Neat https://lobste.rs/s/aegq82 #zig
https://matklad.github.io/2026/08/06/neat-io-threaded.html -
The first Zig plugin is almost ready to be merged! In the meantime, let's play a quick guessing game, can you guess what it's for?
Here are a few hints:
- it's a service we either don't have at all or have to pay for (never understood why our forges don't include it by default)
- it won't make much sense for gitroot on gitroot, but I'll use it anyway so I can show you what it looks like
- i had to add 2 new APIs to the plugin-sdk to build it:
scheduleandhttpClienthttps://gitroot.dev/CHANGELOG.html#unreleased
To find out the answer and get notified when it drops, give me a follow ;)
It'll be available with the upcoming release planned for this September!
-
The first Zig plugin is almost ready to be merged! In the meantime, let's play a quick guessing game, can you guess what it's for?
Here are a few hints:
- it's a service we either don't have at all or have to pay for (never understood why our forges don't include it by default)
- it won't make much sense for gitroot on gitroot, but I'll use it anyway so I can show you what it looks like
- i had to add 2 new APIs to the plugin-sdk to build it:
scheduleandhttpClienthttps://gitroot.dev/CHANGELOG.html#unreleased
To find out the answer and get notified when it drops, give me a follow ;)
It'll be available with the upcoming release planned for this September!
-
I really like #zig. I have not used it very much but I've been hearing great things about it and really like it's design.
One thing I do not like about #rust is it's package manager. I have long criticized the npm-like piling on of dependencies which leads to my Musicfetch having 600+ crates built-in. I much prefer the C and C++ dependency culture where one uses system libraries or a few vetted dependencies that are updated seldomly. This is just one thing that Zig does better than rust IMO and it also has an extensive standard library which means you don't have to pull in dependencies for things like randomness.
Did you know that Zig strictly forbids AI usage for contributions to it's compiler? That's neat!
Also the creator Andrew Kelley seems like a great person.
https://www.youtube.com/watch?v=zLZwpH5lCD4 -
I really like #zig. I have not used it very much but I've been hearing great things about it and really like it's design.
One thing I do not like about #rust is it's package manager. I have long criticized the npm-like piling on of dependencies which leads to my Musicfetch having 600+ crates built-in. I much prefer the C and C++ dependency culture where one uses system libraries or a few vetted dependencies that are updated seldomly. This is just one thing that Zig does better than rust IMO and it also has an extensive standard library which means you don't have to pull in dependencies for things like randomness.
Did you know that Zig strictly forbids AI usage for contributions to it's compiler? That's neat!
Also the creator Andrew Kelley seems like a great person.
https://www.youtube.com/watch?v=zLZwpH5lCD4 -
I've put a README on my pure #zig #fits library now that it is mature enough to do a great many things with binary tables:
https://codeberg.org/astro-group/zfits
You can even compile this library to #wasm for FITS in the browser. It's used in my kerrz #blackhole #raytracing demo and lets you download Cunningham's transfer function tables computed on your phone!
-
Zig's standard library ships one of NIST's two finalised post-quantum signature standards. This is the other one.
slh-dsa-zig v0.1.1 — pure Zig SLH-DSA (FIPS 205), the hash-based scheme whose security rests on SHA-2 and SHAKE rather than lattice assumptions. All 12 parameter sets, KAT-validated against NIST ACVP, constant-time verified under Valgrind in CI.
Experimental and unaudited. Harsh review welcome.
-
marionette: deterministic simulation testing library https://lobste.rs/s/qpamp4 #zig
https://github.com/sb2bg/marionette -
marionette: deterministic simulation testing library https://lobste.rs/s/qpamp4 #zig
https://github.com/sb2bg/marionette -
-
-
🎉 Breaking news for all 3 people who needed a #GTK4 #SSH-askpass in Zig! 🚀 We've finally moved past the stone age of #X11, just to appease the ultra-niche, hardened #Gentoo laptop users who apparently have a lot of time on their hands. 🐢💻✨
https://xn--gckvb8fzb.com/a-gtk4-ssh-askpass-in-zig/ #Zig #HackerNews #ngated -
🎉 Breaking news for all 3 people who needed a #GTK4 #SSH-askpass in Zig! 🚀 We've finally moved past the stone age of #X11, just to appease the ultra-niche, hardened #Gentoo laptop users who apparently have a lot of time on their hands. 🐢💻✨
https://xn--gckvb8fzb.com/a-gtk4-ssh-askpass-in-zig/ #Zig #HackerNews #ngated -
Wanted to point out in case you’re unaware that #Zig has a simple, clear no LLM contribution policy with no ifs and buts https://ziglang.org/code-of-conduct/
-
Wanted to point out in case you’re unaware that #Zig has a simple, clear no LLM contribution policy with no ifs and buts https://ziglang.org/code-of-conduct/
-
Paketverwaltung für #ArchLinux :archlinux: : #Shelly setzt künftig auf #Zig statt .NET | iX Magazin https://www.heise.de/news/Shelly-Ein-Werkzeug-fuer-Pacman-AUR-AppImages-und-Flatpak-11385187.html #dotNET #Linux :tux: #OpenSource #Arch #Flatpack
-
Paketverwaltung für #ArchLinux :archlinux: : #Shelly setzt künftig auf #Zig statt .NET | iX Magazin https://www.heise.de/news/Shelly-Ein-Werkzeug-fuer-Pacman-AUR-AppImages-und-Flatpak-11385187.html #dotNET #Linux :tux: #OpenSource #Arch #Flatpack
-
Successfully ported the complete #LLVM stack (version 19.1.7, including llvm's binutils, clang, ldd) to #Solaris 11 Express (snv_151a) #SPARC. This build of #Solaris works on #SPARC machines that Solaris 11 GA (and later) do not support (example: sun4u workstations and servers), as well as machines that #Illumos does not support completely. This may allow for #Zig and #Rust to be ported to this version of Solaris on SPARC. Complete source archives, build instructions, and signed binaries in SVR4 package format (and soon, IPS) will be available for download. #Solaris #SPARC #retrocomputing #Illumos #Sunmicrosystems
-
std.Io.Writer.Allocating ate all my memory via @vpol https://lobste.rs/s/eelfmn #zig
https://www.openmymind.net/std-io-writer-allocating-ate-my-memory/ -
“How Is The Bun Rewrite In Rust Going?”, Tom Lockwood (https://lockwood.dev/ai/2026/07/27/how-is-the-bun-rewrite-in-rust-going.html).
Via HN: https://news.ycombinator.com/item?id=49067854
On Lobsters: https://lobste.rs/s/vtev1n/how_is_bun_rewrite_rust_going
#Bun #NodeJS #Claude #ClaudeCode #Rust #Zig #SoftwareEngineering #Anthropic #JavaScript #Rewrites
-
Shelly 3.0 porta un importante aggiornamento al mondo Arch Linux: nuovo motore scritto in Zig, interfaccia GTK4 migliorata e gestione pacchetti più moderna. #Linux #ArchLinux #OpenSource #Pacman #Zig
-
Overengineered calculator: Zig + QBE https://lobste.rs/s/ozules #compilers #zig
https://tomekw.com/overengineered-calculator-zig-qbe/