frontpage.
newsnewestaskshowjobs

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!

Can I vibe code it?

https://canivibecodeit.com/
1•kamphey•37s ago•0 comments

Hunk – Review-first terminal diff viewer for agentic coders

https://www.hunk.dev/
1•chrkl•1m ago•0 comments

Cyberattack on water systems in multiple states has US officials on edge

https://www.cnn.com/2026/07/31/politics/sweeping-cyberattack-us-water-systems
3•Teever•10m ago•1 comments

Dfs-Large1: New Frontier for Cybersecurity

https://depthfirst.com/research/dfs-large-new-model-release
5•iqster•10m ago•0 comments

Rogue AI hacking incidents amplify debate over open-source tech

https://thehill.com/policy/technology/6003142-nvidia-launches-secure-ai-alliance/
2•petethomas•11m ago•0 comments

I made a free web app that prevents your screen from turning off automatically

https://keepscreenon.vercel.app
2•Adam-Hincu•11m ago•1 comments

China's Xi urges military to step up use of unmanned AI technologies

https://www.bloomberg.com/news/articles/2026-07-31/xi-urges-military-to-step-up-use-of-unmanned-a...
3•thoughtpeddler•12m ago•0 comments

Privilege Escalation in AWS Elastic Kubernetes Service (2023)

https://blog.calif.io/p/privilege-escalation-in-eks
2•882542F3884314B•13m ago•0 comments

Claude-Fleet

https://github.com/Shubhamgupta2612/claude-fleet
2•Shubham2612•17m ago•0 comments

Is Stripe the Internet?

2•Taikhoom2010•18m ago•0 comments

Tesla Weighs Sale of China Business to Pave Way for Potential SpaceX Merger

https://www.wsj.com/business/autos/tesla-weighs-sale-of-china-business-to-pave-way-for-potential-...
2•jnord•21m ago•1 comments

The most famous brand in physical security got pwned by ShinyHunters

https://www.theregister.com/security/2026/07/31/the-most-famous-brand-in-physical-security-got-pw...
3•Bender•27m ago•0 comments

The Major Labels Propose Rules to Keep AI Slop Off the Charts

https://www.ifpi.org/ifpi-rolls-out-global-principles-for-the-eligibility-of-recordings-developed...
2•m463•27m ago•0 comments

Airport sign fails to boot, officers on the scene

https://www.theregister.com/offbeat/2026/07/31/airport-sign-fails-to-boot-officers-already-on-the...
2•Bender•27m ago•0 comments

Flux9s: A K9s-inspired terminal UI for Flux and GitOps state

https://flux9s.ca/
2•bradpenney•28m ago•0 comments

That Viral Photo of San Francisco NIMBYs Shows Why Housing Is Winning

https://inpractice.yimbyaction.org/p/that-viral-photo-of-san-francisco
12•pumpkin88•31m ago•4 comments

Coldcard generated predictable wallet seeds for five years

https://coldcard-hack.up.railway.app/
4•madars•32m ago•0 comments

Zitron: "Everyone Has Been Sold a Lie" on AI [video]

https://www.youtube.com/watch?v=pHcZpvIfho0
4•Bender•34m ago•1 comments

Read the Novels and Forget Everything Else

https://hedgehogreview.com/web-features/thr/posts/read-the-novels-and-forget-everything-else
3•samclemens•34m ago•0 comments

A giddy Patti Smith meets fellow Chicago legend, Pope Leo XIV

https://apnews.com/article/vatican-patti-smith-pope-leo-8c1a76ec542d47b7b1a4c72f70b0c8b9
5•petethomas•35m ago•0 comments

$2M crime novel deal collapses amid questions over AI use

https://www.theguardian.com/books/2026/jul/31/crime-novel-deal-collapses-questions-ai-jerry-falad...
4•mellosouls•36m ago•0 comments

Tens of Thousands of Migrants voluntarily leave after crossing into Ceuta

https://apnews.com/article/spain-ceuta-migration-66839d113f24ba80d08b36d2b337201c
2•petethomas•39m ago•0 comments

Warez Your Website

https://www.arscyni.cc/file/warez_your_website.html
2•arscynic•41m ago•0 comments

Tanstack Charts

https://tanstack.com/charts/latest
2•geophph•42m ago•0 comments

When Your Chatbot Is So Eager to Help, It Forgot Whose Side It's On

https://industrycontents.com/agentic-ai-business-risk/
2•ticust•43m ago•0 comments

Recovering from Agentic Coding

https://www.jrzs.dev/blog/recovering-from-agentic-coding
2•jrhey•47m ago•0 comments

Framework choice explains ~0.06% of agentic AI security outcome (7,020 trials)

https://figshare.com/articles/preprint/Cross-Framework_Portability_of_Agentic_AI_Security_A_Contr...
2•waqarjaved•48m ago•0 comments

Yahoo just redesigned its weather app for the 'weather geek' in us all

https://www.fastcompany.com/91581251/yahoo-weather-app-redesign
2•apparent•50m ago•0 comments

Morioka Shoten

https://www.takram.com/projects/a-single-room-with-a-single-book-morioka-shoten
2•skogstokig•51m ago•0 comments

Why etymologies matter: How tracing words can illuminate history (2024)

https://resobscura.substack.com/p/why-i-love-etymologies
1•benbreen•53m ago•0 comments