# Latest

**URL:** https://ziggit.dev/latest.md

[Latest](https://ziggit.dev/latest.md) · [Categories](https://ziggit.dev/categories.md) · [Tags](https://ziggit.dev/tags.md)

---

## [How to reset \`File.Reader\` to start of file](https://ziggit.dev/t/how-to-reset-file-reader-to-start-of-file/18635)

<div class="topic-metadata">

**Author:** [@Vexo413](https://ziggit.dev/u/Vexo413)\
**Replies:** 0\
**Last updated:** [November 29, 2026, 6:56pm UTC](https://ziggit.dev/t/how-to-reset-file-reader-to-start-of-file/18635 "2026-11-29T18:56:27Z")

</div>

I have a File.Reader and I’m wondering if it is possible to reset it to the start of the file. I know just reading through the file once and doing both actions instead of reading through the file for each action is faste…

---

## [@enumFromInt changed](https://ziggit.dev/t/enumfromint-changed/18633)

<div class="topic-metadata">

**Author:** [@ericlang](https://ziggit.dev/u/ericlang)\
**Replies:** 2\
**Last updated:** [November 29, 2026, 6:23pm UTC](https://ziggit.dev/t/enumfromint-changed/18633 "2026-11-29T18:23:08Z")

</div>

@enumFromInt, which is deprecated is more flexible than @fromBackingInt. The latter one only excepts an int of the correct size. Understandable but also a bit inconvenient. Is the inflexibility intended? Did we lose …

---

## [What's everybody working on (November edition)](https://ziggit.dev/t/whats-everybody-working-on-november-edition/18173)

<div class="topic-metadata">

**Author:** [@lukeflo](https://ziggit.dev/u/lukeflo)\
**Replies:** 97\
**Last updated:** [November 29, 2026, 6:13pm UTC](https://ziggit.dev/t/whats-everybody-working-on-november-edition/18173 "2026-11-29T18:13:58Z")

</div>

November thread to keep the tradition alive :slightly\_smiling\_face: Previous threads: What's everybody working on? What's everybody working on? (July Edition) What’s everybody working on? (August Edition) What's ever…

---

## [When to go async](https://ziggit.dev/t/when-to-go-async/18631)

<div class="topic-metadata">

**Author:** [@SuXYIO](https://ziggit.dev/u/SuXYIO)\
**Replies:** 2\
**Last updated:** [November 29, 2026, 5:09pm UTC](https://ziggit.dev/t/when-to-go-async/18631 "2026-11-29T17:09:23Z")

</div>

I’m building a graphics lib, and when splitting the screen in four quadrants and drawing equation separately, I got about 3 times improvement. But when splitting the task of drawing triangles in two, it almost decreased…

---

## [Yet another Zig version manager (but it is context aware)](https://ziggit.dev/t/yet-another-zig-version-manager-but-it-is-context-aware/18627)

<div class="topic-metadata">

**Author:** [@Oluwaferanmi](https://ziggit.dev/u/Oluwaferanmi)\
**Replies:** 3\
**Last updated:** [November 29, 2026, 5:08pm UTC](https://ziggit.dev/t/yet-another-zig-version-manager-but-it-is-context-aware/18627 "2026-11-29T17:08:04Z")

</div>

zvm: a Zig version manager written in Zig zvm is a single native binary with no runtime dependencies that makes zig (and zls) resolve to the right version for whatever directory you’re in. It picks a version in this o…

---

## [What Should We \_Remove\_ from Zig?](https://ziggit.dev/t/what-should-we-remove-from-zig/17518)

<div class="topic-metadata">

**Author:** [@VoilaNeighbor](https://ziggit.dev/u/VoilaNeighbor)\
**Replies:** 205\
**Last updated:** [November 29, 2026, 5:02pm UTC](https://ziggit.dev/t/what-should-we-remove-from-zig/17518 "2026-11-29T17:02:55Z")

</div>

I love Zig very much, and I see a lot of posts on what is still missing. I appreciate so much for the aesthetic insistence (in a positive sense) on keeping Zig as a simple language, and the excellent balance of choosing …

---

## [ZLS highlighting fails](https://ziggit.dev/t/zls-highlighting-fails/18632)

<div class="topic-metadata">

**Author:** [@ericlang](https://ziggit.dev/u/ericlang)\
**Replies:** 5\
**Last updated:** [November 29, 2026, 2:48pm UTC](https://ziggit.dev/t/zls-highlighting-fails/18632 "2026-11-29T14:48:21Z")

</div>

using ZLS in vscode. Anyone knows why the type highlighting fails?

---

## [Aspect - A library for creating energy-efficient GUIs](https://ziggit.dev/t/aspect-a-library-for-creating-energy-efficient-guis/18557)

<div class="topic-metadata">

**Author:** [@nullclyze](https://ziggit.dev/u/nullclyze)\
**Replies:** 11\
**Last updated:** [November 29, 2026, 11:41am UTC](https://ziggit.dev/t/aspect-a-library-for-creating-energy-efficient-guis/18557 "2026-11-29T11:41:49Z")

</div>

Aspect GUI I got bored, so I decided to write a small library for creating simple and energy-efficient graphics apps in retained-mode. I used raylib as a base (it’s sufficient for now, and later I might try rewriting it …

---

## [Byte pointer in packed struct compiler error (0.17.1)](https://ziggit.dev/t/byte-pointer-in-packed-struct-compiler-error-0-17-1/18630)

<div class="topic-metadata">

**Author:** [@ericlang](https://ziggit.dev/u/ericlang)\
**Replies:** 4\
**Last updated:** [November 29, 2026, 11:06am UTC](https://ziggit.dev/t/byte-pointer-in-packed-struct-compiler-error-0-17-1/18630 "2026-11-29T11:06:52Z")

</div>

Finally went from Zig 0.15.2 to 0.17.1. I was wondering about a new compiler error. having this: pub const Bgra = packed struct { b: u8, g: u8, r: u8, a: u8, }; error: expected type ‘\*u8’, found ‘\*ali…

---

## [Should the PTR succeed?](https://ziggit.dev/t/should-the-ptr-succeed/18625)

<div class="topic-metadata">

**Author:** [@zigo](https://ziggit.dev/u/zigo)\
**Replies:** 8\
**Last updated:** [November 29, 2026, 3:41am UTC](https://ziggit.dev/t/should-the-ptr-succeed/18625 "2026-11-29T03:41:38Z")

</div>

var b = true; pub fn main() void { var x: \[\]const \[\]const u8 = &.{"foo"}; // okay \_ = &x; var y = if (b) x else &.{"foo"}; // error: PTR fails \_ = &y; }

---

## [Locking && logging stdout](https://ziggit.dev/t/locking-logging-stdout/18628)

<div class="topic-metadata">

**Author:** [@xolra0d](https://ziggit.dev/u/xolra0d)\
**Replies:** 4\
**Last updated:** [November 28, 2026, 11:48pm UTC](https://ziggit.dev/t/locking-logging-stdout/18628 "2026-11-28T23:48:52Z")

</div>

I want my program to log to stdout. However I cannot find a way to do it using std.log && global mutex, since logFn signature does not pass std.Io (for use in std.Io.Mutex.lock to lock stdout): pub fn logFn( comptim…

---

## [What is the best way to implement absolute difference](https://ziggit.dev/t/what-is-the-best-way-to-implement-absolute-difference/12589)

<div class="topic-metadata">

**Author:** [@AndrewKraevskii](https://ziggit.dev/u/AndrewKraevskii)\
**Replies:** 16\
**Last updated:** [November 28, 2026, 6:18pm UTC](https://ziggit.dev/t/what-is-the-best-way-to-implement-absolute-difference/12589 "2026-11-28T18:18:46Z")

</div>

I often encounter problem of finding absolute difference of 2 unsigned numbers (lets say usize for example). Obvious way @abs(a - b) won’t work since numbers can overflow. And each time i find new way to implement it. f…

---

## [simdjson bindings for Zig](https://ziggit.dev/t/simdjson-bindings-for-zig/18617)

<div class="topic-metadata">

**Author:** [@ephraimkunz](https://ziggit.dev/u/ephraimkunz)\
**Replies:** 2\
**Last updated:** [November 28, 2026, 4:12pm UTC](https://ziggit.dev/t/simdjson-bindings-for-zig/18617 "2026-11-28T16:12:46Z")

</div>

PROJECT NAME: simdjson-zig simdjson-zig is a Zig package I’ve created that provides bindings to simdjson for Zig projects. As far as I know, this is the first Zig binding to this library (previously some Zig ports ex…

---

## [QOI decoder](https://ziggit.dev/t/qoi-decoder/17310)

<div class="topic-metadata">

**Author:** [@Cloudef](https://ziggit.dev/u/Cloudef)\
**Replies:** 7\
**Last updated:** [November 28, 2026, 1:41pm UTC](https://ziggit.dev/t/qoi-decoder/17310 "2026-11-28T13:41:33Z")

</div>

dekoodaaja Disregard the funny repository name. There may or may not be plans to add other image decoders to this repository optimized for speed. The interface is deliberately simple, as I don’t plan to have stateful d…

---

## [Translate-c and macro](https://ziggit.dev/t/translate-c-and-macro/18622)

<div class="topic-metadata">

**Author:** [@unetanche](https://ziggit.dev/u/unetanche)\
**Replies:** 2\
**Last updated:** [November 28, 2026, 12:22pm UTC](https://ziggit.dev/t/translate-c-and-macro/18622 "2026-11-28T12:22:45Z")

</div>

Hy, I’m playing with mcu and try to use it’s vendor HAL. The vendor HAL code has a lot of C macro like this: #define \_\_HAL\_SPI\_CLEAR\_MODFFLAG(\_\_HANDLE\_\_) \\ do{ …

---

## [Is there an iterator for slices in the standard library?](https://ziggit.dev/t/is-there-an-iterator-for-slices-in-the-standard-library/620)

<div class="topic-metadata">

**Author:** [@andrewb](https://ziggit.dev/u/andrewb)\
**Replies:** 11\
**Last updated:** [November 28, 2026, 10:20am UTC](https://ziggit.dev/t/is-there-an-iterator-for-slices-in-the-standard-library/620 "2026-11-28T10:20:50Z")

</div>

I’d like to iterate over a slice using a next() method (i.e. not by using a for loop) so that I can take the next value as required at different points in the program. It seems an obvious thing, but I couldn’t see a way …

---

## [Lemmixology (002) Some tips needed on the global data](https://ziggit.dev/t/lemmixology-002-some-tips-needed-on-the-global-data/18616)

<div class="topic-metadata">

**Author:** [@ericlang](https://ziggit.dev/u/ericlang)\
**Replies:** 2\
**Last updated:** [November 28, 2026, 10:20am UTC](https://ziggit.dev/t/lemmixology-002-some-tips-needed-on-the-global-data/18616 "2026-11-28T10:20:43Z")

</div>

Some tips on data needed… I have game data which is loaded from a file and after that immutable (except when freeing the used memory in some of the structs, when the program closes). In my “local debug” environment I c…

---

## [Online event: Compiling for tiny computers with Zig](https://ziggit.dev/t/online-event-compiling-for-tiny-computers-with-zig/18600)

<div class="topic-metadata">

**Author:** [@szabgab](https://ziggit.dev/u/szabgab)\
**Replies:** 6\
**Last updated:** [November 28, 2026, 8:49am UTC](https://ziggit.dev/t/online-event-compiling-for-tiny-computers-with-zig/18600 "2026-11-28T08:49:59Z")

</div>

Hi, In a couple of hours we are going to have the online mingling session and presentation of Matthew Knight about MicroZig. Register here.

---

## [Std.math question](https://ziggit.dev/t/std-math-question/18615)

<div class="topic-metadata">

**Author:** [@devengel](https://ziggit.dev/u/devengel)\
**Replies:** 1\
**Last updated:** [November 28, 2026, 8:21am UTC](https://ziggit.dev/t/std-math-question/18615 "2026-11-28T08:21:11Z")

</div>

what is the point of various one liner functions in std.math that only call the builtin functions such as std.math.floor, why does it exist when all it does is call @floor ? those functions seem to have existed for a l…

---

## [Duplicate dependency when using translate-c](https://ziggit.dev/t/duplicate-dependency-when-using-translate-c/18585)

<div class="topic-metadata">

**Author:** [@TheDarkUndoing](https://ziggit.dev/u/TheDarkUndoing)\
**Replies:** 8\
**Last updated:** [November 27, 2026, 11:28pm UTC](https://ziggit.dev/t/duplicate-dependency-when-using-translate-c/18585 "2026-11-27T23:28:15Z")

</div>

I am working on a project to run the rpi pico from scratch using the c sdk. I am trying to do this by using translate-c in the build system so that I can expose the sdk as a module to my zig executable. However, as I ha…

---

## [Sudoku in Zig](https://ziggit.dev/t/sudoku-in-zig/18570)

<div class="topic-metadata">

**Author:** [@markwigzell](https://ziggit.dev/u/markwigzell)\
**Replies:** 5\
**Last updated:** [November 27, 2026, 4:38pm UTC](https://ziggit.dev/t/sudoku-in-zig/18570 "2026-11-27T16:38:41Z")

</div>

PROJECT NAME: Sudoku-Zig Full Sudoku implementation with multiple front ends: ascii, ansi, web, android. See GitHub - mwigzell/sudoku-zig: Zig implementation of basic Sudoku features multiple front ends. · GitHub. My i…

---

## [Hum - TUI music player (local, rss, and youtube music)](https://ziggit.dev/t/hum-tui-music-player-local-rss-and-youtube-music/15865)

<div class="topic-metadata">

**Author:** [@selectedambient](https://ziggit.dev/u/selectedambient)\
**Replies:** 18\
**Last updated:** [November 27, 2026, 2:44pm UTC](https://ziggit.dev/t/hum-tui-music-player-local-rss-and-youtube-music/15865 "2026-11-27T14:44:12Z")

</div>

hum first off, thank you for taking the time to check out the project. posting because i genuinely thought people would find it useful and/or neat. it’s a free TUI player with the ability to play a wide range of local f…

---

## [I customised my ZSH prompt with Zig](https://ziggit.dev/t/i-customised-my-zsh-prompt-with-zig/8928)

<div class="topic-metadata">

**Author:** [@dbushell](https://ziggit.dev/u/dbushell)\
**Replies:** 6\
**Last updated:** [November 27, 2026, 1:07pm UTC](https://ziggit.dev/t/i-customised-my-zsh-prompt-with-zig/8928 "2026-11-27T13:07:28Z")

</div>

I’ve been having a lot of fun learning Zig doing Advent of Code puzzles. This is my first little utility project Zigbar — suggestion for better name welcome! It generates a prompt for ZSH showing the current project git…

---

## [Ancillary data w/ Io](https://ziggit.dev/t/ancillary-data-w-io/16680)

<div class="topic-metadata">

**Author:** [@rosew0od](https://ziggit.dev/u/rosew0od)\
**Replies:** 7\
**Last updated:** [November 27, 2026, 11:15am UTC](https://ziggit.dev/t/ancillary-data-w-io/16680 "2026-11-27T11:15:18Z")

</div>

Is there a way to send ancillary data with 0.16 Io, and if not, is there a way to cleanly integrate it into the io system?

---

## [\`dabeob\`: a simple TUI lib for Zig](https://ziggit.dev/t/dabeob-a-simple-tui-lib-for-zig/18166)

<div class="topic-metadata">

**Author:** [@lukeflo](https://ziggit.dev/u/lukeflo)\
**Replies:** 8\
**Last updated:** [November 27, 2026, 9:23am UTC](https://ziggit.dev/t/dabeob-a-simple-tui-lib-for-zig/18166 "2026-11-27T09:23:07Z")

</div>

dabeob: After investing not too less hours of my free time over the last weeks into writing my own TUI lib, it’s now in a first presentable alpha state; as already reported in the “Whats everybody working on” thread.\[1\]\[…

---

## [Nova Midi - A pure zig Midi I/O Library inpired by libremidi and minimidio](https://ziggit.dev/t/nova-midi-a-pure-zig-midi-i-o-library-inpired-by-libremidi-and-minimidio/17458)

<div class="topic-metadata">

**Author:** [@Logickin](https://ziggit.dev/u/Logickin)\
**Replies:** 18\
**Last updated:** [November 27, 2026, 7:54am UTC](https://ziggit.dev/t/nova-midi-a-pure-zig-midi-i-o-library-inpired-by-libremidi-and-minimidio/17458 "2026-11-27T07:54:02Z")

</div>

Nova Midi Nova Midi is a midi I/O library that is inspired by libremidi and minimidio, providing a simple to use and unified function and interface to send and received midi messages across multiple backend. Currently, …

---

## [Is the current \`std.Io\` good enough?](https://ziggit.dev/t/is-the-current-std-io-good-enough/18583)

<div class="topic-metadata">

**Author:** [@Perdixky](https://ziggit.dev/u/Perdixky)\
**Replies:** 16\
**Last updated:** [November 27, 2026, 7:39am UTC](https://ziggit.dev/t/is-the-current-std-io-good-enough/18583 "2026-11-27T07:39:54Z")

</div>

std.Io puts too many responsibilities into the I/O interface and uses dynamic dispatch to avoid “function coloring.” Is this really the right trade-off? I have the following concerns: In typical designs, it is rare t…

---

## [Boilerplate Reduction](https://ziggit.dev/t/boilerplate-reduction/18610)

<div class="topic-metadata">

**Author:** [@nik.marinov](https://ziggit.dev/u/nik.marinov)\
**Replies:** 1\
**Last updated:** [November 27, 2026, 6:20am UTC](https://ziggit.dev/t/boilerplate-reduction/18610 "2026-11-27T06:20:32Z")

</div>

Hi all, I keep running into a recurring issue with boilerplate and I’m wondering if there is a way to reduce it. I’m using an atomic Task queue and multi-threading which makes it so that I can’t use “try” in my functio…

---

## [Is comptime the wrong decision?](https://ziggit.dev/t/is-comptime-the-wrong-decision/18601)

<div class="topic-metadata">

**Author:** [@krypticlogan](https://ziggit.dev/u/krypticlogan)\
**Replies:** 7\
**Last updated:** [November 27, 2026, 3:46am UTC](https://ziggit.dev/t/is-comptime-the-wrong-decision/18601 "2026-11-27T03:46:29Z")

</div>

Hey there, I’ve been working on what started as a pretty experimental project with the Zig compiler and it was going pretty smoothly until recently. I wanted to try aggressively specializing statically defined programs f…

---

## [Cross-compile for \`aarch64-macos\` fails with "unable to find system framework"](https://ziggit.dev/t/cross-compile-for-aarch64-macos-fails-with-unable-to-find-system-framework/18605)

<div class="topic-metadata">

**Author:** [@g1rly-c0d3r](https://ziggit.dev/u/g1rly-c0d3r)\
**Replies:** 3\
**Last updated:** [November 27, 2026, 12:05am UTC](https://ziggit.dev/t/cross-compile-for-aarch64-macos-fails-with-unable-to-find-system-framework/18605 "2026-11-27T00:05:40Z")

</div>

I am building a minesweeper clone using raylib and raylib-zig, but when I try to cross-compile for mac, I get the following error: \[kronos\] ~/Documents/code/zig/minesweeper 0 $ zb -Dtarget=x86\_64-macos install └─ inst…

[Next page](https://ziggit.dev/latest.md?page=1)
