the.bay.news

Fnmatch-ng: POSIX fnmatch() in one Zig file, 20,794/20,794 vs musl, zero heap

Ziggit
Fnmatch-ng: POSIX fnmatch() in one Zig file, 20,794/20,794 vs musl, zero heap
I rebuilt POSIX fnmatch() from scratch in a single Zig file (~1,090 lines, no dependencies), and verified it verdict-for-verdict against musl 1.2.5. What Number Source one Zig file, ~1,090 lines Dependencies zero Heap allocs per match zero C ABI yes, two extern functions Conformance vs musl 1.2.5 20,794 / 20,794 Audited divergences D001-D006 Benches vs musl 9 of 10 faster, up to 3.2x The loss fail-early: ~11ns vs musl ~5ns Everywhere it differs from musl is written down...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.