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!

Rapidly scaling online storage to serve over 1B ChatGPT users

https://openai.com/index/scaling-storage-one-billion-users-part-one/
1•porridgeraisin•16s ago•0 comments

Iran 'blew the hell out of' base in Bahrain, acting Navy Secretary admits

https://taskandpurpose.com/news/navy-base-bahrain-iran-damage/
1•ilamont•35s ago•0 comments

Preventing AI Collusion: Are you paying attention now?

https://aiprospects.substack.com/p/preventing-ai-collusion-are-you-paying
1•paulpauper•48s ago•0 comments

A simple model of AI-aided economic growth

https://marginalrevolution.com/marginalrevolution/2026/09/a-simple-model-of-ai-aided-economic-gro...
1•paulpauper•1m ago•0 comments

Zuse Computer Museum Forced to Close

https://www.i-programmer.info/news/82-heritage/19142-zuse-computer-museum-forced-to-close.html
1•vitplister•2m ago•0 comments

JetKVM OS Services

https://jetkvm.com/blog/introducing-jetkvm-os-services
2•gainsurier•6m ago•0 comments

Korea closes lifetime pension loophole based on 1 month's work

https://twitter.com/Unveiled_ChinaX/status/2099026824990962021
1•ilamont•6m ago•0 comments

Are you committed to team or company?(economist)

https://economist.com/business/2026/09/10/are-you-committed-to-your-company-or-your-teamfromTheEc...
1•sunjain•8m ago•0 comments

Anthropic CEO Calls for A.I. Slowdown

https://www.nytimes.com/2026/09/12/technology/anthropic-dario-amodei-ai-slowdown.html
1•joe_the_user•8m ago•1 comments

Ask HN: If embeddings are so powerful, why are they mostly used for retrieval?

1•Pranav_Ghoghari•12m ago•0 comments

AI keeps stubbornly refusing to take our jobs

https://www.noahpinion.blog/p/ai-keeps-stubbornly-refusing-to-take
1•firasd•12m ago•0 comments

The Relation Between Mathematics and Physics by Paul Dirac

https://www.damtp.cam.ac.uk/events/strings02/dirac/speach.html
1•rramadass•12m ago•0 comments

Show HN: "Am I GPU Poor?" Check how your GPU stacks against PC Gamers Worldwide

https://gpupoor.sykah.com/
1•dshahrokhian•14m ago•0 comments

Collapse of Personal Computing: Investigation into the Destruction of Ownership [video]

https://www.youtube.com/watch?v=zyQwAhppWj8
1•soraminazuki•14m ago•0 comments

Chances of Survival (for AI and Humanity)

https://qosys.info/chances-of-survival
1•earlybuilder•14m ago•0 comments

Filesystem Is Lying to You

https://faraazahmad.github.io/blog/posts/filesystem-is-lying-to-you/
1•faraaz98•15m ago•0 comments

Vector Balancing via Directional Total Variation

https://arxiv.org/abs/2609.11189
1•tamnd•16m ago•0 comments

Useful Things Agents Can Do That Are Not Writing Code

https://elijahpotter.dev/articles/useful-things-agents-can-do-that-are-not-writing-code
2•birdculture•19m ago•0 comments

ZLUDA – Drop-In Replacement for CUDA on Non-Nvidia GPUs

https://github.com/vosen/ZLUDA
1•peter_d_sherman•21m ago•1 comments

Audemars Piguet Neo Frame Jumping Hour

https://www.audemarspiguet.com/ch/en/watch-collection/neo-frame/15245OR.OO.A206VE.01
2•andsoitis•22m ago•0 comments

War has not halted the Gulf's data-centre boom

https://www.economist.com/business/2026/09/10/war-has-not-halted-the-gulfs-data-centre-boom
2•andsoitis•26m ago•0 comments

Better routing, probe fixes, plugin updates in Freenet/Hyphanet 0.7.5 build 1507

https://www.hyphanet.org/freenet-hyphanet-075-build-1507-fix-probe-routing-plugins-and-upkeep.html
1•ArneBab•27m ago•0 comments

Spectrogram – see your music as a moving 3D landscape

https://github.com/nijatburjiyev/spectral-relief
1•nijatburjiyev•27m ago•0 comments

US Military tests quantum sensors for flight navigation without GPS over Pacific

https://www.heise.de/en/news/US-military-tests-quantum-sensors-for-flight-navigation-without-GPS-...
3•marklit•29m ago•0 comments

Docket – Per-commit evidence records for agent-written code

https://github.com/Dillonsmart/docket
2•dillonsmartdev•33m ago•0 comments

How Modern Fascism Works – End Times Fascism – Naomi Klein and Astra Taylor

https://www.youtube.com/watch?v=aK2nLNiFEAQ
2•abathologist•34m ago•0 comments

The Case for Open-Weight Models and Why We Can't Trust Frontier Labs

https://www.provos.org/p/case-for-open-weight-models/
2•wslh•34m ago•0 comments

SecretGate – Hardened, self-hosted NGL alternative

https://github.com/sasiru-mindaka/Secret-Gate
1•sasiru-mindaka•37m ago•0 comments

Misleading Metaphors and Real Risks

https://aiguide.substack.com/p/misleading-metaphors-and-real-risks
2•lacunary•38m ago•0 comments

What's the smallest agent harness that is still architecturally complete?

https://github.com/earthwalker17/MiniDSH
1•earthwalker17•41m ago•0 comments