home.social

#zig — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #zig, aggregated by home.social.

fetched live
  1. 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.

  2. 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.

  3. 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...

    #zig #programming #mbr

  4. 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...

    #zig #programming #mbr

  5. 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".

    #zig #programming

  6. 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".

    #zig #programming

  7. 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.

    #zig #programming

  8. 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.

    #zig #programming

  9. Having lots of fun with Zig today while creating a simple Brainfuck interpreter. codeberg.org/rustydev/brainfuc

    #zig

  10. 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.

    opensourcefeed.org/cachyos-aug

    #CachyOS #Linux #ArchLinux #FOSS #Zig #Rust

  11. 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.

    opensourcefeed.org/cachyos-aug

    #CachyOS #Linux #ArchLinux #FOSS #Zig #Rust

  12. ⚡ 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

  13. ⚡ 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

  14. 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.

    #programming #zig

  15. 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.

    #programming #zig

  16. 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.Init and 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.

    #zig

  17. 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 main branch, 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 #wasm #forge #git #plugin

  18. 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 main branch, 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 #wasm #forge #git #plugin

  19. July brought dockable panels, themes, localization, in-game GUI, FBX import, image-based lighting, HDR post-processing, cascaded shadows, SSAO, GPU-driven culling, and Windows support.

    turian.mass4.org/blog/2026-jul

  20. 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: schedule and httpClient https://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!

    #zig #wasm #forge #git #opensource #buildinpublic

  21. 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: schedule and httpClient https://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!

    #zig #wasm #forge #git #opensource #buildinpublic

  22. 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.
    youtube.com/watch?v=zLZwpH5lCD4

  23. 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.
    youtube.com/watch?v=zLZwpH5lCD4

  24. 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:

    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!

    cosroe.com/kerrz/wasm.html

  25. 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.

    nandan.me/writing/the-post-qua

    #Zig #Cryptography #PostQuantum

  26. 🎉 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. 🐢💻✨
    xn--gckvb8fzb.com/a-gtk4-ssh-a #Zig #HackerNews #ngated

  27. 🎉 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. 🐢💻✨
    xn--gckvb8fzb.com/a-gtk4-ssh-a #Zig #HackerNews #ngated

  28. Wanted to point out in case you’re unaware that #Zig has a simple, clear no LLM contribution policy with no ifs and buts ziglang.org/code-of-conduct/

  29. Wanted to point out in case you’re unaware that #Zig has a simple, clear no LLM contribution policy with no ifs and buts ziglang.org/code-of-conduct/

  30. 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

    CC: @ptribble @SolarisDiaspora

  31. 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

    linuxeasy.org/shelly-3-0-rinno