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!

If AI companies avoid AI slop, shouldn't we?

https://www.machinesociety.ai/p/if-ai-companies-avoid-ai-slop-shouldnt
3•mikelgan•5m ago•1 comments

Patreon Lays Off 20 Percent of Its Workforce

https://www.404media.co/patreon-lays-off-20-percent-of-its-workforce/
6•cdrnsf•17m ago•0 comments

Saying Goodbye to My Office

https://manilsuri.substack.com/p/on-saying-goodbye-to-my-office
4•tzury•19m ago•0 comments

Palo Alto Networks Plans to Buy Embrace in Observability Push

https://www.morningstar.com/news/dow-jones/202607219336/palo-alto-networks-plans-to-buy-embrace-i...
2•pranay01•23m ago•0 comments

Measuring the Performance Cost of High Availability in Postgres

https://clickhouse.com/blog/postgresbench-ha
3•saisrirampur•26m ago•0 comments

Middleware that catches when LLM conversations slowly drift off-topic

https://github.com/ojki74/hallucinatoff
1•ojki•30m ago•0 comments

Feral cats fail at urban rodent control (2018)

https://wildlife.org/rats-feral-cats-fail-at-urban-rodent-control/
3•vector_spaces•31m ago•0 comments

Now on the American Road: Bulletproof Cars

https://www.nytimes.com/2026/07/20/style/armored-cars-bulletproof-american-drivers.html
1•bookofjoe•31m ago•1 comments

The Visual 6502

http://visual6502.org/JSSim/index.html
2•infiniteregrets•33m ago•0 comments

How working out at the gym replaced the home improvement project

https://www.cnn.com/2026/07/23/business/gyms-millennials-gen-z-equinox
1•mooreds•36m ago•1 comments

China won the car wars with cheap EVs loaded with technology

https://www.rnz.co.nz/news/world/782063/how-china-won-the-car-wars-with-cheap-evs-loaded-with-tec...
11•billybuckwheat•41m ago•1 comments

The Online MBA

https://theonline.mba
2•multiplesauces•41m ago•1 comments

The Elm Architecture, Without Elm

https://bichanna.github.io/posts/tea-time/
3•theanonymousone•41m ago•0 comments

Sherlock Search – find anyone by photo

https://sherlocksearch.net
1•thefirstname322•42m ago•0 comments

AI bet goes awry: Oracle fires 21,000 employees

https://www.jpost.com/business-and-innovation/tech-and-start-ups/article-903442
4•willmarch•43m ago•1 comments

About 1 in 4 workers keep unwanted jobs for health insurance, poll finds

https://www.washingtonpost.com/business/2026/07/24/about-1-4-workers-keep-unwanted-jobs-health-in...
3•bookofjoe•46m ago•1 comments

Show HN: Verified B2B leads with the reason to reach out now

https://madleadz.com/
1•not_wowinter14•46m ago•0 comments

CodeCrafters – Build Your Own <X> repo

https://github.com/codecrafters-io/build-your-own-x
2•matthberg•46m ago•0 comments

Ukraine's Kill Zone

https://www.reuters.com/graphics/UKRAINE-CRISIS/KILL-ZONE/znpnojmknvl/
6•mathgenius•49m ago•0 comments

There isn't a single consumer Wi-Fi router that is 100% American-made

https://www.engadget.com/2218707/no-100-percent-american-made-wifi-router/
1•speckx•50m ago•0 comments

OpenAI's Dean Ball on Chinese Open-Weight Models

https://twitter.com/deanwball/status/2078133895766114412
3•matt_daemon•51m ago•0 comments

India's CJP Protests Meet Internet Shutdowns and Pervasive Surveillance

https://www.techpolicy.press/indias-cjp-protests-meet-internet-shutdowns-and-pervasive-surveillance/
2•sid_talks•53m ago•0 comments

Canva uses S3 for logged-in session management

https://www.canva.dev/blog/engineering/session-revocations-at-scale/
3•birdculture•54m ago•0 comments

Quick Followup on the Truth Social Thing

https://www.businesslawprofessors.com/2026/07/quick-followup-on-the-truth-social-thing/
4•petethomas•54m ago•0 comments

Ask HN: What Linux distro do you daily drive?

7•addajones•54m ago•9 comments

FreeBSD ports frozen after someone commits the 150MB Linux Copilot binary

https://www.osnews.com/story/145593/freebsd-ports-frozen-after-someone-commits-the-entire-150mb-l...
2•iamnothere•55m ago•0 comments

Light Flip Phone

https://www.thelightphone.com/lightflip
4•agilek•57m ago•0 comments

Recent Modeling Systematically Underestimates Warming from IMO2020 Shipping Regs

https://egusphere.copernicus.org/preprints/2026/egusphere-2026-2654/
1•littlexsparkee•57m ago•0 comments

A DEX aggregator whose quotes are computed on-chain (free API, no key)

https://blazephoenix.xyz/
1•mitraxyz•57m ago•1 comments

Show HN: SQL service for tables with billions of rows or up to 1M columns

2•synsqlbythesea•1h ago•1 comments