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•6mo 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•6mo ago
Finally!

Sweat-Powered Sticker Turns Your Drinking Cup into a Health Sensor

https://today.ucsd.edu/story/sweat-powered-sticker-turns-your-drinking-cup-into-a-health-sensor
1•geox•3m ago•0 comments

I Was Laid Off 10 Months Ago Here's How I Still Pay My $2.8k Mortgage

https://www.youtube.com/watch?v=F0k7cu95cAw
1•donsupreme•6m ago•0 comments

UK EV owners to face pay-per-mile tax

https://www.bbc.co.uk/news/articles/c8jw9l7gx92o
3•gmac•6m ago•0 comments

Show HN: LedgerApp – Fast team expense tracker built with Next.js and Supabase

https://ledgerapp.team
1•planner24•7m ago•0 comments

In Memoriam: 404 but not forgotten

https://archive.org/details/in-memoriam-web-mascots
1•ChrisArchitect•11m ago•0 comments

Eurostack

https://pluralistic.net/2025/11/26/difficult-multipolarism/#eurostack
2•6LLvveMx2koXfwn•11m ago•0 comments

How the Elite Behave When No One Is Watching: Inside the Epstein Emails

https://www.nytimes.com/2025/11/23/opinion/meaning-epstein-emails.html
1•measurablefunc•14m ago•0 comments

Running Unsupported iOS on Deprecated Devices

https://nyansatan.github.io/run-unsupported-ios/
1•OuterVale•15m ago•0 comments

Superficial Intelligence: Tech Parenting

https://www.mozillafoundation.org/en/nothing-personal/superficial-intelligence-humor-column-paren...
1•prismatic•16m ago•0 comments

Learning to Code with No Map: Mentorship and Entry Paths in a Post-Bootcamp Era [video]

https://www.youtube.com/watch?v=2XJX_vur37E
1•Kerrick•18m ago•0 comments

VK_EXT_present_timing Merged

https://github.com/KhronosGroup/Vulkan-Docs/pull/1364
1•xeonmc•18m ago•0 comments

Thanksgiving 2025 Hot Takes

https://www.nytimes.com/interactive/2025/11/20/dining/thanksgiving-hot-takes.html
2•ChrisArchitect•25m ago•1 comments

Which Notable Book Should I Read First?

https://www.nytimes.com/interactive/2025/11/24/books/book-recommendations-notables.html
3•whack•29m ago•0 comments

Engineers repurpose a mosquito proboscis to create a 3D printing nozzle

https://techxplore.com/news/2025-11-repurpose-mosquito-proboscis-3d-nozzle.html
1•T-A•35m ago•0 comments

Making 10M government PDF documents searchable

https://flowingdata.com/2025/11/26/making-10m-government-pdf-documents-searchable/
1•gslin•38m ago•1 comments

Show HN: Offline AI Photo Search (local VLM and semantic search)

https://github.com/Pankaj4152/smart-photo-finder
1•Pankaj4152•38m ago•0 comments

Show HN: I Made a Series of Posters Exploring the Fuzzy World of LLMs

https://zehfernandes.com/posts/the-folded-world
1•zehfernandes•43m ago•0 comments

Bring Back Doors – Bring Bathroom Doors Back to Hotels

https://bringbackdoors.com/
5•bariumbitmap•47m ago•1 comments

US Navy scuttles Constellation frigate for being too slow for tomorrow's threats

https://www.theregister.com/2025/11/26/navy_constellation_frigate/
3•Bender•54m ago•0 comments

Crocs get the Xbox treatment with sole-crushing price of $80

https://www.theregister.com/2025/11/26/microsoft_xbox_crocs/
2•Bender•57m ago•1 comments

Seal milk more refined than breast milk

https://www.eurekalert.org/news-releases/1106900
1•gmays•58m ago•0 comments

Abliterated Large Language Models Treat Users as Capable Adults

https://kirill.korins.ky/articles/abliterated-large-language-models-treat-users-as-capable-adults/
2•nerfur•59m ago•0 comments

Why You Must Learn Before You Prompt

https://imapenguin.com/2025/11/first-principles-why-you-must-learn-before-you-prompt/
3•atan2•1h ago•0 comments

Apple's Using 3D Printing in the iPhone Air

https://www.ifixit.com/News/114439/okay-so-apples-using-3d-printing-in-the-iphone-air-but-how
3•AareyBaba•1h ago•0 comments

Rocky Linux 10.1 Released as Community Alternative to RHEL 10.1

https://www.phoronix.com/news/Rocky-Linux-10.1-Released
5•Bender•1h ago•0 comments

AI Companions Are the Next Interface

https://www.emotionmachine.com/blog/ai-companions-are-the-next-interface
1•sarbak•1h ago•1 comments

AI Is Eating the World

https://www.ben-evans.com/presentations
2•brettcvz•1h ago•1 comments

JudgeAI: An Attempt to Build an Automated Court System

https://portal.judgeai.space/
1•YuriKozlov•1h ago•0 comments

Nerd-Sniped: Project Search

https://zed.dev/blog/nerd-sniped-project-search
3•nijaru•1h ago•0 comments

Apple Asks Indian Court to Block Antitrust Law Allowing $38B Fine

https://www.macrumors.com/2025/11/26/apple-india-antitrust-law-challenge/
4•7777777phil•1h ago•0 comments