News for hackers. Stuff that matters.

Fikoko

Re:Show HN: Canon-C – a semantic C library on Tuesday February 10, 2026 @02:34AM (#46956491)
Good catch! You’re right, ftell + fseek isn’t guaranteed to work for all files in ISO C, especially very large or non-seekable ones. In practice, for typical binary files it works fine, but I’ll add a note in the docs. I will consider a fallback using fread + realloc for full portability.

Show HN: Canon-C – a semantic C library

https://github.com/Fikoko/Canon-C

I kept rewriting the same low-level patterns in C — arenas, memory management, error handling, vectors, parsing, file I/O, iteration utilities — and existing libraries either hide allocation, impose frameworks, or lack consistency.So I built Canon-C, a small, composable set of explicit C modules that:Treat C as an execution backend, not a semantic authorityAdd meaning through libraries, not...

( Read More... | 2 comments | 2 points | on HN )