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!

Doctors die. It's not like the rest of us, but it should be (2016)

https://archive.cancerworld.net/featured/how-doctors-die/
1•downbad_•1m ago•0 comments

Nuclear War Survival Skills (1987)

https://www.oism.org/nwss/
2•downbad_•1m ago•0 comments

Watch This Cyborg Cockroach Test Its New Diving Suit

https://nautil.us/watch-this-cyborg-cockroach-test-its-new-diving-suit-1282592
1•julkali•1m ago•0 comments

The Human Cell Is Wildly Complex. Can AI Decode It? – Silvana Konermann – Ted [video]

https://www.youtube.com/watch?v=Xr9VqRawjAU
1•binyu•3m ago•0 comments

Chinese company closing private schools raises 'national security concerns'

https://www.telegraph.co.uk/news/2026/07/02/chinese-company-closing-schools-national-security/
1•intheitmines•7m ago•1 comments

Old and new apps, via modern coding agents

https://terrytao.wordpress.com/2026/07/11/old-and-new-apps-via-modern-coding-agents/
1•s1291•10m ago•0 comments

Inferring multicellular interactions in tumors from standard pathology slides

https://med.stanford.edu/news/all-news/2026/07/ai-tumor-pathology.html
2•hhs•11m ago•0 comments

Cops Say Waymo Snitched on Teens for Allegedly Drinking and Shooting a Toy Gun

https://www.404media.co/waymo-called-police-on-teens-san-mateo/
2•doener•12m ago•0 comments

A Swedish company is putting wings on boats [video]

https://www.youtube.com/watch?v=_VVXfYAOkEo
1•xqcgrek2•13m ago•0 comments

Dazzle Camouflage

https://en.wikipedia.org/wiki/Dazzle_camouflage
1•corentin88•19m ago•0 comments

Falsehoods Programmers Believe About Names (2010)

https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/
1•theanonymousone•21m ago•0 comments

How sea stars build materials that can see

https://www.engineering.upenn.edu/stories/how-sea-stars-build-materials-that-can-see/
2•hhs•22m ago•0 comments

Fixed three bugs that made Qwen3.5-122B a daily driver on Mac Studio

https://mrzk.io/posts/qmlx-maximising-ai-psychosis-minmaxing-mac-studio/
1•marzukia•22m ago•0 comments

Show HN: AgentTransfer – open-source file transfer for AI agents (one Go binary)

https://github.com/shehryarsaroya/agenttransfer
1•tomatoes2026•23m ago•1 comments

Weightlifting beats running for blood sugar control, researchers find

https://news.vt.edu/articles/2025/11/research_fralinbiomed_yanweightlifting.html
22•sublinear•26m ago•4 comments

The fine print that follows you out the door: non-compete clauses are spreading

https://oecdecoscope.blog/2026/07/07/the-fine-print-that-follows-you-out-the-door-non-compete-cla...
2•hhs•28m ago•0 comments

G#: A modern .NET language with Go, Kotlin, and Swift ergonomics

https://davidobando.github.io/gsharp/
1•mashally•37m ago•0 comments

Mesh LLM: distributed AI computing on iroh

https://www.iroh.computer/blog/mesh-llm
13•tionis•37m ago•2 comments

AI and Job Postings: From Destruction to Creation?

https://www.hiringlab.org/2026/07/08/ai-and-job-postings-from-destruction-to-creation/
2•petilon•38m ago•0 comments

ContextOps, an ESLint-like static analyzer for LLM context

https://github.com/Abhijeet777ui/contextops
1•Abhijeet_Buag•40m ago•0 comments

Stop Telling Me to Ask an LLM

https://blog.yaelwrites.com/stop-telling-me-to-ask-an-llm/
50•theorchid•47m ago•25 comments

The Gravitational Olbers' Paradox and the Entropic Accelerating Universe

https://zenodo.org/records/21225371
1•nmstoker•48m ago•0 comments

"material deletion occurred" Sol wiped out user's home

https://twitter.com/mattshumer_/status/2075657271401390161
1•zxspectrumk48•1h ago•0 comments

Show HN: Token Time – Screen Time, but for your AI agent tokens

https://tokentime.bar
1•wzulfikar•1h ago•0 comments

Neobrowser AI has rediculously strong VPN builtin for FREE

https://neobrowser.ai/
1•burgeekingdom•1h ago•0 comments

Show HN: OpenThomas – weather trader agent for prediction markets

https://github.com/PredictionMarketTrader/openthomas
1•thomaslwang•1h ago•0 comments

Package Management as Org Chart

https://nesbitt.io/2026/07/10/package-management-as-org-chart.html
1•birdculture•1h ago•0 comments

Combinatorial Games in Lean

https://github.com/vihdzp/combinatorial-games
1•wertyk•1h ago•0 comments

Modern Implementation of Notational Velocity

https://nvnv.yoga/
2•sirodoht•1h ago•2 comments

New flapping robot swims and flies like a diving bird

https://news.mit.edu/2026/new-flapping-robot-swims-and-flies-like-diving-bird-0709
3•rodrodrod•1h ago•0 comments