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!

Ask HN: Favorite Sorting Algorithm?

1•akashwadhwani35•4m ago•0 comments

Ask HN: Do you have an unusual income source

1•xupybd•7m ago•0 comments

Japan to raise visa fees for foreign nationals

https://www.japantimes.co.jp/news/2026/06/20/japan/japan-raise-visa-fees/
1•geox•10m ago•0 comments

Cini, an app to rank movies and shows

1•jtsilver123•15m ago•0 comments

Sharing a Good One

1•SharingAGoodOne•16m ago•0 comments

Show HN: 2Flights – Track your flights; delays and stats (iOS/Android)

https://2flights.io
1•umuslitdinov•19m ago•0 comments

Stop Fearing Incidental Findings

https://ostro.ws/post-healthcare
1•robbieo•21m ago•1 comments

About the writing process (or lack thereof)

https://www.thefoxfirepub.com/blog/blog-post-title-four-lr658-tcthp-wf5mw-mx4m8-tgp6b
1•FantasticPulp•33m ago•0 comments

Chinas War on Female Delusion

https://mamathemagazine.com/chinas-war-on-female-delusion/
10•trojanalert•41m ago•0 comments

Samsung Electronics brings ChatGPT and Codex to employees

https://openai.com/index/samsung-electronics-chatgpt-codex-deployment/
1•doppp•42m ago•0 comments

How do you process asynchronous tasks today?

https://meerkatagents.com/
1•kannanreghu•43m ago•1 comments

SC law legalizes pinball for youth, ending decades-old prohibition

https://scdailygazette.com/2026/06/17/sc-law-legalizes-pinball-for-youth-ending-decades-old-prohi...
3•eric_h•46m ago•0 comments

Magpie-search – a federated search engine for LLM's/agents

https://github.com/xfloukiex-lab/magpie-search
1•Floukie•46m ago•0 comments

Niaid funded Wuhan Institute of Virology coronavirus gain-of-function research

https://www.dni.gov/index.php/newsroom/press-releases/press-releases-2026/4166-pr-11-26
8•stinkbeetle•53m ago•2 comments

China targets U.S. firms in retaliation for Pentagon blacklist

https://www.cnbc.com/2026/06/22/china-trade-curbs-us-companies-export-controls-procurement-exclus...
1•ilreb•57m ago•0 comments

Timesharing on the MIT Weather Radar PDP-8/IX

https://retrocomputingforum.com/t/timesharing-on-the-mit-weather-radar-pdp-8-ix/5569
1•signa11•1h ago•0 comments

ILX Launcher – a developer cockpit for Python apps (hot reload, crash capture)

https://github.com/ilxstudio/ILX-Launcher
1•ilxstudio•1h ago•0 comments

Hundred Hour Workweek

https://jeremynixon.net/100-hr-workweek
1•jeremynixon•1h ago•1 comments

Lloyd's Lab: Accelerating innovation in the insurance industry (2023) [pdf]

https://assets.lloyds.com/media/dc22cd29-1c4e-441c-a872-e1bf5ce9142a/Lloyds%20Lab_impact%20report...
1•mooreds•1h ago•0 comments

When AI Agents Do the Work, What Do We Lose?

https://milvus.io/blog/when-ai-agents-do-the-work-what-do-we-lose.md
1•Fendy•1h ago•0 comments

Show HN: Crespo – Tree-sitter AST blueprints instead of raw code for LLMs

https://github.com/hrudulmmn/crespo
2•ByteJoseph•1h ago•0 comments

Show HN: I applied Lyapunov stability theory to detect when LLM agents spiral

https://github.com/vishal-dehurdle/state-harness
1•visha1v•1h ago•0 comments

Telegram founder accuses Meta of sabotaging access in India with BGP hijacks

https://www.theregister.com/networks/2026/06/19/telegram-founder-accuses-meta-of-sabotaging-acces...
6•thisislife2•1h ago•2 comments

Manifest for RISC-V Constant Time Floating-Point Operations

https://fprox.substack.com/p/manifest-for-risc-v-constant-time
1•hasheddan•1h ago•0 comments

The Flat Curve Society

https://steve-yegge.medium.com/the-flat-curve-society-36c8b01eb33b
21•fbuilesv•1h ago•11 comments

Why Gen Z Is Nostalgic for a Digital World They Never Knew

https://decodingvibes.com/blog/genz-and-frutiger-aero/
1•altmanaltman•1h ago•0 comments

The Story of the UK General Strike

https://www.nationalarchives.gov.uk/explore-the-collection/stories/the-general-strike/
2•petethomas•1h ago•0 comments

Show HN: Open-source Notion-style personal site / blog

https://github.com/terryds/notion-style-personal-site
1•terryds•1h ago•0 comments

Progressive Disclosure

https://en.wikipedia.org/wiki/Progressive_disclosure
1•Austin_Conlon•1h ago•0 comments

Trump Ally Wins Colombia Election, Heralding Pro-Market Turn

https://www.bloomberg.com/news/articles/2026-06-22/trump-ally-wins-colombian-election-heralding-p...
2•baristaGeek•1h ago•1 comments