frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Would you believe try-catch-finally works in plain old C?

4•mf_taria•11mo 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•11mo ago
Finally!

Artemis II Astronauts Back in Houston, Reunite with Families

https://www.nasa.gov/blogs/missions/2026/04/11/artemis-ii-astronauts-back-in-houston-reunite-with...
1•salkahfi•2m ago•0 comments

Curated Costa Rica: The Best Tailor-Made Experiences for Every Type of Traveller

https://johnquam.substack.com/p/curated-costa-rica-the-best-tailor
1•headmonkey•2m ago•0 comments

Unified Perception Engine: never render more than humans can see (public domain)

https://github.com/warofwar2011-dev/unified-perception-engine
1•Mars2011•6m ago•0 comments

The Enigma of Gertrude Stein

https://www.thenation.com/article/culture/gertrude-stein-afterlife-wade-review/
1•samclemens•13m ago•0 comments

Midnight Captain – A midnight commander inspired file manager

https://github.com/duguyue100/midnight-captain
1•duguyue100•15m ago•1 comments

Hackers meet match: New DNA encryption protects engineered cells from within

https://phys.org/news/2026-04-hackers-dna-encryption-cells.html
1•pseudolus•19m ago•0 comments

High-Level Rust: Getting 80% of the Benefits with 20% of the Pain

https://hamy.xyz/blog/2026-01_high-level-rust
2•maxloh•22m ago•0 comments

Show HN: I benchmarked MCP vs. CLI for browser automation. MCP wins by 25x

https://github.com/HKUDS/CLI-Anything/pull/212
1•Achiyacohen•23m ago•1 comments

"MongoDB is web scale" (Throwback 2010 XtraNormal clip) [video]

https://www.youtube.com/watch?v=b2F-DItXtZs
1•chirau•24m ago•1 comments

Aero and Y2K Webring

https://frutigeraeroarchive.org/aero_webring
1•jack-bodine•25m ago•0 comments

YuanLey YS100-0602T Review a Cheap 8-Port 10GbE Switch

https://www.servethehome.com/yuanley-ys100-0602t-review-a-cheap-8-port-10gbe-switch/
2•teleforce•29m ago•0 comments

Building a Homebrew Computer Like it's 1995 [video]

https://www.youtube.com/watch?v=FVH6_0GlLNc
1•st_goliath•30m ago•0 comments

He Helped Stop Iran from Getting the Bomb

https://www.newyorker.com/magazine/2026/04/06/he-helped-stop-iran-from-getting-the-bomb
2•posthumangr•31m ago•0 comments

USB/IP Project: a general USB device sharing system over IP network

https://usbip.sourceforge.net/
2•ValentineC•33m ago•0 comments

PBS Nova: Terror in Space (1998)

https://www.pbs.org/wgbh/nova/mir/
1•opengrass•35m ago•0 comments

Show HN: I visualized Wasteland as an RTS game

https://gascraft.ai
2•dnewcome•37m ago•0 comments

React-Debug-Updates

https://github.com/pie6k/react-debug-updates
1•handfuloflight•43m ago•0 comments

No Acquittal for Storm Today

https://www.therage.co/roman-storm-acquittal-2/
2•Cider9986•50m ago•0 comments

Hungary 2026 – Chat with 1k AI-simulated voters before the election

https://hungary2026.populon.ai
1•Mert_Predicts•53m ago•0 comments

Hero rat who sniffed out over 100 land mines is honored with giant statue

https://www.washingtonpost.com/lifestyle/2026/04/08/rat-cambodia-statue-land-mines-magawa/
3•paulpauper•56m ago•1 comments

A Brief History of Lab Notebooks

https://www.asimov.press/p/lab-notebooks
6•paulpauper•56m ago•0 comments

Apple Sued by Three YouTube Channels

https://www.macrumors.com/2026/04/06/apple-sued-by-three-youtube-channels/
6•gnabgib•56m ago•3 comments

Forecasting the economic effects of AI

https://forecastingresearch.substack.com/p/forecasting-the-economic-effects-of-ai
2•hhs•57m ago•0 comments

New WHO database helps countries turn health data into better policy

https://www.who.int/europe/news/item/08-04-2026-new-who-database-helps-countries-turn-health-data...
2•gnabgib•58m ago•0 comments

Predict-Rlm: The LLM Runtime That Lets Models Write Their Own Control Flow

https://repo-explainer.com/Trampoline-AI/predict-rlm
1•handfuloflight•59m ago•0 comments

Ask HN: How to have a macOS devcontainer in VS Code?

2•sroussey•1h ago•0 comments

The Exception Butterfly

https://valhovey.github.io/blog/the-exception-butterfly
2•speleo•1h ago•0 comments

Waiting for Postgres 19: Reduced Timing Overhead for EXPLAIN ANALYZE with RDTSC

https://pganalyze.com/blog/5mins-postgres-19-reduced-timing-overhead-explain-analyze
1•lfittl•1h ago•0 comments

1 in 30 – Artemis, Greatness, and Risk

https://1517.substack.com/p/1-in-30-artemis-greatness-and-risk
3•crescit_eundo•1h ago•0 comments

AI will test governments on jobs, training, and public trust

https://www.hoover.org/news/ai-will-test-governments-jobs-training-and-public-trust-hoover-panels...
1•hhs•1h ago•0 comments