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!

Ecotypes Harbor the Genetic Memory of a Species' Past

https://www.quantamagazine.org/how-ecotypes-harbor-the-genetic-memory-of-a-species-past-20260521/
1•ibobev•2m ago•0 comments

AI-assisted engineers are burning out, is this fine?

https://evilmartians.com/chronicles/ai-assisted-engineers-are-burning-out-is-this-fine
1•vinnyglennon•3m ago•0 comments

Incubate This

https://sylvansmit.com/articles/incubate-this.html
1•sylvanjsmit•3m ago•0 comments

Circular and hyperbolic functions differ by rotations

https://www.johndcook.com/blog/2026/05/21/circular-hyperbolic-rotations/
1•ibobev•3m ago•0 comments

Couth and Uncouth Function Pairs

https://www.johndcook.com/blog/2026/05/21/couth-and-uncouth-function-pairs/
1•ibobev•4m ago•0 comments

Trump calls off AI executive order over concern it could weaken US tech edge

https://apnews.com/article/trump-ai-executive-order-ee318f35acc8a2c43e47f3ebf26cb459
2•geox•6m ago•0 comments

Inside the unraveling of U.S. diplomacy under Trump

https://www.reuters.com/investigations/inside-unraveling-us-diplomacy-under-trump-2026-05-21/
2•layer8•6m ago•0 comments

Show HN: SIMD Agent – AI that runs OpenFOAM simulations from natural language

https://github.com/simd-ai/agent
2•tito777•9m ago•0 comments

Police sue Trump as Jan. 6 rioters gloat over 'weaponization' fund

https://text.npr.org/g-s1-123293
5•pera•11m ago•0 comments

Google is dethroning OpenAI as the king of consumer AI

https://www.economist.com/business/2026/05/20/google-is-dethroning-openai-as-the-king-of-consumer-ai
2•bookofjoe•16m ago•1 comments

India has a new political superstar – a cockroach

https://www.bbc.com/news/articles/cz72y11jjq1o
2•akbarnama•18m ago•0 comments

Fred Wilson – Create Your Own Currency with FlipCash

https://avc.xyz/create-your-own-currency-with-flipcash
2•rmason•18m ago•1 comments

Show HN: Anyone interested in a tool helps to explore C++ ASTs

https://uvic-aurora.github.io/acav-manual/index.html
2•leomicv•20m ago•0 comments

Fender wins legal battle over Stratocaster shape in Germany

https://guitar.com/news/industry-news/fender-eu-germany-stratocaster-trademark-ruling/
1•Kaibeezy•20m ago•0 comments

US–Iran deal reportedly finalised, announcement expected within hours

https://www.fxstreet.com/news/breaking-us-iran-deal-reportedly-finalised-announcement-expected-wi...
3•personjerry•22m ago•3 comments

Anti-Data Center Rebels in Texas Pray to Jesus to Keep Them Out

https://www.bloomberg.com/news/features/2026-05-21/small-town-texas-rebels-against-data-centers-i...
2•1vuio0pswjnm7•23m ago•0 comments

London Met Police Palantir Contract Blocked by City Hall

https://www.bbc.co.uk/news/articles/clyp1e11px0o
1•m-i-l•23m ago•0 comments

Programmatic Devcontainer Interface

https://github.com/crunchloop/devcontainer
1•bilby91•24m ago•0 comments

Meta Settles School Suit over Social Media, Averting Trial

https://www.bloomberg.com/news/articles/2026-05-21/meta-settles-school-suit-over-social-media-ave...
3•1vuio0pswjnm7•24m ago•0 comments

NSF Leadership-Class Computing Facility (UT Austin) Passes $376M Obligation

https://www.usaspending.gov/award/ASST_NON_72061521CA00003_072/
1•thebuildout•24m ago•0 comments

Social-Media Companies Settle Youth-Harm Case Ahead of Wave of Trials

https://www.wsj.com/us-news/education/social-media-companies-settle-youth-harm-case-ahead-of-wave...
3•1vuio0pswjnm7•26m ago•0 comments

Termique: Cross-Platform SSH Manager

https://termique.app/
2•theanonymousone•29m ago•0 comments

Ehyeh: The behavioral identity primitive the internet forgot to build

https://noctaracorp.com/ehyeh
1•coleaalkire•29m ago•0 comments

Winning on Jeopardy

https://www.theatlantic.com/magazine/2026/06/how-to-win-jeopardy/686933/
1•Tomte•31m ago•0 comments

E-Hiking Is Here. You Can Tell by My 1k-Watt Hips

https://www.wsj.com/tech/personal-tech/robot-legs-hypershell-x-ultra-tested-e8a254e2
1•Cider9986•32m ago•0 comments

Show HN: AI Audiobook Narrator

https://warblize.com/
2•onhacker•33m ago•0 comments

Israel's High-Tech Campaign to Kill or Capture Every Oct. 7 Attacker

https://www.wsj.com/world/middle-east/israel-gaza-ceasefire-attacks-55c889b7
2•Cider9986•33m ago•1 comments

Multi-Stream LLMs: new paper on parallelizing/separating prompts, thinking, I/O

https://arxiv.org/abs/2605.12460
3•atomicthumbs•36m ago•1 comments

A MTL shall not be required of an individual, business for these activities

https://www.scstatehouse.gov/sess126_2025-2026/bills/163.htm
2•Cider9986•36m ago•1 comments

Blink – AI Assistant. A Knowledge Destination

https://blink-oi.vercel.app
1•Pascal1997•37m ago•0 comments