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•1y 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•1y ago
Finally!

US 'disappointed' after Netherlands blocks takeover of online ID platform

https://thehill.com/homenews/5898407-dutch-block-us-tech-acquisition/
1•rectang•26s ago•0 comments

What Will Happen When the AI Barons Give Back?

https://www.nytimes.com/2026/05/27/opinion/ai-philanthropy-charity.html
1•berkeleyjunk•1m ago•0 comments

You Should Not Update Your Dependencies

https://www.mendral.com/blog/you-should-not-update
2•OlivierCG•2m ago•0 comments

Atom Exhaustion Is Not a Footgun. It's One Third of Our CVEs

https://www.erlef.org/blog/eef/atom-exhaustion
1•croottree•2m ago•0 comments

A non-coding coding agent

https://zserge.com/posts/socreates/
1•croottree•3m ago•0 comments

OpenDisplay – open standard for e-paper screens

https://opendisplay.org/
1•balloob•7m ago•0 comments

Building the Future of Accessible Tech: Inside Uvilox AI

https://uvilox-aiwebsite.pages.dev/
1•Pallav123•8m ago•0 comments

Monome at Twenty

https://monome.org/twenty
1•robenkleene•8m ago•0 comments

Monome at 20: memories of the grid, in pictures

https://cdm.link/monome-at-20-memories-of-the-grid-in-pictures/
1•robenkleene•8m ago•0 comments

Did Newton know that force is mass times acceleration?

https://hsm.stackexchange.com/questions/19441/did-newton-know-that-force-is-mass-times-acceleration
1•kristianp•13m ago•0 comments

Am I a Bad Friend?

https://drobinin.com/posts/am-i-a-bad-friend/
2•valzevul•14m ago•0 comments

Balcony solar could help fight rising US utility costs

https://www.theguardian.com/environment/2026/may/27/balcony-solar-panels-rising-utility-costs
2•ottoboney•15m ago•0 comments

Ask HN: How to live life before AGI

1•atleastoptimal•15m ago•2 comments

German child killer Magnus Gaefgen awarded damages (2011)

https://www.bbc.com/news/world-europe-14408657
1•petethomas•16m ago•0 comments

FBI Arrests CIA Official with $40M in Gold Bars in His Home

https://www.nytimes.com/2026/05/27/us/politics/fbi-arrest-cia-official-gold-bars.html
3•cwwc•21m ago•2 comments

Google Engineer Charged with Insider Trading on Polymarket

https://finance.yahoo.com/markets/crypto/articles/google-engineer-charged-insider-trading-2109041...
1•1vuio0pswjnm7•23m ago•0 comments

What it would take to rebuild U.S. manufacturing might

https://www.axios.com/2026/05/27/us-manufacturing-china-imports
3•petethomas•24m ago•0 comments

Human in the loop and the autonomous agent problem

https://openenvelope.org/writing/hitl-autonomous-agent-problem/
1•ashconway•25m ago•0 comments

Smartphone Sales Are Tumbling

https://www.msn.com/en-us/news/technology/ar-AA24cVZL
3•CarbonBasedUnit•27m ago•3 comments

South America Travel Costs in 2026: Which Cities Are Cheap Now

https://jackmaguire.org/blog/south-america-travel-costs-2026/
2•magicroot75•32m ago•1 comments

Google Security Engineer Arrested in Million-Dollar Polymarket Trading Scheme

https://www.wired.com/story/google-employee-accused-of-polymarket-one-million/
1•1vuio0pswjnm7•33m ago•0 comments

Google Employee Charged with Insider Trading

https://www.justice.gov/usao-sdny/pr/google-employee-charged-insider-trading
3•1vuio0pswjnm7•34m ago•0 comments

Show HN: SwiperTab – clean up your tabs in a fun way

https://addons.mozilla.org/en-US/firefox/addon/swipertab/
2•Realman78•34m ago•0 comments

AgingBench: AI Agents Age Too

https://agingbench.github.io
2•zfancy•35m ago•1 comments

Severe Latency Impacting All Slack Services

https://slack-status.com/2026-05/fd9a431182c72eeb
5•xyru•37m ago•1 comments

Trump admin drawing up plans to stop processing intl flights in sanctuary cities

https://www.theguardian.com/us-news/2026/may/27/dhs-international-flights-sanctuary-cities
7•standardUser•39m ago•1 comments

New method for testing AI using real work-flows

https://github.com/AssimilatedHuman/LLM-Inquisitor
1•ballista2026•40m ago•0 comments

Show HN: My Attempt at QR as a Captcha

https://qr.arcades.click
1•jwally•45m ago•0 comments

Ask HN: I am about to go from SWE to Product Manager, what is your day 1 advice?

1•mr_00ff00•49m ago•2 comments

A Luxury Survivalist Community Is Tearing Itself Apart

https://www.wsj.com/us-news/a-luxury-survivalist-community-is-tearing-itself-apart-53d2a99f
1•tortilla•49m ago•2 comments