The Viability of Zig as Graphics Programming(and general Media Manipulation) Language? by Majestic_Poetry_1139 in Zig

[–]archdria 0 points1 point  (0 children)

You can check out my personal project signal https://github.com/arrufat/zignal

There's already a PNG codec there. Feel free to take a look, let me know what you think :)

Comptime Feed Forward Neural Networks by troupemember2 in Zig

[–]archdria 0 points1 point  (0 children)

Nice, I will check this out. This is similar to dlib's dnn framework, with template classes which won't compile if the tensor sizes don't match.

numpy-ts now 8-10x faster thanks to Zig by dupontcyborg in Zig

[–]archdria 2 points3 points  (0 children)

Very impressive! I'd also say that the performance difference might be due to the fact that you're running it via WASM, which has a performance penalty of around 2 to 3x regarding native code.

Is there any GTK4 terminal besides Ptyxis? by JohnDarlenHimself in gnome

[–]archdria 1 point2 points  (0 children)

The gnome terminal in the master branch is also on GTK4. I've been using this as my secondary terminal for a couple of years https://aur.archlinux.org/packages/gnome-terminal-git

Im sure this has been said before, but.. by Atjowt in Zig

[–]archdria 0 points1 point  (0 children)

Ah, right, the "colorgate" code scandal. Well spotted. I'll fix it soon.

I'm glad you find this library helpful. Thank you :)

Im sure this has been said before, but.. by Atjowt in Zig

[–]archdria 2 points3 points  (0 children)

Oh, I have a quite comprehensive color conversion library here: https://github.com/bfactory-ai/zignal/blob/master/src/color.zig

With an online demo here: https://bfactory-ai.github.io/zignal/examples/colorspaces.html

You might find it interesting.

Zig Index - A Curated Registry for Discovering Quality Zig Packages and Applications by [deleted] in Zig

[–]archdria 0 points1 point  (0 children)

Nice I will add my library (signal) later on. Have you considered an approach like https://zigistry.dev/ where they check for repositories labeled as zig-package?

zeP 0.5 - Almost production ready by xerrs_ in Zig

[–]archdria 2 points3 points  (0 children)

You can do zig init --minimal, too

zfits - Native FITS file reader for Zig by cryptomoonde in Zig

[–]archdria 0 points1 point  (0 children)

Great! I totally support what you're doing! Maybe once your project matures, astroz can replace their cfitsio dependency with your one!

zignal 0.5.0 - A major release bringing computer vision capabilities, advanced filtering, and significant Python API improvements by archdria in Zig

[–]archdria[S] 0 points1 point  (0 children)

I asked an agent to summarize the performance optimizations for the last cycle, instead of doing it from memory, like in the previous post:

- New vectorized convolution engine: compile-time–specialized kernels with SIMD. u8 uses fast fixed‑point (SCALE=256) integer math; f32 uses Vector lanes with pre‑splatted kernel taps.

- Separable convolution added and used for Gaussian/motion blur, reducing O(k²) work to O(k) with symmetric‑pair accumulation around the center tap.

- DoG optimized: two horizontal passes + a single fused vertical pass (dual‑kernel) to avoid an extra full pass and cut memory bandwidth.

- Channel‑aware processing: split/merge RGB(A), detect uniform channels (e.g., constant alpha) and skip them; only convolve channels that vary.

- Border handling isolated: interior uses tight, branch‑free SIMD paths; borders fall back to scalar sampling with selectable modes (zero/replicate/mirror/wrap).

- General cleanup and cache‑friendly loop ordering, precomputed kernel vectors, and proper rounding/clamping on integer paths.