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!

Mythos: Given Enough Inference, All Bugs Are Shallow

https://corgea.com/blog/given-enough-inference-all-bugs-all-shallow
1•asadeddin•40s ago•0 comments

What Is the Michelin Bib Gourmand Award?

https://guide.michelin.com/en/article/features/the-bib-gourmand
1•teleforce•1m ago•0 comments

GitHub will start paying some bug bounty hunters in swag instead of cash

https://thenewstack.io/github-bug-bounty-ai-slop/
1•Brajeshwar•3m ago•0 comments

Show HN: VibeSchema DBML to PNG – instant diagram PNG from DBML schemas

https://vibe-schema.com/dbml-to-png
2•SsgMshdPotatoes•3m ago•0 comments

macOS Secure Enclave can replace long-lived AWS access keys

https://credctl.com/blog/secure-enclave-deep-dive/
2•matzhouse•3m ago•0 comments

We cut Claude's token usage 79% by redesigning our CLI for agents

https://www.infracost.io/resources/blog/we-cut-claude-s-token-usage-79-by-redesigning-our-cli-for...
8•glenngillen•3m ago•0 comments

Pain of Manual Memory Forensics

1•purplesecurity•4m ago•0 comments

Molecule derived from spinach used to trigger photosynthesis in mouse eyes

https://cde.nus.edu.sg/news/nus-cde-scientists-plant-a-cure-for-dry-eye-disease/
1•gmays•4m ago•0 comments

Aid cuts and war complicate Ebola response in Congo

https://www.politico.eu/article/ebola-outbreak-drc-uganda-aid-cuts-global-health-crisis/
1•JumpCrisscross•5m ago•0 comments

The Next 15 Years of Moore's Law, According to Imec

https://spectrum.ieee.org/semiconductor-technology-roadmap
1•oldnetguy•6m ago•0 comments

AT Protocol for Agents

https://davidgasquez.com/atproto-agents
2•danabramov•6m ago•0 comments

Home Robot Safety Is All About Relationships

https://spectrum.ieee.org/domestic-humanoid-robot-safety-standards
1•oldnetguy•7m ago•0 comments

Who's behind Facebook's hateful AI slop about the UK? They may be in South Asia

https://www.theguardian.com/commentisfree/2026/may/19/social-media-facebook-ai-slop-hateful-south...
2•curiousObject•11m ago•0 comments

Silicon Valley's Answer to Declining Male Fertility? Sperm Racing

https://www.nytimes.com/2026/05/19/magazine/sperm-racing-silicon-valley.html
1•Nelkins•12m ago•0 comments

Clang Lifetime Safty Doc Update

https://clang.llvm.org/docs/LifetimeSafety.html
1•pjmlp•12m ago•0 comments

Autonomous underwater robot discovers hidden coral reef 'hotspots'

https://phys.org/news/2026-05-autonomous-underwater-robot-hidden-coral.html
1•gmays•13m ago•0 comments

Microsoft Now Has a Fedora-Based Linux Distro

https://itsfoss.com/news/azure-linux-4/
1•mikece•14m ago•0 comments

Ask HN: Is there any problem using multi-LLM

1•omertt27•14m ago•2 comments

Galápagos Syndrome

https://en.wikipedia.org/wiki/Gal%C3%A1pagos_syndrome
1•doruk101•16m ago•0 comments

Bond Yields Near Two-Decade High Open Rift Among Investors

https://financialpost.com/pmn/business-pmn/us-yields-flirting-with-2007-highs-entice-and-divide-i...
1•monkeydust•16m ago•0 comments

Anthropic Is Preparing for IPO and We Should Be Worried

https://www.vincentschmalbach.com/anthropic-ipo-developers-should-be-worried-v2/
7•vincent_s•17m ago•1 comments

Standard Chartered to cut more than 7k jobs as it steps up AI use

https://www.theguardian.com/business/2026/may/19/standard-chartered-bank-cut-jobs-ai-london
2•Brajeshwar•18m ago•1 comments

AIllowpages – Free AI tools search engine with 2500 tools, zero ads

https://aillowpages.com/
1•muralipala•19m ago•0 comments

When Rails-way does not work anymore?

https://paweldabrowski.com/farewell-to-rails-way/when-rails-way-does-not-work
1•pdabrowski6•19m ago•0 comments

Why Taxing the Wealthy Is Harder Than It Looks

https://ofdollarsanddata.com/why-taxing-the-wealthy-is-harder-than-it-looks/
1•speckx•21m ago•1 comments

OpenAI Dismissal Motion Says ChatGPT Is Mere Tool, Not Attorney

https://news.bloomberglaw.com/litigation/open-ai-dismissal-motion-says-chatgpt-is-mere-tool-not-a...
2•1vuio0pswjnm7•21m ago•0 comments

New Lifetime Plex Pass Pricing

https://www.plex.tv/blog/new-lifetime-plex-pass-pricing/
2•Larrikin•22m ago•1 comments

'De-Extinction' Startup Just Hatched Baby Chicks from 3D-Printed Artificial Egg

https://gizmodo.com/de-extinction-start-up-just-hatched-baby-chicks-from-a-3d-printed-artificial-...
1•austinallegro•22m ago•0 comments

The economics of superstar AI researchers

https://epochai.substack.com/p/the-economics-of-superstar-ai-researchers
1•gmays•22m ago•0 comments

The Two X's Problem: Why AI-designed brands feel like AI-designed brands

https://blog.codeyam.com/p/the-two-xs-problem
2•bastadani•24m ago•1 comments