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•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!

Politicians to Ditch Signal for Homegrown Apps

https://www.lawfaremedia.org/article/politicians-to-ditch-signal-for-homegrown-apps
1•hn_acker•48s ago•0 comments

Hadopi, perhaps the world's worst copyright law, is moribund but not quite dead

https://walledculture.org/hadopi-perhaps-the-worlds-worst-copyright-law-is-moribund-but-not-quite...
1•hn_acker•2m ago•1 comments

Is Trump trying to turn Texas blue?

https://www.natesilver.net/p/is-trump-trying-to-turn-texas-blue
1•7777777phil•3m ago•0 comments

New Generation of Accounting

1•filipriec•5m ago•0 comments

Fair Step Challenge Builder

https://motion-app.com/tools/step-challenge-builder/
1•georgegreenldn•7m ago•1 comments

Texas woman arrested for Facebook post about town water quality

https://reclaimthenet.org/texas-woman-arrested-for-facebook-post-about-town-water-quality
2•abawany•8m ago•0 comments

Iowa lawmakers to mandate students take Center for Intellectual Freedom classes

https://www.kcrg.com/2026/05/20/iowa-lawmakers-move-mandate-students-take-center-intellectual-fre...
1•hn_acker•9m ago•1 comments

Orbit – Route every AI query to the right model automatically (NPM SDK)

https://orbitai.gtll.app
2•gabrielsmartin•11m ago•0 comments

Delivery Hero reveals Uber takeover bid at €10B valuation

https://www.ft.com/content/6d5df0df-74b3-4be9-a1ec-27322e1c3184
1•JumpCrisscross•11m ago•0 comments

AI super-apps are remaking China's internet

https://www.economist.com/business/2026/05/17/ai-super-apps-are-remaking-chinas-internet
1•marojejian•12m ago•1 comments

ScyllaDB PHP Driver: the story so far

https://www.dusanmalusev.dev/blog/scylladb-php-driver-the-story-so-far
1•CodeLieutenant•13m ago•0 comments

JetBrains Is Selling Independence as the Rest of AI Coding Picks Sides

https://thenewstack.io/jetbrains-independent-ai-coding/
1•Brajeshwar•14m ago•0 comments

Texas AG sues Meta over claims that WhatsApp doesn't provide E2EE

https://arstechnica.com/security/2026/05/texas-ag-sues-meta-over-claims-that-whatsapp-doesnt-prov...
2•stalfosknight•15m ago•0 comments

Apply to Rejoin the EU as soon as possible to increase growth in the UK

https://petition.parliament.uk/petitions/749128
1•mariuz•17m ago•0 comments

The Mirror Is Part of the Machine

https://yusufaytas.com/the-mirror-is-part-of-the-machine
10•london_safari•18m ago•0 comments

The Fonts of the U.S. Federal Courts

https://daringfireball.net/2026/05/the_fonts_of_the_us_federal_courts
2•tosh•19m ago•0 comments

Rotten Apple: Former Israeli Spies Hired by Silicon Valley Giant

https://www.mintpressnews.com/apple-israel-unit-8200-hiring/290226/
3•lorecore•19m ago•0 comments

Being oncall taught me everything

https://yaoyue.org/blog/2026-oncall/
1•ayhanfuat•21m ago•0 comments

Star Maker by Olaf Stapledon

https://philosophynow.org/issues/173/Star_Maker_by_Olaf_Stapledon
1•measurablefunc•25m ago•0 comments

Ghana proposes mandatory licensing for IT professionals and businesses [pdf]

https://www.nita.gov.gh/wp-content/uploads/2025/NITA-2008-act-2025-1.pdf
3•certyfreak•26m ago•1 comments

JWT is a scam and your app doesn't need it

https://www.dusanmalusev.dev/blog/jwt-is-a-scam-and-your-app-doesnt-need-it
10•CodeLieutenant•29m ago•0 comments

Effects of whole-body vibration training on sarcopenia in older adults

https://www.nature.com/articles/s41598-026-45710-y
1•bookofjoe•31m ago•0 comments

Beyond Nostalgia: 8-Bit Computing as Tech Critique

https://yadin.com/notes/nostalgia/
1•dryadin•31m ago•0 comments

Rocket Mail

https://en.wikipedia.org/wiki/Rocket_mail
1•aragonite•31m ago•0 comments

See great white shark swim between surfers at Pismo Beach pier. 'It's insane'

https://www.sanluisobispo.com/news/local/environment/article315841926.html
1•Bender•31m ago•0 comments

Zuck defends monitoring employees to win AI race in purported leaked audio

https://www.theregister.com/ai-ml/2026/05/22/zuck-defends-monitoring-employees-to-win-ai-race-in-...
1•Bender•33m ago•0 comments

Show HN: A simple app to visualize Apple Health workout logs

https://streakout.app/
1•toni88x•33m ago•0 comments

Show HN: Memory for LLM apps that cuts input tokens up to 80% (avg 68%)

https://github.com/Tem-Degu/streetai-memory
1•degutemesgen•33m ago•0 comments

It took 40 years for technology to catch up to this zipper design

https://news.mit.edu/2026/three-sided-y-zipper-design-0504
1•geox•33m ago•0 comments

Uber to make offer for German food delivery co DeliveryHero

https://www.reuters.com/business/delivery-hero-confirms-takeover-offer-uber-2026-05-23/
1•gigatexal•35m ago•1 comments