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!

Harvard Agrees to $53M Settlement in Body Part Theft Scandal

https://www.nytimes.com/2026/08/18/us/harvard-stolen-body-parts-settlement.html
1•ChrisArchitect•3m ago•1 comments

Generalized Audio-Driven Synthesis of Precise Drummer Motion

https://studios.disneyresearch.com/2026/08/18/generalized-audio-driven-synthesis-of-precise-drumm...
1•DustinBrett•3m ago•0 comments

TinyRetroPad is 130 times smaller than Windows Notepad

https://www.xda-developers.com/tinyretropad-130-times-smaller-than-windows-notepad-but-functional/
1•nianderwallace•5m ago•0 comments

Agent2Agent (A2A) joins Agentic AI Foundation (AAIF)'s open agentic stack

https://aaif.io/blog/a2a-joins-aaif
1•ChrisArchitect•8m ago•0 comments

The Machines Are Getting Cheap. The Toolpaths Are Not

https://sliptonic.com/posts/machines-cheap-toolpaths-not/
2•sergebakharev•8m ago•0 comments

Ask HN: How are front end friends doing these days?

1•BearBest•10m ago•1 comments

Japan's Gen X workers are struggling

https://www.economist.com/asia/2026/08/18/japans-gen-x-workers-are-struggling
1•andsoitis•10m ago•0 comments

Cosmological natural selection: evolution beyond biology

https://www.smithsonianmag.com/science-nature/earths-organisms-developed-via-evolution-some-theor...
1•fidrelity•12m ago•0 comments

How Claude is accelerating protein design and analytical chemistry

https://www.anthropic.com/research/Claude-accelerates-protein-design
1•starshadowx2•12m ago•0 comments

Does anyone care about HR?

1•drguzman•13m ago•0 comments

Will Autonomous AI Exceed AI-Aided Physicians as the Best Medical Care?

https://jamanetwork.com/journals/jama/fullarticle/2852952?guestAccessKey=562af865-a038-4425-993f-...
1•liamkf•13m ago•0 comments

Want a Simple, Metasearch Engine?

https://github.com/LiamProsser77/gronnfalk
1•Gronnfalk•14m ago•0 comments

Qnote – a notepad in the browser with no account and no cloud

https://qnote.online/
1•yashsharma04•16m ago•0 comments

Strive to Be Earth's Best Employer

1•oenton•24m ago•0 comments

Snake rendered with 576 browser windows

https://codepen.io/editor/GrahamTheDev/pen/019f90a9-1ed9-7d61-927e-31dd5256c79e
1•LouisLazaris•26m ago•1 comments

Puzzle nights are up 151% and my team works alone

https://dev.profullstack.com/~anthony/blog/017-post.html
2•buffer_overlord•27m ago•0 comments

Palomar: A registry of Lean verified mathematics

https://terrytao.wordpress.com/2026/08/18/palomar-a-registry-of-lean-verified-mathematics/
2•matt_d•31m ago•0 comments

Reasons to Avoid Seed Oils [video]

https://www.youtube.com/watch?v=EIKFuUnfeW4
1•pinkmuffinere•33m ago•0 comments

Tech Transparency Project – Holding Big Tech Accountable

https://www.techtransparencyproject.org/
2•dotcoma•34m ago•0 comments

"the mandate" a short fiction by Grok 4.6 on technological singularity

https://www.echohive.ai/the-mandate-singularity-fiction
1•echohive42•35m ago•0 comments

An Engineer as Civil Servant

https://govinsider.asia/intl-en/article/an-engineer-as-civil-servant
1•doppp•36m ago•0 comments

SniffCat – A free API for checking and reporting abusive IPs

https://sniffcat.com/
1•sefinek•37m ago•0 comments

Show HN: Warp DD – AI that analyzes technology ecosystems in ~30 seconds

https://warpdd.com
1•masato_furuno•47m ago•0 comments

Meta's blockbuster trial draws parallels to big tobacco

https://www.economist.com/business/2026/08/18/metas-blockbuster-trial-draws-parallels-to-big-tobacco
19•newsomix9xl•49m ago•2 comments

Keenpix – an OSS image CDN with predictable managed pricing

https://keenpix.com/
1•lord007tn•58m ago•1 comments

The End-State Fallacy: Where Is AI Security Headed?

https://endstatefallacy.com/
1•allanbreyes•1h ago•0 comments

Universal Dive Data Format

https://wrobell.dcmod.org/uddf/
2•nvahalik•1h ago•0 comments

Sutton and Javed: Why AI Models Stop Learning, and How to Start It Again [video]

https://www.youtube.com/watch?v=xH7U7w9Qzlo
2•abetusk•1h ago•0 comments

OpenAI halts testing, slows development after rogue model hacked Hugging Face

https://www.abc.net.au/news/2026-08-19/openai-slows-development-pauses-testing-after-hugging-face...
1•scorpioxy•1h ago•1 comments

She told no one about her agony except ChatGPT. What her death reveals about AI

https://www.npr.org/2026/08/18/nx-s1-5929575/ai-suicide-risks-mental-health
5•newsomix9xl•1h ago•1 comments