the more i learn about #zig the less i like it

yall are pranking me, right? there is actually a way to parameterize an error value and return information about exactly what failed beyond just the type of error, right?

also you CAN have the same name in two different error sets without the compiler assuming they refer to the same thing, RIGHT?

a single global namespace across all compilation units? in 2016? there MUST be something i'm misunderstanding, surely!

also, coming from rust -- why are error values treated specially at all? why can't Zig have a Result<T,E> like Rust does, and let any type be returned as an error?

UPDATE: okay, i just read the docs some more, and having error values able to generate pseudo stack traces is incredibly cool and not really possible in rust without some moderately ugly macros and a LOT of hacking. still tho -- why no tagged union errorsets?

Memory Layout in Zig with Formulas

I was recently encouraged to watch A Practical Guide to Applying Data Oriented Design (DoD) by Andrew Kelley, the creator of Zig1. Just 10 minutes into the talk, I was confronted with a skill I had never formally learned… the arithmetic behind memory layout of types. Zig is a modern, C-like programming language which offers a safer, more memory-explicit experience for systems programming, without sacrificing low-level control or C interoperability. Notably, Zig makes it straightforward to manage memory allocation by treating allocators as first-class values rather than hidden globals. Instead of relying on an implicit runtime or a process-wide allocator, you pass explicit allocator objects into the code that needs them. This makes ownership and lifetimes much clearer, encourages you to design APIs around who is responsible for allocating and freeing memory, and makes it easy to swap in custom allocation strategies (e.g., arenas, scratch, tracking, etc.). ↩

Raymond Tana

Hi, I’m new here.

I’ve been learning compiler construction by building a small programming language and compiler in Zig.

It’s an experimental, learning-first project — rough edges included — and I’m sharing it to get feedback and invite contributions.

Repo: https://github.com/theunnecessarythings/sr-lang

#zig #programming #OpenSource

GitHub - theunnecessarythings/sr-lang: Personal experimental language.

Personal experimental language. Contribute to theunnecessarythings/sr-lang development by creating an account on GitHub.

GitHub
Catch compile time errors in your comptime assertion blocks in tests, skip runtime test execution: `zig test --test-no-exec <file.zig>` #ZigLang #Zig
L'intérêt de programmer en #Zig est qu'on peut écrire des articles entiers « Comment passer de la version 0.13 à la 0.15 » https://medium.com/computatrum-veneficus/zig-0-15-1-i-o-overhaul-understanding-the-new-reader-writer-interfaces-38cb5bf442cc

Eräät open source-projektit ongelmissa. Syy: tekoälyllä tehdyt PRt.

#aislop #FOSS #rant #tldraw #zig
https://youtu.be/uZy1M_s-8zs?si=WICeFXZQTfPYlFwt

"please stop" - maintainers

YouTube

Announcing a new #Guix release with version 1.5.0.

https://guix.gnu.org/en/blog/2026/gnu-guix-1.5.0-released/

Guix is a rolling release meaning users receive the latest updates continuously.
This release updates all the installation media when setting up Guix on a new system.

It can be used as a package manager on top of an existing Linux distribution (e.g. #debian, #ubuntu, #suse, #fedora, #archlinux, etc). Or it can be used as a stand-alone #linux distribution installed as #desktop #server or in the #cloud.

Since the previous release Guix has added 12,525 new packages and 29,932 packages have been updated.

- #KDE Plasma and a #declarative configuration service

- There are around 40 new system services to choose from such as Forgejo Runner and RabbitMQ

- Full-source bootstraps of the #Zig and #Mono their compilers are now available

- Other major updates include GCC 15.2.0, Emacs 30.2, Icecat and Librewolf 140, LLVM 21.1.8 and Linux-libre 6.17.12.

- Contributing teams building packages for areas including #openscience, #hpc, #electronics, #python, #astronomy and #rust

Read all about it on the blog and try out Guix now!

It's time to get back to my sanctum and work on some interesting project!

My plan is to try compiling a simple #zig program on #PlatformIO targeting an #arduino board.

https://www.youtube.com/watch?v=0KuA80xMlss

[Robotics Workbench]: Can I compile Zig on PlatformIO for Arduino?

YouTube
there are so many problems that we as computer scientists have solved within the last several years to decades with advances in programming language design that #zig un-solves in the name of C compatibility

🛰️ I Made Zig Compute 33 Million Satellite Positions in 3 Seconds. No GPU Required.

「 I've spent the past month optimizing SGP4 propagation and ended up with something interesting: astroz is now the fastest general purpose SGP4 implementation I'm aware of, hitting 11-13M propagations per second in native Zig and ~7M/s through Python with just pip install astroz 」

https://atempleton.bearblog.dev/i-made-zig-compute-33-million-satellite-positions-in-3-seconds-no-gpu-required/

#zig #ziglang

I Made Zig Compute 33 Million Satellite Positions in 3 Seconds. No GPU Required.

I've spent the past month optimizing SGP4 propagation and ended up with something interesting: is now the I'm aware of, hitting in native Zig and with ju...

Anthony T's Blog