frontpage.
newsnewestaskshowjobs

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!

Cloud in a Bottle: making self-hosting accessible to everyone

https://cloudinabottle.org/blog/launch-post
2•zplizzi•8m ago•0 comments

Show HN: OpenMonitor – vendor neutral web monitoring cloud agent

https://www.openmonitor.website/
1•iacguy•8m ago•0 comments

DHH: Programming, AI, Vibe Coding and Linux (Lex Fridman Podcast)

https://lexfridman.com/dhh-2-transcript/
1•nsoonhui•10m ago•0 comments

Tracking the Farm Economy in Crisis

https://www.farmaid.org/issues/challenges-family-farmers-face/tracking-the-farm-economy-in-crisis/
1•cocacola1•11m ago•0 comments

New Twitter rebrands to Tweet.app after court's double-edged ruling

https://www.engadget.com/2251699/new-twitter-rebrands-to-tweet-app-after-court-double-edged-ruling/
1•NordStreamYacht•11m ago•0 comments

States reach agreement at autonomous weapons talks in Geneva

https://www.reuters.com/world/states-reach-agreement-autonomous-weapons-talks-geneva-2026-09-05/
1•reasonableklout•14m ago•0 comments

Why the Hugging Face Hack Should Make You Worry More About A.I

https://www.nytimes.com/2026/09/03/technology/openai-hugging-face-hacking.html
1•reasonableklout•18m ago•1 comments

Show HN: Midjourney API with webhooks, polling

https://www.midjourney-api.com
2•lys623•19m ago•0 comments

Ontoplano, FOSS life management app with a mobile app, MCP server and more

https://github.com/ontoplano/ontoplano
1•chedieck•22m ago•2 comments

Show HN: Undercolony - The Ant Colony MMO - You Are an Ant Now

https://undercolony.com/
1•nadermx•22m ago•0 comments

Interstellar 8-Track: The Not-So-Low-Tech Data Recorders of Voyager

https://hackaday.com/2018/11/29/interstellar-8-track-the-low-tech-data-recorders-of-voyager/
3•ColinWright•25m ago•0 comments

Chrome again exempts Google from user site data settings

https://lapcatsoftware.com/articles/2026/9/1.html
1•ExMachina73•32m ago•0 comments

Trace MCP

https://github.com/nikolai-vysotskyi/trace-mcp
1•handfuloflight•33m ago•0 comments

UN votes to adopt new world map to reflect Africa's true size

https://www.bbc.com/news/articles/ce30vp55dnlo
3•thunderbong•35m ago•2 comments

Collectivist Anarchism

https://en.wikipedia.org/wiki/Collectivist_anarchism
1•Bluestein•35m ago•0 comments

A native macOS app for reviewing GitHub pull requests

https://github.com/alaminopu/difft
1•alaminopu•36m ago•0 comments

Who runs the labor market? Women accounted for 98% of U.S. job gains in August

https://finance.yahoo.com/economy/articles/runs-labor-market-women-accounted-142403497.html
2•bilsbie•36m ago•0 comments

Extropic Z1T

https://extropic.ai/writing/z1t/
2•handfuloflight•37m ago•0 comments

Responsive Windows for Workgroups 3.11

https://win31.gross.is/
2•endtwist•38m ago•0 comments

Floss Security

https://seirdy.one/posts/2022/02/02/floss-security/
1•Cider9986•44m ago•0 comments

Dwelling in the Fuchun Mountains

https://k9s.gr/ramblings/dwelling_in_the_fuchun_mountains.html
1•rafael859•48m ago•0 comments

Truckers – AI data centers as business booms

https://www.cnbc.com/2026/09/05/ai-data-centers-cost-economy.html
1•cramer4next•49m ago•0 comments

Clove: Agent Skills for Mac

https://www.kshv.me/clove
1•handfuloflight•49m ago•0 comments

Computer Science Achievement and Writing Skills Predict Vibe Coding Proficiency

https://arxiv.org/abs/2603.14133
3•ai_critic•52m ago•0 comments

Enhanced Marinara: Pomodoro Assistant

https://chromewebstore.google.com/detail/enhanced-marinara-pomodor/lndmnhfeakddkplpflindoclekcogomk
1•Ksenofanex•53m ago•1 comments

AI and the collapse of the intelligence-based hierarchy of merit

https://mattbruenig.com/2026/08/31/more-thoughts-on-ai/
3•rzk•57m ago•1 comments

"Shatnered" [video]

https://www.youtube.com/watch?v=6Mo3G3LqIeo
1•giardini•1h ago•0 comments

What If We Had Taxed the Internet?

https://thesaltroad.net/p/what-if-we-had-taxed-the-internet
2•Ariarule•1h ago•1 comments

Zopt: Low-ceremony command line parsing for Zig

https://codeberg.org/hgrsd/zopt
1•birdculture•1h ago•0 comments

Hikers rescued after using Google Gemini for planning

https://techcrunch.com/2026/09/05/hikers-rescued-after-using-google-gemini-for-planning/
2•sbulaev•1h ago•0 comments