frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Would you believe try-catch-finally works in plain old C?

4•mf_taria•11mo ago
I was digging through some of my old repositories and found a C language extension I wrote years ago. Even now, I think it’s kinda cool — and I’d love for you to check it out.

https://github.com/simpart/c-try

It recreates `try {}` / `catch {}` / `finally {}` in plain C using just macros and global variables. There's also a `$` macro to propagate errors between function calls — a bit like a mini DSL for error handling.

You can find a working example in `test.c`.

It doesn't support nesting or multithreading, and yes, it abuses macros. But hey, it's C.

Comments

actionfromafar•11mo ago
Finally!

China unveils first dual core atomic quantum computer Hanyuan-2

https://www.globaltimes.cn/page/202605/1360525.shtml
1•HardwareLust•1m ago•0 comments

The Margin Sandwich: Where the AI Services Dollar Lands

https://deepviews.xyz/blog/margin-sandwich-ii-en
1•rswcf•2m ago•0 comments

Keep Android Open

https://keepandroidopen.com/
1•tagfowufe•6m ago•1 comments

There Are Three Programming Paradigms (2013)

http://wiki.c2.com/?ThereAreExactlyThreeParadigms
1•downbad_•6m ago•1 comments

Copy fail 2: electric boogaloo [with actual timeline Dirtyfrag embargo break]

https://afflicted.sh/blog/posts/copy-fail-2.html
1•alecco•6m ago•0 comments

Show HN: DashResume, a resume builder with ATS scoring, and AI job desc matching

https://dashresume.com/
2•nicereads•6m ago•0 comments

Show HN: Claude Control – macOS dashboard for managing Claude Code sessions

https://github.com/sverrirsig/claude-control
2•svessi•9m ago•0 comments

The mathematician who doesn't exist

https://www.newscientist.com/article/2525614-the-mathematician-who-doesnt-exist/
1•baruchel•10m ago•0 comments

The Curse of Smart People (2014)

https://apenwarr.ca/log/20140701
1•downbad_•11m ago•1 comments

AI Assistance Reduces Persistence and Hurts Independent Performance

https://ai-project-website.github.io/AI-assistance-reduces-persistence/
2•fredley•13m ago•0 comments

Show HN: AI Real Estate Video from Listing Photos

https://maggi.homes/explore
1•maggihomes•16m ago•0 comments

Show HN: Postlet – Tiny static blog generator with plugins and themes support

1•freakynit•18m ago•0 comments

CUDA-oxide an experimental Rust-to-CUDA compiler

https://github.com/NVlabs/cuda-oxide
1•tzury•18m ago•0 comments

Ask HN: Ads on WhatsApp?

1•chistev•18m ago•1 comments

Do We Think Too Much About the Future?

https://www.newyorker.com/culture/open-questions/do-we-think-too-much-about-the-future
2•FinnLobsien•22m ago•0 comments

Predicate Pushdown in Query Planner

https://floedb.ai/blog/predicate-pushdown-a-planner-perspective
6•isomorphisme•24m ago•0 comments

Steering Zig Fmt

https://matklad.github.io/2026/05/08/steering-zig-fmt.html
2•surprisetalk•25m ago•0 comments

W Social uncovered: the reality behind the hype

https://blog.elenarossini.com/w-social-uncovered-the-reality-behind-the-hype/
1•nemoniac•25m ago•0 comments

Asami: A flexible graph store, written in Clojure

https://github.com/quoll/asami
2•tosh•38m ago•0 comments

Blockchain Expansion Slowing Down? Try Solana Solutions

https://www.securitytokenizer.io/create-your-own-token-and-coin
1•ishariya•39m ago•0 comments

'Dirty Frag' exploit leaks out, gives root on most Linux machines

https://www.tomshardware.com/tech-industry/cyber-security/dirty-frag-exploit-gets-root-on-most-li...
5•lschueller•40m ago•1 comments

Anomalies

https://github.com/cognitect-labs/anomalies
1•tosh•41m ago•0 comments

8-Ball Game in Browser

https://www.karaqu.com/guest/billiard
1•hbi99•42m ago•0 comments

Elevated errors across Claude Models (May 8, 09:49 UTC)

https://status.claude.com/incidents/378dqscjgghp
1•pramodbiligiri•43m ago•0 comments

GeoJSON

https://geojson.org/
5•tosh•44m ago•0 comments

go-libghostty: Go bindings for libghostty-vt

https://tangled.org/mitchellh.com/go-libghostty
2•icy•45m ago•0 comments

Unique index failure on Postgres – my bad

1•robshep•45m ago•0 comments

Show HN: A Local-First Agentic Knowledge Manager

https://github.com/egroup-labs/kept
14•Mapika•46m ago•0 comments

Stop Using Yarn Classic

https://charpeni.com/blog/stop-using-yarn-classic
1•thunderbong•47m ago•0 comments

As NASA eyes lunar base, there's still much to learn about landing on the Moon

https://arstechnica.com/space/2026/05/as-nasa-eyes-lunar-base-theres-still-much-learn-about-landi...
1•rbanffy•47m ago•0 comments