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!

Ask HN: macOS went from Cat to California, next what?

1•akashwadhwani35•4m ago•0 comments

Benevolent dictator Zuck will give Meta staff 30-minute break keylogging assault

https://www.theregister.com/ai-and-ml/2026/06/04/meta-to-allow-staff-breaks-from-keylogging-data-...
1•Bender•6m ago•1 comments

'Please do not vibe f–- up this software': Broken backups spark AI coding row

https://www.theregister.com/ai-and-ml/2026/06/04/please-do-not-vibe-f-up-this-software-broken-bac...
1•Bender•7m ago•1 comments

Azure Linux 4.0 is Microsoft's first general-purpose Linux

https://www.boxofcables.dev/azure-linux-4-0-is-microsofts-first-general-purpose-linux/
1•haydenbarnes•7m ago•0 comments

Larger context windows and configurable reasoning levels for GitHub Copilot

https://github.blog/changelog/2026-06-04-larger-context-windows-and-configurable-reasoning-levels...
1•Klaster_1•8m ago•0 comments

Walmart investors reject AI workplace report as automation expands in the US

https://www.reuters.com/legal/litigation/walmart-investors-reject-ai-workplace-report-automation-...
1•petethomas•9m ago•1 comments

Jo: A statically typed language that targets Ruby

https://jo-lang.org/
1•thunderbong•10m ago•0 comments

The Causes of Long Covid

https://www.science.org/content/blog-post/causes-long-covid
1•maxall4•17m ago•0 comments

NPM-Scan v1.1.0: Four New Detectors for June 2026 Supply Chain Attacks

https://github.com/lateos-ai/npm-scan/blob/main/VALIDATION.md
1•lateos-ai•18m ago•1 comments

American Fuzzy Lop (2016)

https://lcamtuf.coredump.cx/afl/README.txt
1•mooreds•18m ago•0 comments

New Fast Tracks Account for Older Company IPOs

https://www.nasdaq.com/articles/new-fast-tracks-account-older-company-ipos
1•vermilingua•19m ago•0 comments

A Concurrent Language for Non-Concurrent Software (2010)

https://prog21.dadgum.com/81.html
1•mooreds•20m ago•0 comments

Wslc: A native Linux container runtime for Windows

https://www.boxofcables.dev/wslc-a-native-linux-container-runtime-for-windows/
2•m3h•22m ago•0 comments

Miracle on Everest: Guide believed dead spotted crawling down ice

https://www.bbc.com/news/articles/cvgz2yjl4y3o
1•koolhead17•22m ago•0 comments

Here.now: Free, Instant web hosting for agents

https://here.now
1•kamphey•23m ago•1 comments

'World-first' vaccine designed by artificial intelligence

https://www.bbc.com/news/articles/crrpggegwe0o
1•sizzle•25m ago•0 comments

Form design: from zero to hero all in one blog post

https://adamsilver.io/blog/form-design-from-zero-to-hero-all-in-one-blog-post/
3•thunderbong•27m ago•0 comments

CEO to staff: You're not getting a raise. We're spending on AI instead

https://www.businessinsider.com/teradata-pauses-raises-employee-compensation-ai-budget-2026-6
4•ValentineC•27m ago•0 comments

Bad MCP design cost your Agent 5× more tokens

2•JohnnyZhang483•28m ago•0 comments

Delacroix's Entry of the Crusaders into Constantinople Restored

https://www.louvre.fr/en/explore/life-at-the-museum/delacroix-s-entry-of-the-crusaders-into-const...
1•rawgabbit•33m ago•0 comments

Fedora 43 Upgrade revealed 20 years old Outlook Security Bug

https://fedoramagazine.org/fedora-43-upgrade-revealed-20-years-old-outlook-security-bug/
2•byproxy•35m ago•0 comments

H-1B Crackdown on Indian Workers Erodes a Texas Real Estate Boom

https://www.bloomberg.com/features/2026-dallas-h1b-housing-market/
3•sizzle•35m ago•0 comments

OPRD: On-Policy Representation Distillation

https://arxiv.org/abs/2606.06021
1•berlianta•37m ago•0 comments

What We Believe Happened: A Summary Timeline of Bricks and Minifigs Store

https://bricksandminifigs.com/blog/blog/2026/06/04/bricks-and-minifigs-salem-store-timeline/
3•momentmaker•38m ago•1 comments

Verifying Agentic Development at Scale

https://twitter.com/ido_pesok/status/2060416230641881336
1•gmays•39m ago•0 comments

It's not how much it rose, but how fast

https://www.ooooo.law/board/8?lang=en
1•haebom•41m ago•0 comments

Ask HN: Are people vibe coding internal tools at your companies?

2•yakkomajuri•42m ago•1 comments

Can These Ads Make You Love A.I.?

https://www.nytimes.com/2026/06/04/style/chatgpt-advertising-campaign-artificial-intelligence.html
1•1vuio0pswjnm7•46m ago•0 comments

Quantum Odyssey

https://store.steampowered.com/app/2802710/Quantum_Odyssey/
1•rglover•46m ago•0 comments

JPMorgan, Citi and Big Banks Plan New Tokenized Deposit System to Answer Crypto

https://www.wsj.com/finance/banking/jpmorgan-citi-and-big-banks-plan-new-tokenized-deposit-system...
1•petethomas•46m ago•0 comments