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!

Show HN: Apple Developer MCP, App Store Connect via Your AI Assistants

https://nova.civai.co/agent/mcp-apple_developer
1•usecodenaija•19s ago•0 comments

PewDiePie's Ajax

https://data.pewdiepie.com/
1•dvrp•38s ago•0 comments

Claude Usage Monitor for Windows

https://github.com/mheilemann/ClaudeUsageMonitor/
1•mheilemann•1m ago•1 comments

US death row inmate survives execution attempt after two lethal injections

https://www.bbc.com/news/articles/cq8r6rjdvlx6o
1•vrganj•3m ago•0 comments

Booms, Bombs and Bonds: Interest Rates, Part I

https://paulkrugman.substack.com/p/booms-bombs-and-bonds-interest-rates
1•runeks•6m ago•0 comments

Microsoft's Big Copilot Rethink

https://www.theverge.com/tech/1003365/microsoft-copilot-os-for-work-notepad
1•saikatsg•8m ago•0 comments

The AI data center e-waste problem is huge

https://www.theverge.com/ai-artificial-intelligence/996470/ai-data-center-e-waste-ban
1•saikatsg•8m ago•0 comments

We Do Know How, but Not the How We Want

https://cacm.acm.org/blogcacm/we-do-know-how-but-not-the-how-we-want/
1•adunk•9m ago•0 comments

Thunderbird for iOS: A First Look

https://blog.thunderbird.net/2026/10/thunderbird-for-ios-a-first-look-at-the-native-iphone-email-...
2•HieronymusBosch•10m ago•0 comments

China's rise as a health tech superpower is important

https://restofworld.org/2026/china-ai-healthcare-biotech-drugs/
3•stareatgoats•19m ago•0 comments

Software doesn't need to be readable anymore. it needs to be explainable

https://ghuntley.com/readable/
1•ghuntley•22m ago•1 comments

Gnomish relay: a secure remote control for coding agents in World of Warcraft

https://www.curseforge.com/wow/addons/gnomish-relay
1•eserilev•27m ago•0 comments

Dagenza – a fresh new calendar app for iPhone

https://testflight.apple.com/join/sKcmUdAq
1•marc0janssen•30m ago•1 comments

Glashütte Trash Clock – A 30-minute pendulum clock made from trash

https://niklasroy.com/gtc/
1•r0r0•31m ago•1 comments

AI godfather Yann LeCun: Anthropic CEO deluded, doesn't understand cybersecurity

https://fortune.com/2026/10/01/yann-lecun-anthropic-ceo-dario-amodei-deluded-crazy-cybersecurity/
5•OtomotO•32m ago•0 comments

Is Claude Conscious?

https://www.nytimes.com/2026/09/29/us/anthropic-claude-morals-ai.html
1•langitbiru•34m ago•1 comments

It's the Kernel's Fault: Custom Page Fault Handling with Bpf_fault

https://dl.acm.org/doi/10.1145/3830418.3843896
1•theanonymousone•37m ago•0 comments

Explore decision models in one place with Decisions API

https://decisions-api.dev
3•QingWu•44m ago•1 comments

AI training of copyrighted material not fair use: Third Circuit

https://www.courthousenews.com/ai-training-of-copyrighted-material-not-fair-use-third-circuit/
3•reasonableklout•45m ago•0 comments

My website runs a curated RSS feed of critical film finance news

https://home.danieldeboulay.com/#essays
1•freedmans•46m ago•1 comments

OpenAI cuts ties with 3 safety researchers

https://techcrunch.com/2026/10/01/openai-cuts-ties-with-three-safety-researchers-wsj-reports/
3•KingOfCoders•48m ago•0 comments

List your SaaS in this free directories and get more visibility

https://goodsaas.xyz/blog/top-free-saas-directories-2026
1•agnes_realm•54m ago•0 comments

Designing Neki for Performance

https://planetscale.com/blog/designing-neki-for-performance
1•hisamafahri•55m ago•0 comments

Removing Timing Shortcuts Improves Non-Invasive Brain-to-Text

https://arxiv.org/abs/2609.40359
2•sbulaev•57m ago•0 comments

ImageGen: Local AI image generation for Mac with Qwen-Image 2.1

https://github.com/ph1lb4/imagegen-mac
1•tosh•58m ago•0 comments

Write_On by Jason Fried

https://twitter.com/jasonfried/status/2105403067793584590
1•gholap•1h ago•0 comments

NetBSD on My Netbook

https://movq.de/blog/postings/2026-09-18/0/POSTING-en.html
1•networked•1h ago•0 comments

WSLC Architecture Deep Dive

https://devblogs.microsoft.com/commandline/wslc-architecture-deep-dive/
1•taubek•1h ago•0 comments

AI upscaling is coming to PS5

https://blog.playstation.com/2026/10/01/ai-upscaling-is-coming-to-ps5/
3•thibautg•1h ago•0 comments

Bryan Cantrill: Keynote (RustConf2026): Rust, in Sickness and in Health [video]

https://www.youtube.com/watch?v=3kbPyuAtk7g
1•mfrw•1h ago•0 comments