# \#simd

**URL:** https://ziggit.dev/tag/simd/58.md

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

---

## [Efficient 3x3 matrix multiplication using SIMD](https://ziggit.dev/t/efficient-3x3-matrix-multiplication-using-simd/17559)

<div class="topic-metadata">

**Author:** [@luihabl](https://ziggit.dev/u/luihabl)\
**Replies:** 4\
**Last updated:** [September 12, 2026, 10:35am UTC](https://ziggit.dev/t/efficient-3x3-matrix-multiplication-using-simd/17559 "2026-09-12T10:35:41Z")

</div>

Hi all! I am making a simple matrix math implementation for my own game. I would like to use SIMD and the vector type for these operations. Right now, my 4x4 matrix multiplication is as following: pub const Mat4x4 = \[4…

---

## [Feedback: simple SIMD powered string pattern search over text files recursively](https://ziggit.dev/t/feedback-simple-simd-powered-string-pattern-search-over-text-files-recursively/17462)

<div class="topic-metadata">

**Author:** [@lukeflo](https://ziggit.dev/u/lukeflo)\
**Replies:** 8\
**Last updated:** [September 5, 2026, 5:30pm UTC](https://ziggit.dev/t/feedback-simple-simd-powered-string-pattern-search-over-text-files-recursively/17462 "2026-09-05T17:30:39Z")

</div>

Hi, I’m looking for some feedback on my example code and hope for some suggestions/tipps what can be done better :slightly\_smiling\_face: The goal is to search all textfiles of a nested directory tree and return those w…

---

## [Who is the fastest?](https://ziggit.dev/t/who-is-the-fastest/16072)

<div class="topic-metadata">

**Author:** [@AstraLibernis](https://ziggit.dev/u/AstraLibernis)\
**Replies:** 1\
**Last updated:** [June 11, 2026, 12:20pm UTC](https://ziggit.dev/t/who-is-the-fastest/16072 "2026-06-11T12:20:14Z")

</div>

\[SIMD-Crosslang\]: So this one bridged off my ChaCha project from earlier. I know most who know coding/programming will probably tell me its already known, but I went on a little discovery journey for SIMD, Assembly, and…

---

## [I made a base58 lib](https://ziggit.dev/t/i-made-a-base58-lib/15434)

<div class="topic-metadata">

**Author:** [@Gealber](https://ziggit.dev/u/Gealber)\
**Replies:** 0\
**Last updated:** [May 10, 2026, 12:30pm UTC](https://ziggit.dev/t/i-made-a-base58-lib/15434 "2026-05-10T12:30:28Z")

</div>

Publishing here first time, I made this lib Gealber/zig-base58 which is a port of the firedancer(fd\_base58.c) implementation that uses SIMD instructions. Has better performance than the one in Syndica/base58-zig which i…

---

## [Oma - runtime SIMD dispatch for Zig](https://ziggit.dev/t/oma-runtime-simd-dispatch-for-zig/14438)

<div class="topic-metadata">

**Author:** [@attron](https://ziggit.dev/u/attron)\
**Replies:** 1\
**Last updated:** [March 3, 2026, 2:58pm UTC](https://ziggit.dev/t/oma-runtime-simd-dispatch-for-zig/14438 "2026-03-03T14:58:30Z")

</div>

Zig’s @Vector is quite nice, but its not without its issues. The most “in my face” one I encountered recently was trying to target multiple architectures / cpu instruction sets with a single function invocation. oma (on…

---

## [Zero-allocation, simd-accelerated CSV iterator and emitter in Zig with an optional C ABI option](https://ziggit.dev/t/zero-allocation-simd-accelerated-csv-iterator-and-emitter-in-zig-with-an-optional-c-abi-option/13842)

<div class="topic-metadata">

**Author:** [@peymanmortazavi](https://ziggit.dev/u/peymanmortazavi)\
**Replies:** 4\
**Last updated:** [January 8, 2026, 2:12am UTC](https://ziggit.dev/t/zero-allocation-simd-accelerated-csv-iterator-and-emitter-in-zig-with-an-optional-c-abi-option/13842 "2026-01-08T02:12:26Z")

</div>

My first Zig project that I feel I can share with folks here! I wanted to see if I could use SIMD for parsing CSV files quickly and went down a whole rabbit hole and learned a lot of different concepts in the way. I …

---

## [New YouTube Channel](https://ziggit.dev/t/new-youtube-channel/11971)

<div class="topic-metadata">

**Author:** [@Validark](https://ziggit.dev/u/Validark)\
**Replies:** 6\
**Last updated:** [September 12, 2025, 12:35am UTC](https://ziggit.dev/t/new-youtube-channel/11971 "2025-09-12T00:35:02Z")

</div>

Hey everyone, just wanted to say I uploaded my first YouTube video of my own today! :tada::tada: Anyone who likes my content should take a look. As you might expect, you’ll get a healthy dose of SIMD, bit manipulation, …

---

## [High-performance AI/LLM implementation idea - thoughts?](https://ziggit.dev/t/high-performance-ai-llm-implementation-idea-thoughts/10371)

<div class="topic-metadata">

**Author:** [@Triex](https://ziggit.dev/u/Triex)\
**Replies:** 8\
**Last updated:** [June 15, 2025, 3:40am UTC](https://ziggit.dev/t/high-performance-ai-llm-implementation-idea-thoughts/10371 "2025-06-15T03:40:53Z")

</div>

Hi Ziggit! I’ve been exploring how Zig’s performance characteristics could work with large language models, specifically the DeepSeek architecture. Had this idea: what if we could leverage Zig’s compile-time metaprogram…

---

## [Zimdjson: Parsing gigabytes of JSON per second. Zig port of simdjson with fundamental features](https://ziggit.dev/t/zimdjson-parsing-gigabytes-of-json-per-second-zig-port-of-simdjson-with-fundamental-features/9203)

<div class="topic-metadata">

**Author:** [@EzequielRamis](https://ziggit.dev/u/EzequielRamis)\
**Replies:** 2\
**Last updated:** [March 22, 2025, 10:53am UTC](https://ziggit.dev/t/zimdjson-parsing-gigabytes-of-json-per-second-zig-port-of-simdjson-with-fundamental-features/9203 "2025-03-22T10:53:40Z")

</div>

I would say this is my first serious systems-related project, as I’ve worked professionally as a frontend developer, funnily saying. It was a personal challenge that took me a year and a half, which could have taken twic…

---

## [Optimized runtime known array indexing](https://ziggit.dev/t/optimized-runtime-known-array-indexing/8225)

<div class="topic-metadata">

**Author:** [@jopo666](https://ziggit.dev/u/jopo666)\
**Replies:** 2\
**Last updated:** [January 28, 2025, 6:31pm UTC](https://ziggit.dev/t/optimized-runtime-known-array-indexing/8225 "2025-01-28T18:31:43Z")

</div>

I’m attempting to optimize the following function. /// Swap each byte in data based on the passed lookup table. pub fn translate(data: \[\]u8, lut: \[256\]u8) void { assert(data.len \> 0); assert(data.len % 256 == 0)…

---

## [@Vector best practices](https://ziggit.dev/t/vector-best-practices/6100)

<div class="topic-metadata">

**Author:** [@MrPigss](https://ziggit.dev/u/MrPigss)\
**Replies:** 6\
**Last updated:** [September 24, 2024, 3:28pm UTC](https://ziggit.dev/t/vector-best-practices/6100 "2024-09-24T15:28:53Z")

</div>

Since there’s not a lot of documentation to be found on @Vector() I’ll ask my question here, if anyone knows of a good source of info feel free to let me know :+1: I need to do some comparisons on certain bytes for vali…

---

## [Suggested SIMD vector length is slower?](https://ziggit.dev/t/suggested-simd-vector-length-is-slower/5751)

<div class="topic-metadata">

**Author:** [@dude\_the\_builder](https://ziggit.dev/u/dude_the_builder)\
**Replies:** 11\
**Last updated:** [August 24, 2024, 11:08pm UTC](https://ziggit.dev/t/suggested-simd-vector-length-is-slower/5751 "2024-08-24T23:08:57Z")

</div>

In the following code, if I comment out the call to simd.suggestVectorLength(T) and use the hard-coded value 32, the run time is nearly 3x faster (60ms vs 175ms). Is this expected? (mac m1, zig 0.14.0-dev.367+a57479afc,…

---

## [Turn off 512-bit vector ops (-mprefer-vector-width=256)?](https://ziggit.dev/t/turn-off-512-bit-vector-ops-mprefer-vector-width-256/3996)

<div class="topic-metadata">

**Author:** [@nyc](https://ziggit.dev/u/nyc)\
**Replies:** 4\
**Last updated:** [April 18, 2024, 3:14pm UTC](https://ziggit.dev/t/turn-off-512-bit-vector-ops-mprefer-vector-width-256/3996 "2024-04-18T15:14:49Z")

</div>

Is there any way to prevent zig from producing AVX-512 512-bit instructions ? (edit: Trying to make the question more specific since I know what I would do with gcc, but don’t know how to express it in zig. I want to k…

---

## [No SIMD addition instructions in ReleaseSmall mode](https://ziggit.dev/t/no-simd-addition-instructions-in-releasesmall-mode/3307)

<div class="topic-metadata">

**Author:** [@dee0xeed](https://ziggit.dev/u/dee0xeed)\
**Replies:** 12\
**Last updated:** [February 20, 2024, 6:51pm UTC](https://ziggit.dev/t/no-simd-addition-instructions-in-releasesmall-mode/3307 "2024-02-20T18:51:32Z")

</div>

Below is simple program which asks a user for 8 numbers, fills two 4-element vectors with these numbers, then adds these two vectors: const std = @import("std"); pub fn main() !void { const stdin = std.io.getStdIn…

---

## [Mask numbers within a range with Vectors](https://ziggit.dev/t/mask-numbers-within-a-range-with-vectors/3304)

<div class="topic-metadata">

**Author:** [@dude\_the\_builder](https://ziggit.dev/u/dude_the_builder)\
**Replies:** 3\
**Last updated:** [February 19, 2024, 1:56pm UTC](https://ziggit.dev/t/mask-numbers-within-a-range-with-vectors/3304 "2024-02-19T13:56:15Z")

</div>

I want to be able to apply a SIMD operation to numbers within a range (i.e. 4 \< n \< 11). I got it working with the following code, but from it I have two questions: Is there a way to and two vectors of bools without bi…
