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!

Against the Singularity Hypothesis (2024)

https://link.springer.com/article/10.1007/s11098-024-02143-5
1•Gooblebrai•50s ago•0 comments

Getjobber-CLI – Python CLI for the Jobber GraphQL API

https://github.com/acaracappa/getjobber-cli
1•antman1911•1m ago•0 comments

Queen bees emerge from special wax chambers

https://cen.acs.org/materials/biobased-materials/queen-bees-special-wax/104/web/2026/06
1•gmays•2m ago•0 comments

Overnight military drill loud flash bangs simulated gunfire upsets residents

https://ktla.com/news/local-news/pasadena-late-night-military-training-exercise/
1•Bender•2m ago•0 comments

2026 security assessment of our Android app

https://mullvad.net/en/blog/2026-security-assessment-of-our-android-app
1•Cider9986•4m ago•0 comments

May Job Cuts Rise 16% from April; Highest May Total Since 2020

https://www.challengergray.com/blog/challenger-report-may-job-cuts-rise-16-from-april-highest-may...
1•mooreds•4m ago•0 comments

What is AI psychosis is the product?

https://gregoryap.substack.com/p/what-if-ai-psychosis-is-the-product
2•gphil•5m ago•0 comments

Why AI Agents Need Agile, Not Just Better Prompts

https://medium.com/open-ai/why-ai-agents-need-agile-not-just-better-prompts-31aac90b1f4a
2•sukhpinder0804•11m ago•0 comments

Show HN: SheetMog – OSS Excel alternative and headless SDK

https://github.com/fundamental-research-labs/mog
2•zdenham•13m ago•0 comments

Let's log off and head outside

https://www.nytimes.com/interactive/2026/06/04/well/touch-grass-challenge-week-1.html
3•donohoe•13m ago•0 comments

From Zero to Senior: How I grew in my career [video]

https://www.youtube.com/watch?v=uTWXwCzfK78
2•indigodaddy•15m ago•0 comments

Agentlocks – advisory file locks for Codex and Claude Code in one worktree

https://github.com/simke9445/agentlocks
2•simke9445•15m ago•0 comments

Meet The Agents at USV: Arthur, Ellie, Sally, and Friends

https://blog.usv.com/meet-the-agents
2•rmason•16m ago•1 comments

Governments escalate the global war on online anonymity

https://www.wsws.org/en/articles/2026/05/25/pgvy-m25.html
2•iamnothere•17m ago•0 comments

Fidelity lowers SpaceX IPO entry requirement from $500,000 to just $2,000

https://finance.yahoo.com/markets/stocks/articles/fidelity-cuts-spacex-ipo-eligibility-183319186....
6•tcp_handshaker•18m ago•0 comments

Show HN: Mercek – A Desktop IDE for AWS ECS

https://www.mercek.dev/
2•utibeumanah•18m ago•0 comments

They don't make them like this anymore

https://www.knut.fyi/blog/2026-06-03/cascadiajs-2026
2•jeffinpdx•19m ago•0 comments

My transcendental experience on Japan's art island guided by its master Lee Ufan

https://www.theguardian.com/artanddesign/2026/may/04/infinity-transcendental-japan-naoshima-art-i...
3•PaulHoule•20m ago•0 comments

LHCb experiment observes long-sought new particle with double charm

https://www.nikhef.nl/en/news/lhcb-experiment-observes-long-sought-new-particle-with-double-charm/
4•elashri•24m ago•0 comments

AI will consume as much water in 2030 as 1.3B people

https://english.elpais.com/technology/2026-06-03/ai-will-consume-as-much-water-in-2030-as-13-bill...
6•dnnddidiej•26m ago•0 comments

4.1 magnitude earthquake in Las Vegas

https://earthquake.usgs.gov/earthquakes/eventpage/nn00919749/executive
3•jameslk•29m ago•0 comments

Just a few cigarettes a day can damage your heart for decades

https://www.sciencedaily.com/releases/2025/11/251122000802.htm
3•bushwart•30m ago•0 comments

Command A+: Making sovereign agentic capabilities available to all

https://cohere.com/blog/command-a-plus
2•offbyone42•31m ago•0 comments

Stats from 30K AI debates: Opus 4.7 is the most influential model

https://opper.ai/ai-roundtable/stats
3•felix089•31m ago•3 comments

Hyperscalers Are Strapped for Cash

https://www.semafor.com/article/06/04/2026/hyperscalers-are-strapped-for-cash
3•cdrnsf•31m ago•0 comments

GitHub Copilot Agent Tasks REST API Now Available for Copilot Pro, Pro+, and Max

https://github.blog/changelog/2026-06-04-agent-tasks-rest-api-now-available-for-copilot-pro-pro-a...
4•theanonymousone•33m ago•0 comments

Airbnb CEO Brian Chesky Plans to Start New AI Company

https://finance.yahoo.com/sectors/technology/articles/airbnb-ceo-brian-chesky-plans-191211981.html
2•EvanZhouDev•34m ago•0 comments

Swarms of 'killer mosquitoes' released on innocent Americans

https://www.dailymail.com/sciencetech/article-15874013/us-army-tested-killer-mosquitoes-biologica...
2•Bender•38m ago•0 comments

All the passwords were stored in Active Directory description fields

https://www.theregister.com/security/2026/06/04/all-the-passwords-were-stored-in-active-directory...
3•Bender•38m ago•0 comments

Google AI Instruments (Magenta RealTime 2)

https://magenta.withgoogle.com/mrt2
2•armcat•40m ago•0 comments