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!

Apple Watch uses physiological ODEs and DNNs to estimate VO2Max

https://www.empirical.health/blog/how-apple-watch-cardio-fitness-vo2max-works/
1•brandonb•4m ago•0 comments

Why Commodore went bankrupt in 1994

https://dfarq.homeip.net/why-commodore-went-bankrupt-in-1994/
1•rbanffy•5m ago•0 comments

Apple Introduces App Store Monthly Subscriptions with 12-Month Commitment

https://www.macrumors.com/2026/04/27/app-store-monthly-subscriptions-12-month-commitment/
1•Cider9986•6m ago•0 comments

Thoma Bravo Refuses to Inject Fresh Cash into Ailing Medallia

https://www.bloomberg.com/news/articles/2026-04-30/thoma-bravo-refuses-to-inject-fresh-cash-into-...
2•petethomas•8m ago•0 comments

Epic Games Wins Reversal of Stay in App Store Fee Legal Battle

https://www.macrumors.com/2026/04/29/epic-games-wins-reversal-app-store-fee-battle/
3•satvikpendem•8m ago•0 comments

Apple wants to kill your Time Capsule, but they run NetBSD so they can't

https://www.osnews.com/story/144845/apple-wants-to-kill-your-time-capsule-but-they-run-netbsd-so-...
5•rbanffy•9m ago•0 comments

Tool calls that execute 100% of the time

https://blog.dottxt.ai/structured-generation-for-tool-calling.html
2•remilouf•12m ago•0 comments

iPhone 17 Is Apple's Most Popular Lineup

https://www.macrumors.com/2026/04/30/iphone-17-is-apples-most-popular-lineup-ever/
1•Cider9986•12m ago•1 comments

ccbuild – A build system for C++ where your build scripts are C++

https://github.com/aniket-ray/ccbuild
1•aniketray•13m ago•0 comments

Gram: A fork of Zed without the bloat

https://codeberg.org/GramEditor/gram
1•klaussilveira•14m ago•0 comments

Show HN: A dashboard for the closest trains in New York City

https://j91680545-byte.github.io/mta-dashboard/
1•throwawayq3423•15m ago•0 comments

Ford's $1B Bet on Detroit's Future – Newlab Tour (11 min video)

https://www.youtube.com/watch?v=lARWV1-Guz4
1•rmason•17m ago•0 comments

Kernel Contracts: A Spec. Language for Correctness Across Heterogeneous Silicon

https://arxiv.org/abs/2604.22032
1•matt_d•18m ago•0 comments

What ORMs have taught me: just learn SQL (2014)

https://wozniak.ca/blog/2014/08/03/1/index.html
1•downbad_•18m ago•1 comments

China Suspends Autonomous Driving Permits After Baidu Outage

https://www.bloomberg.com/news/articles/2026-04-29/china-suspends-new-autonomous-driving-permits-...
2•layer8•18m ago•0 comments

Managing dependencies in non-manifest languages

2•riteshnoronha16•21m ago•0 comments

Apple announces record fiscal second quarter

https://sixcolors.com/post/2026/04/apple-announces-record-fiscal-second-quarter/
1•Amorymeltzer•23m ago•0 comments

Optimising Programmable

https://www.researchgate.net/publication/404050094_A_Data-Driven_Machine_Learning_Framework_for_O...
1•f0r3st•29m ago•1 comments

Tanstack Malicious Code was a college student with Google Antigravity

https://twitter.com/SH20RAJ/status/2049844650136248592
4•amrrs•32m ago•0 comments

Ubuntu website and repositories outage due to DDoS

https://twitter.com/VECERTRadar/status/2049934376272810445
6•jtlebigot•36m ago•1 comments

Don't Delegate Understanding

https://stephango.com/understand
1•sebg•36m ago•0 comments

Apple's iPhone revenue jumps to $57B despite chip shortages

https://www.theverge.com/tech/921527/apple-iphone-revenue-q2-2026-earnings
3•mgh2•36m ago•2 comments

Apple beats on Q2 earnings, thanks to China and iPhone sales

https://finance.yahoo.com/video/apple-beats-on-q2-earnings-thanks-to-china--iphone-sales-20405227...
2•mgh2•37m ago•1 comments

OxyContin maker Purdue Pharma dissolves after judge approves criminal sentence

https://apnews.com/article/oxycontin-purdue-pharma-criminal-sentence-settlement-b8aa94eaab3d9d8ef...
6•embedding-shape•41m ago•0 comments

Discovering Hard Disk Physical Geometry Through Microbenchmarking (2019)

https://blog.stuffedcow.net/2019/09/hard-disk-geometry-microbenchmarking/
1•TapamN•41m ago•0 comments

AI outperforms doctors in Harvard trial of emergency triage diagnoses

https://www.theguardian.com/technology/2026/apr/30/ai-outperforms-doctors-in-harvard-trial-of-eme...
4•pseudolus•44m ago•0 comments

Multi-agent systems as distributed software

https://fulcrum.inc/2026/04/30/multi-agent-as-distributed.html
4•etherio•44m ago•0 comments

Embodied AI: China's ambitious path to transform its robotics industry

https://merics.org/en/report/embodied-ai-chinas-ambitious-path-transform-its-robotics-industry
1•atlasunshrugged•47m ago•0 comments

Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell

https://pu.dev/
17•nahimn•48m ago•5 comments

Mapping the U.S. Federal Government Ecosystem for Cybersecurity

https://strategyofsecurity.com/p/mapping-the-u-s-federal-government-ecosystem-for-cybersecurity-p...
3•mooreds•49m ago•0 comments