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!

Gmail app bug locks some Microsoft 365 and Exchange Online users out on Android

https://piunikaweb.com/2026/05/06/gmail-app-android-microsoft-365-exchange-online-authentication-...
1•sega_sai•1m ago•0 comments

Taiwan cops say student's radio kit brought bullet trains to a standstill

https://www.theregister.com/cyber-crime/2026/05/06/taiwan-student-pwns-rail-comms-halts-high-spee...
1•rmason•4m ago•0 comments

Iran hit more U.S. military targets than has been reported, satellite images

https://www.washingtonpost.com/investigations/2026/05/06/iran-us-bases-satellite-images/
2•SanjayMehta•4m ago•0 comments

QR Code Generator

https://www.thonky.com/qrcode/
1•gurjeet•6m ago•0 comments

The Old Guard: Confronting America's Gerontocratic Crisis

https://harpers.org/archive/2026/05/the-old-guard-samuel-moyn-gerontocracy/
2•Caiero•8m ago•0 comments

Elon Musk's Last-Ditch Effort to Control OpenAI

https://www.wired.com/story/elon-musk-recruit-sam-altman-tesla-ai-lab-trial/
2•nico•9m ago•0 comments

How programmers are feeling about AI

https://thesoftwaresurvey.com/
2•yakkomajuri•12m ago•0 comments

We Need a Neural Network (2006)

https://thedailywtf.com/articles/No%2c_We_Need_a_Neural_Network
2•mjtk•14m ago•0 comments

Aphasia

https://en.wikipedia.org/wiki/Aphasia
2•soupspaces•15m ago•0 comments

We Built the Permanent Record

https://www.nationalreview.com/2026/05/we-built-the-permanent-record/
2•petethomas•17m ago•0 comments

Show HN: Sqlalchemy-Redshift Is Back: Reviving a Critical Python Data Library

https://github.com/sqlalchemy-redshift/sqlalchemy-redshift
2•TeddyCrep•19m ago•0 comments

Mass Deportation and American Jobs

https://www.wsj.com/opinion/mass-deportation-american-jobs-nber-university-of-colorado-boulder-st...
4•petethomas•26m ago•0 comments

Go is FIPS 140-3 certified

https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/5247
3•birdculture•27m ago•0 comments

Agents of Chaos

https://agentsofchaos.baulab.info/
2•giwook•28m ago•0 comments

ADT says customer data stolen in cyber intrusion

https://therecord.media/ADT-data-breach-cyberattack
5•PaulHoule•30m ago•2 comments

The Loudest Known Sound Ever (2024)

https://www.audiology.org/the-loudest-known-sound-ever/
2•thunderbong•32m ago•0 comments

Naval Character Living Inside iMessage

https://naval.chat
4•oqy•33m ago•2 comments

Correction Has to Occur – NYU Finance Professor Warn

https://finance.yahoo.com/news/correction-occur-nyu-finance-professor-160057855.html
5•laxmena•35m ago•0 comments

Have you sent a smile today?

https://mylightstillshines.wordpress.com/2026/05/06/have-you-smiled-at-somebody-today/
2•jaygirl•35m ago•0 comments

QUIC will soon be as important as TCP – but it's vastly different

https://www.theregister.com/on-prem/2026/04/16/quic-will-soon-be-as-important-as-tcp/5227423
4•Bender•38m ago•1 comments

Kash Patel's Personalized Bourbon Stash

https://www.theatlantic.com/politics/2026/05/kash-patel-fbi-bourbon/687066/
17•petethomas•39m ago•3 comments

Iran cybersnoops still LARPing as ransomware crooks in espionage ops

https://www.theregister.com/security/2026/05/06/iran-cyberspies-larping-as-ransomware-crims-in-es...
4•Bender•40m ago•0 comments

I just sent out my first Quote as a business owner

3•Jbird2k•40m ago•1 comments

Justin Wolfers, Cable's Favorite Economist, Joins the Creator Economy

https://www.nytimes.com/2026/05/06/business/dealbook/justin-wolfers-media-company.html
2•paulpauper•41m ago•0 comments

Counting as a minimal probe of language model reliability

https://arxiv.org/abs/2605.02028
3•nateb2022•41m ago•0 comments

Kicking the Tires: A Voluntary Path to Pre-Deployment AI Vetting

https://www.lawfaremedia.org/article/kicking-the-tires--a-voluntary-path-to-pre-deployment-ai-vet...
2•paulpauper•41m ago•0 comments

What I've Been Reading

https://marginalrevolution.com/marginalrevolution/2026/05/what-ive-been-reading-287.html
1•paulpauper•41m ago•0 comments

Hacking on a PDP1 front panel replica [Computerphile video]

https://www.youtube.com/watch?v=7WEewUVQabU
1•ozymandiax•41m ago•0 comments

On-Policy [LLM] Distillation (2025)

https://thinkingmachines.ai/blog/on-policy-distillation/
2•nateb2022•42m ago•0 comments

Talk to Your Competitors

https://herbertlui.net/talk-to-your-competitors/
1•herbertl•46m ago•0 comments