alt.hn

12/28/2025 at 11:30:10 PM

Fast CVVDP implementation in C

https://github.com/halidecx/fcvvdp

by todsacerdoti

12/29/2025 at 1:29:03 AM

TIL: CVVDP is a full-reference video & image fidelity metric meant to simulate the human visual system to predict the perceived difference between two sources.

by password4321

12/29/2025 at 8:08:16 AM

Interestingly it requires Zig to build. Is this becoming common for C libraries? I feel I’ve seen it a few times recently.

by vintagedave

12/29/2025 at 9:08:04 AM

It uses zig as a build system instead of something like cmake

by ozgrakkurt

12/29/2025 at 9:44:18 AM

Why though? It seems simple enough that a makefile and perhaps a configure script would suffice.

by oguz-ismail2

12/29/2025 at 11:09:49 AM

> makefile and perhaps a configure script

That's a lot to ask for on a non-UNIX system like Windows, and you still also need a C/C++ toolchain (which is typically provided by a Visual Studio installation, which has neither a compatible 'make' nor 'configure').

The next-best alternative would be cmake, but that's a complex boondoggle of its own.

PS: also the toplevel cmdline tool seems to be written in Zig, which might be more convenient than C just because of the Zig stdlib.

by flohofwoe

12/30/2025 at 1:06:14 AM

That's surprising to me because Meson/Ninja C project configuration is generally just a handful of lines of text and I can't imagine it getting much simpler than that

by greenavocado

12/29/2025 at 10:06:46 AM

Yeah this feels like it could be packed into a pair of .c source file and header.

by ginko

12/29/2025 at 10:10:57 AM

It is just a tool so I guess they already know it and it is good enough.

I also know zig build system really well but learning cmake now. I might have used zig too if I had to build something right now

by ozgrakkurt

12/29/2025 at 9:38:30 AM

Yuck.

by wakawaka28