# Zig 0.15.1 Released

**URL:** <https://ziggit.dev/t/zig-0-15-1-released/11583>\
**Category:** News\
**Tags:** zig-0-15-1\
**Created:** [August 20, 2025, 6:33pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583 "2025-08-20T18:33:33Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![cryptocode](https://ziggit.dev/user_avatar/ziggit.dev/cryptocode/32/817_2.png) [@cryptocode](https://ziggit.dev/u/cryptocode)\
**Post date:** [August 21, 2025, 12:11pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/22 "2025-08-21T12:11:30Z")

</div>

Upgrading a fairly large project right now, and the productivity of `-watch -fincremental` is incredible. Fix error, save, jump to error, repeat until done.

---

<div class="post-metadata">

**Author:** ![Bobvan](https://ziggit.dev/user_avatar/ziggit.dev/bobvan/32/5105_2.png) [@Bobvan](https://ziggit.dev/u/Bobvan)\
**Post date:** [August 21, 2025, 2:09pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/23 "2025-08-21T14:09:21Z")

</div>

I just finished porting my “from stream” CSV parser to 0.15.1.  
It is somewhat basic implementation, but with the new Zig (on my old machine) it sped up by 14% and reached 550.2 million characters/s parse speed (including data validation and some after parsing data printing).

This sounds nice, but i encountered some surprising behavior in terms of cache misses.

 ![image](https://ziggit.dev/uploads/default/original/2X/0/0b9714ff7c7ad621bc77a9a1d7e54ef4a487fe89.jpeg)

While the performance improved, executable size grew almost 2x.

 ![image](https://ziggit.dev/uploads/default/original/2X/5/534fda3e6bc412c81f908dfcbd71817d9660f333.png)

The old implementation used BufferedReader() and directly called its read method. I have basically build my own `readSliceShort()` around it, so i just exchanged it with the one from new interface.

New one uses `readVec()` as its backing read method, but that should not change much. I also do some single Byte reading, which might not play nice?

Anyway, found this interesting and wanted to drop it here. Will do more digging once i return from work. If anyone has ideas what could be causing this, i would love to hear them.

Robert 😊

EDIT:  
When doing more runs, speed up is consistent around -14%, branch misses are consistently around +5% (its not a random deviation) and cache misses are reaching up to +130%.

---

<div class="post-metadata">

**Author:** ![Sze](https://ziggit.dev/user_avatar/ziggit.dev/sze/32/496_2.png) [@Sze](https://ziggit.dev/u/Sze)\
**Post date:** [August 21, 2025, 3:15pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/24 "2025-08-21T15:15:55Z")

</div>

One gotcha that was easy to miss while updating the code is that the new `File.Writer` defaults to keeping its own internal position for where to write, my old code used `try handle.seekFromEnd(0)` so that the old writer would append to the end of the file, after changing to the new writer that writer started at the beginning of the file instead (I guess I could change the mode to streaming (for example via `file.writerStreaming()`) to get the old behavior?), so I removed the `seekFromEnd` and instead initialized the write position on the file-writer this way: `try writer.seekTo(try writer.file.getEndPos());`

Currently it is a bit unclear to me whether it would be better to use positional or streaming mode for occasionally appending to a file in a single threaded way. Maybe some experimentation could show what is better. It seems the main benefit of positional is when you have some concurrency and accessing different parts of the file to write to them instead of just the end.

---

<div class="post-metadata">

**Author:** ![vulpesx](https://ziggit.dev/user_avatar/ziggit.dev/vulpesx/32/3989_2.png) [@vulpesx](https://ziggit.dev/u/vulpesx)\
**Post date:** [August 21, 2025, 11:39pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/25 "2025-08-21T23:39:18Z")

</div>

The difference is really only important when you have multiple readers/writers to a single file,

streaming uses the position from the file resource, so it’s shared between all readers/writers of that file.

Positional, they each track their own position.

And ofc some kinds of files like stdio only work with streaming.

There are also `*_reading` modes which avoid the send file optimisation if you care about that.

---

<div class="post-metadata">

**Author:** ![andrewrk](https://ziggit.dev/user_avatar/ziggit.dev/andrewrk/32/7011_2.png) [@andrewrk](https://ziggit.dev/u/andrewrk)\
**Post date:** [August 21, 2025, 11:47pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/26 "2025-08-21T23:47:50Z")

</div>

Positional also has the advantage that seeking is “free” in the sense that you don’t have to make any syscalls.

---

<div class="post-metadata">

**Author:** ![ww520](https://ziggit.dev/letter_avatar_proxy/v4/letter/w/c2a13f/32.png) [@ww520](https://ziggit.dev/u/ww520)\
**Post date:** [August 22, 2025, 2:49am UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/27 "2025-08-22T02:49:20Z")

</div>

Congratulation on the release! It’s a huge milestone. I especially like the non-generic Reader/Writer.

I’m migrating my projects. I’ll report any issues as I work through the changes.

One change I have issue with is the deprecation of ArrayList.Managed. It basically pushes the memory management work to the users of ArrayList, which is the unmanaged version. Now I need to pass an allocator along whenever I pass an ArrayList as a parameter.

Edit: Just migrated [TopoSort](https://github.com/williamw520/toposort). Took about a hour. Basically migrated all the ArrayList usages. I ended up maintaining the allocator in my object and passed the allocator along.

---

<div class="post-metadata">

**Author:** ![vulpesx](https://ziggit.dev/user_avatar/ziggit.dev/vulpesx/32/3989_2.png) [@vulpesx](https://ziggit.dev/u/vulpesx)\
**Post date:** [August 22, 2025, 3:51am UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/28 "2025-08-22T03:51:06Z")

</div>

> [@ww520](#):
>
> It basically pushes the memory management work to the users of ArrayList, which is the unmanaged version. Now I need to pass an allocator along whenever I pass an ArrayList as a parameter.

That is one of the reasons for the change, it’s more explicit, and encourages you to allocate upfront if possible then use the `AssumeCapacity` or `Bounded` functions.

This is also acting on 0.14 deprecating the managed versions, there was plenty of warning, and the managed versions still exist so you can update with minimal change, though they will be removed in the future.

---

<div class="post-metadata">

**Author:** ![tensorush](https://ziggit.dev/letter_avatar_proxy/v4/letter/t/6a8cbe/32.png) [@tensorush](https://ziggit.dev/u/tensorush)\
**Post date:** [August 23, 2025, 9:04am UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/29 "2025-08-23T09:04:21Z")

</div>

Same, I wonder if it could also work for `@typeName()`.

---

<div class="post-metadata">

**Author:** ![tensorush](https://ziggit.dev/letter_avatar_proxy/v4/letter/t/6a8cbe/32.png) [@tensorush](https://ziggit.dev/u/tensorush)\
**Post date:** [August 23, 2025, 9:15am UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/30 "2025-08-23T09:15:42Z")

</div>

Also, now that there’s a specifier for everything I was looking for a `bool` one, but I guess it’s the only thing that doesn’t need one.

---

<div class="post-metadata">

**Author:** ![tensorush](https://ziggit.dev/letter_avatar_proxy/v4/letter/t/6a8cbe/32.png) [@tensorush](https://ziggit.dev/u/tensorush)\
**Post date:** [August 23, 2025, 3:10pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/31 "2025-08-23T15:10:51Z")

</div>

Noticed a couple langref inconsistencies:  
The [master version](https://ziglang.org/documentation/master/) has links to version 0.12.0 (works) and 0.15.0 (broken) while all of the tagged versions have links to 0.12.1 and 0.15.1, instead.

Thought I’d point this out since [https://ziglang.org](https://ziglang.org) links to the langref’s master version.

---

<div class="post-metadata">

**Author:** ![tensorush](https://ziggit.dev/letter_avatar_proxy/v4/letter/t/6a8cbe/32.png) [@tensorush](https://ziggit.dev/u/tensorush)\
**Post date:** [August 24, 2025, 12:58pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/32 "2025-08-24T12:58:46Z")

</div>

Wait, have only the [`ArrayList`s’ unmanaged versions been made the default](https://ziglang.org/download/0.15.1/release-notes.html#ArrayList-make-unmanaged-the-default)? So like, `HashMap`s’ default is still the managed versions – that’s a bit confusing.

---

<div class="post-metadata">

**Author:** ![ericlang](https://ziggit.dev/user_avatar/ziggit.dev/ericlang/32/8515_2.png) [@ericlang](https://ziggit.dev/u/ericlang)\
**Post date:** [August 24, 2025, 5:16pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/33 "2025-08-24T17:16:00Z")

</div>

There is something going on with ZLS.  
Starting vscode I saw the message:  
`Failed to install ZLS 0.15.0: Not Found (404)`

---

<div class="post-metadata">

**Author:** ![chrboesch](https://ziggit.dev/user_avatar/ziggit.dev/chrboesch/32/438_2.png) [@chrboesch](https://ziggit.dev/u/chrboesch)\
**Post date:** [August 24, 2025, 5:36pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/34 "2025-08-24T17:36:08Z")

</div>

They had an issue, but should be fixed (at least for me in Neovim): [zls compiling version checking doesnt identify 0.15.0 being further than 0.15.0-dev · Issue #2454 · zigtools/zls · GitHub](https://github.com/zigtools/zls/issues/2454#issuecomment-3212774386)

---

<div class="post-metadata">

**Author:** ![ericlang](https://ziggit.dev/user_avatar/ziggit.dev/ericlang/32/8515_2.png) [@ericlang](https://ziggit.dev/u/ericlang)\
**Post date:** [August 24, 2025, 6:50pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/35 "2025-08-24T18:50:19Z")

</div>

It is installed now. But something (in the deep dark forest of options) is broken 😉

---

<div class="post-metadata">

**Author:** ![fearedbliss](https://ziggit.dev/user_avatar/ziggit.dev/fearedbliss/32/8875_2.png) [@fearedbliss](https://ziggit.dev/u/fearedbliss)\
**Post date:** [August 25, 2025, 12:32pm UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/36 "2025-08-25T12:32:46Z")

</div>

Another beautiful release \<3.

---

<div class="post-metadata">

**Author:** ![jeffective](https://ziggit.dev/user_avatar/ziggit.dev/jeffective/32/3116_2.png) [@jeffective](https://ziggit.dev/u/jeffective)\
**Post date:** [September 4, 2025, 5:09am UTC](https://ziggit.dev/t/zig-0-15-1-released/11583/37 "2025-09-04T05:09:25Z")

</div>

Just finished migrating my bigger project, [GatorCAT](https://github.com/jeffective/gatorcat). Another performance datapoint:

Release workflow (`zig build ci-test`):

- Cross-compile from linux release-safe binaries for windows, linux
- build and run a zig script that calls system docker to build an image (like Tigerbeetle)
- build and run all tests
- build linux debug binary

Zig 0.14.1: 2m1.894s  
Zig 0.15.1: 1m24.822s

⚡ 30% faster!!!

> Note: ran twice with deleted `.zig-cache` (to avoid one-time effects of zig global cache state)

Debug workflow (faster iterations) (`zig build`):

- build linux debug binary
- make small change (print debugging)

Zig 0.14.1: 0m8.878s  
Zig 0.15.1: 0m2.268s

⚡ 74% faster!!!

> **Notes for future me if wanting to reproduce**
>
> zig 0.14.1 result is from git tag v0.3.10  
> zig 0.15.1 result is from git tag v0.3.11

[Previous page](https://ziggit.dev/t/zig-0-15-1-released/11583.md?page=1)
