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•10mo 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•10mo ago
Finally!

Apple at 50: Five Decades of Thinking Different [video]

https://www.youtube.com/watch?v=w8wt0LBCjXM
1•vinhnx•52s ago•0 comments

Extra Timezones on You Mac Menubar

https://apps.apple.com/gb/app/zoneclock-toolbar-clock/id6760158037?mt=12
1•alepacheco-dev•2m ago•0 comments

WireGuard Is Two Things

https://www.proxylity.com/articles/wireguard-is-two-things.html
2•mlhpdx•7m ago•0 comments

Anyone else having GitHub Actions fail?

2•munksbeer•7m ago•1 comments

White House AI Video Tweet

https://twitter.com/WhiteHouse/status/2031895801064985021
1•csomar•10m ago•1 comments

Ever Onward IBM [video]

https://www.youtube.com/watch?v=L9oh3gqOEKU
1•walterbell•22m ago•0 comments

Why are so many statues naked? An art historian explains its ancient roots

https://theconversation.com/why-are-so-many-statues-naked-an-art-historian-explains-this-traditio...
2•1659447091•22m ago•0 comments

PhDs and other experts making $16/HR training AI to kill their own jobs

https://nymag.com/intelligencer/article/white-collar-workers-training-ai.html
3•suzzer99•25m ago•1 comments

The Bold Environmental Vision of President Jimmy Carter

https://www.motherjones.com/politics/2024/12/president-jimmy-carter-death-100-environmental-legac...
2•altilunium•27m ago•0 comments

US intelligence says Iran government is not at risk of collapse

https://www.reuters.com/business/media-telecom/us-intelligence-says-iran-government-is-not-risk-c...
5•tartoran•28m ago•2 comments

Why are some stars always visible while others come and go with the seasons

https://theconversation.com/why-are-some-stars-always-visible-while-others-come-and-go-with-the-s...
3•1659447091•34m ago•0 comments

Hightitan, a lightweight framework for high-concurrency data streaming

1•HIGHTITAN•37m ago•0 comments

Offline Computing

https://robertsdotpm.github.io/software_engineering/offline_computing.html
3•Uptrenda•39m ago•0 comments

Ask HN: Built API monitor with root cause analysis – unable to find first users

1•acrtic•41m ago•1 comments

.ORG Domain Price Increases June 1, 2026

4•ommz•43m ago•2 comments

Show HN: AutoICD API – AI clinical coding platform for ICD-10 and SNOMED

https://autoicdapi.com
1•FedeUY•45m ago•0 comments

Everyone's new favorite protein bar hit with class-action lawsuit over calories

https://www.nbcnewyork.com/news/david-protein-bar-calories-class-action-lawsuit/6475387/
2•randycupertino•48m ago•1 comments

Quantsynth – Forecast evaluation and dataset analysis before modeling

https://quantsynth.org/
1•slyyyy•51m ago•1 comments

Show HN: MCP server for ICD-10 and SNOMED clinical coding

https://github.com/fcggamou/autoicd-mcp
1•FedeUY•53m ago•0 comments

Tetris Is Hard with Just One Piece Type

https://arxiv.org/abs/2603.09958
2•bmc7505•1h ago•0 comments

Why Big Nations Lose Small Wars: The Politics of Asymmetric Conflict

https://www.researchgate.net/publication/259380603_Why_Big_Nations_Lose_Small_Wars_The_Politics_o...
4•rramadass•1h ago•1 comments

I Stopped Writing Prompts and Started Writing Systems

https://medium.com/@robert.shane.kirkpatrick/i-stopped-writing-prompts-and-started-writing-system...
2•totalvaluegroup•1h ago•2 comments

Fossil Version 2.28

https://fossil-scm.org/home/info/version-2.28
1•chungy•1h ago•1 comments

The United States Could Lose the Gulf

https://foreignpolicy.com/2026/03/05/iran-israel-united-states-war-gulf-countries-alliances/
4•ParentiSoundSys•1h ago•0 comments

Oil hits $100 a barrel despite deal to release record amount of reserves

https://www.bbc.com/news/articles/c1w5141vx53o
39•tartoran•1h ago•37 comments

Procreate Dreams 2

https://procreate.com/dreams
1•twalichiewicz•1h ago•0 comments

Iran-Backed Hackers Claim Wiper Attack on Medtech Firm Stryker

https://krebsonsecurity.com/2026/03/iran-backed-hackers-claim-wiper-attack-on-medtech-firm-stryker/
26•2bluesc•1h ago•0 comments

'Web Kit' vs. 'WebKit' (2006)

https://daringfireball.net/2006/05/web_kit_vs_webkit
5•dddddaviddddd•1h ago•0 comments

I Built an Agent First Micro SaaS

https://mochipdf.com
2•cbolgiano•1h ago•2 comments

Show HN: Live Kaiwa – real-time Japanese conversation support

https://livekaiwa.com/login
1•diasks2•1h ago•0 comments