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!

Jensen Huang Became AI's Taylor Swift

https://www.economist.com/interactive/1843/2026/09/03/how-jensen-huang-became-ais-taylor-swift
1•tolugenius•53s ago•1 comments

Show HN: Memory plugin for coding agents that remembers your coding&chat history

https://github.com/deepmemteam/deepmem-claude-plugin
2•deepmem•1m ago•0 comments

People Who Can't Picture Anything Are Rewriting the Science of Imagination

https://dailyneuron.com/aphantasia-mental-imagery-brain-network/
1•giuliomagnifico•1m ago•0 comments

Global AI stocks fall as industry chiefs call for slowing development

https://www.reuters.com/world/china/ai-linked-asian-stocks-slump-after-top-lab-ceos-call-slowing-...
1•1vuio0pswjnm7•3m ago•1 comments

An AI deal with China could get Donald Trump his Nobel Prize

https://economist.com/by-invitation/2026/09/14/an-ai-deal-with-china-could-get-donald-trump-his-n...
1•andsoitis•4m ago•0 comments

Show HN: Pelican-bicycle alternatives (updated)

https://gally.net/temp/20260914pelican-alternatives/index.html
1•tkgally•5m ago•0 comments

Update on Security at METR

https://metr.org/blog/2026-08-31-security-update/
1•tosh•6m ago•0 comments

Don't Fall for a Mystery Shopping Job Scam

https://www.mouseprint.org/2026/09/14/dont-fall-for-a-mystery-shopping-job-scam/
1•speckx•7m ago•0 comments

The Ocean Is Not a Road: Fix Your Fantasy Map [video]

https://www.youtube.com/watch?v=u5kEbkeX_94
1•skibz•8m ago•0 comments

Temporal raises $550M at a $12.55B valuation

https://temporal.io/blog/temporal-raises-usd550m-series-e-at-usd12-55b-valuation-ai
1•gk1•8m ago•0 comments

The powerful millionaires hiding in plain sight

https://www.npr.org/sections/planet-money/2026/09/14/g-s1-143041/the-powerful-millionaires-hiding...
2•ripe•8m ago•1 comments

The AI-as-Normal-Technology view of loss-of-control incidents

https://www.normaltech.ai/p/the-ai-as-normal-technology-view
1•guillego•9m ago•0 comments

Volkswagen Just Built an EV That Can Go Nearly 900 Miles on a Charge

https://www.motor1.com/news/808114/vw-mission-efficiency-concept-specs-photos/
2•thelastgallon•10m ago•0 comments

Show HN: LinXiv v0.5.0: Headless research-DB image with iroh for self-hosting

https://www.youtube.com/watch?v=LW_o-F2Msvo
1•jeuribe•10m ago•0 comments

Fusion Centers Are Asking for Subpoena Power Without a Court Order

https://danboguslaw.substack.com/p/spy-hubs-ask-congress-for-dangerous
1•iamnothere•11m ago•0 comments

FAFO: Blocking malicious traffic on my NixOS server

https://sighery.com/posts/fafo/
2•Sighery•11m ago•0 comments

Show HN: Good News Digest – Daily stories of progress, kindness and discovery

https://goodnewsdigest.app/
2•cjami•11m ago•0 comments

Oil Industry Moves to Weaken Proposed Fossil Fuel Advertising Ban in France

https://www.desmog.com/2026/09/11/exclusive-oil-industry-moves-to-weaken-proposed-fossil-fuel-adv...
1•robtherobber•12m ago•0 comments

Show HN: Music visualizer that knows the drop is coming (iOS 27 on-device)

https://www.prismatic.fm/music/conductor
1•a-kaul•12m ago•0 comments

Why Mortgage Bonds Are at Risk If Rates Rise–and If They Fall

https://www.wsj.com/finance/why-mortgage-bonds-are-at-risk-if-rates-riseand-if-they-fall-ff897dd5
1•burger_moon•12m ago•0 comments

Trump Jr.'S Wedding Was Bankrolled by Russian Oligarch Close to Putin

https://www.propublica.org/article/donald-trump-jr-wedding-bankrolled-russian-oligarch-umar-kreml...
8•embedding-shape•13m ago•0 comments

Could AI Kill Off Humans?

https://www.scientificamerican.com/article/could-ai-really-kill-off-humans/
1•lelele•13m ago•0 comments

Streaming TV Prices Rising Faster Than Cable Ever Did

https://www.techdirt.com/2026/09/14/streaming-tv-prices-rising-faster-than-cable-ever-did/
2•speckx•15m ago•0 comments

Ten Years of Vapor

https://blog.vapor.codes/posts/ten-years-of-vapor/
1•frizlab•16m ago•0 comments

The Monkey Type Online Free Typing Tool

https://themonkeytype.com
1•junaidbilalbaig•16m ago•0 comments

The Complete Guide to pstack Pt. 2

https://twitter.com/poteto/status/2097732320606507506
1•tosh•17m ago•0 comments

Show HN: Real-world attack credential lists from our own honeypot network

https://github.com/lurescope/top-attack-lists
1•lurescope•17m ago•0 comments

Show HN: MS MARCO click-translation expansion tables ("poor man's" DSSM)

https://huggingface.co/mirth/msmarco-expansion-tables
2•hessdalenlight•18m ago•1 comments

Show HN: Self-hosted coffee app for tracking espresso shots, with AI assistance

https://github.com/michidk/roastbook
1•michidk•19m ago•0 comments

Ask HN: Are 80s high school hobby programmers overwhelmingly pro-AI?

2•amichail•19m ago•4 comments