frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Canon-C – a semantic C library

https://github.com/Fikoko/Canon-C
2•Fikoko•2h ago
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 authority

Add meaning through libraries, not syntax

Make intent visible directly in the API: ownership, lifetime, and failure handling are explicit

Modules are organized by semantic layers:

core/ — memory, lifetime, scope, primitives

semantics/ — Option, Result, error handling

data/ — vectors, queues, stacks, string builders

algo/ — map, filter, fold, sort, search

util/ — safe string ops, file I/O, logging, timing

Design highlights:

Header-only

No runtime or global state

No hidden allocation (except in clearly marked convenience layers)

Fully explicit behavior

I’d love feedback from anyone doing systems programming, embedded C, or serious C projects, especially on macro-heavy vs. modular design, semantic clarity, and practical usage.

Comments

oguz-ismail2•1h ago
Nit pick, but

>FILE* f = fopen(path, "rb");

>...

>if (fseek(f, 0, SEEK_END) != 0) return option_charp_none();

>long len = ftell(f);

does ISO C guarantee this'll work these days? How come there's no fread+realloc fallback?

Fikoko•1h ago
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.

Feature Proposal: .gitallow – A native allowlist for Git tracking

https://gist.github.com/s-celles/754728bbbe5312300982e2f2045f5f03
1•scls19fr•42s ago•0 comments

Show HN: I built a 20MB PDF editor using Flutter (vs 300MB industry standard)

https://revpdf.com/blog/how-i-built-a-15mb-pdf-editor
1•pawandeepsingh•2m ago•1 comments

The conquest of happiness by Bertrand Russell (1930)

https://gutenberg.org/cache/epub/77894/pg77894-images.html
1•petethomas•2m ago•0 comments

AI Startups and GPUs

1•hpcaitech•4m ago•0 comments

The Software Games: Endless Grind

https://newsletter.manager.dev/p/the-software-game-endless-grind
1•AntonZ234•5m ago•0 comments

Chinese Peptides Are the Latest Biohacking Trend in the Tech World

https://www.nytimes.com/2026/01/03/business/chinese-peptides-silicon-valley.html
1•olalonde•6m ago•0 comments

AI or Not Quiz

https://en.wikipedia.org/wiki/Wikipedia:AI_or_not_quiz
1•ffins•6m ago•0 comments

Large Language Model Reasoning Failures

https://arxiv.org/abs/2602.06176
1•mpweiher•7m ago•0 comments

Discord – How to compromise user privacy to 'protect children'

https://skids.fail/discord-how-to-compromise-user-privacy-to-protect-children/
1•tufo•7m ago•0 comments

AI helps scam centers evade crackdown in Asia, dupe more victims

https://www.bloomberg.com/news/articles/2026-02-09/ai-helps-scam-centers-evade-clampdown-in-asia-...
1•teleforce•7m ago•0 comments

Simulation and Modelling to Understand Change lecture notes

https://bookdown.org/manuele_leonelli/SimBook/index.html
1•hamburgererror•12m ago•0 comments

The age of the AI boss is coming – more devious than humans

https://www.thetimes.com/business/economics/article/the-age-of-the-ai-boss-is-coming-more-devious...
1•petethomas•13m ago•0 comments

We Should Separate Memorization from Copyright

https://arxiv.org/abs/2602.08632
1•50kIters•14m ago•0 comments

Show HN: User trust monitoring based on explicit vouch/denounce declarations

https://github.com/onurkanbakirci/vouch-monitor
1•onurkanbkrc•14m ago•0 comments

Obama on public television on community organizing

https://www.youtube.com/watch?v=iuOGEGz3PmI
1•marysminefnuf•15m ago•0 comments

Most Indians don't read for pleasure – so why are there 100 literature fests?

https://www.theguardian.com/global-development/2026/feb/09/books-india-literature-festivals-readers
1•thunderbong•18m ago•0 comments

Show HN: Nao Open Source Analytics Agent – build context agent as a file system

https://github.com/getnao/nao
3•ClaireGz•18m ago•0 comments

Hypersonica tests Europe's sovereign hypersonic missile prototype

https://www.hypersonica.com/en/news/hypersonica-successful-test/
1•davedx•24m ago•1 comments

ImageJ: Workhorse of Scientific Imaging

https://imagej.net/software/imagej2/
1•jFriedensreich•24m ago•0 comments

PhysLean: Formalising Physics into Lean 4

https://github.com/lean-phys-community/PhysLean
2•leanexplorer•26m ago•0 comments

Telstra to cut 209 jobs from AI joint venture, offshoring work to India

https://www.smh.com.au/business/workplace/telstra-to-cut-209-jobs-from-ai-joint-venture-offshorin...
2•KnuthIsGod•26m ago•0 comments

Nullfs has been merged for Linux 7.0

https://www.phoronix.com/news/Linux-7.0-NULLFS-Namespace
2•jtlebigot•27m ago•1 comments

Show HN: A framework that makes your AI coding agent learn from every session

https://github.com/KaimingWan/oh-my-claude-code
4•QuantumLeapOG•31m ago•1 comments

How the GNU C Compiler became the Clippy of cryptography

https://www.theregister.com/2026/02/09/compilers_undermine_encryption/
1•pjmlp•31m ago•0 comments

I guess we're doing Moon factories now

https://caseyhandmer.wordpress.com/2026/02/10/i-guess-were-doing-moon-factories-now/
1•Klaster_1•33m ago•0 comments

What is this and why do people do it?

1•Lukem121•35m ago•0 comments

Show HN: Running a public CORS proxy on the open internet for 4 years

https://corsproxy.io/
1•mariusbolik•35m ago•0 comments

Tell HN: Increased 403's on the Cloudflare Dashboard

2•TimCTRL•38m ago•1 comments

Fluorite, Toyota's Upcoming New Game Engine in Flutter [video]

https://fosdem.org/2026/schedule/event/7ZJJWW-fluorite-game-engine-flutter/
4•birdculture•40m ago•0 comments

Entertainment Computer System

https://en.wikipedia.org/wiki/Entertainment_Computer_System
1•SinePost•43m ago•0 comments