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!

Ruby 4.0 Is Here. Why Is AI Still Writing Ruby 3.0?

https://rubystacknews.com/2026/06/17/ruby-4-0-is-here-why-is-ai-still-writing-ruby-3-0/
1•doppp•2m ago•0 comments

Show HN: We built a tool to scan used gadgets to get specs, grade and live price [video]

https://www.youtube.com/watch?v=_dDEDroVJOE
1•zq2240•2m ago•0 comments

Kamal v2.12.0

https://github.com/basecamp/kamal/releases/tag/v2.12.0
1•tosh•2m ago•0 comments

Grok models are now available via Amazon Bedrock

https://x.ai/news/grok-amazon-bedrock
2•peterspath•3m ago•0 comments

Companies Are Inviting Homeless People to Sleep in Their Offices

https://reasonstobecheerful.world/offices-homeless-accommodation/
1•scofflaw99•6m ago•0 comments

Basic Analysis: Introduction to Real Analysis

https://www.jirka.org/ra/
1•ibobev•10m ago•0 comments

Apple to Make Chips in US with Intel, Trump Says

https://www.macrumors.com/2026/06/18/apple-make-chips-us-intel-trump-says/
4•tosh•12m ago•0 comments

Baci Online Database Management

https://www.baci.world/new_login/index.php
1•RobertsMrtn•12m ago•0 comments

Advanced Compilers: The Self-Guided Online Course

https://www.cs.cornell.edu/courses/cs6120/2025fa/self-guided/
3•ibobev•13m ago•0 comments

Ask HN: Creative ideas for high-engagement, consistent in-person community?

2•actfrench•15m ago•0 comments

Breach spills credentials for sensitive networks

https://arstechnica.com/security/2026/06/massive-breach-spills-credentials-for-thousands-of-sensi...
1•joozio•16m ago•0 comments

help how can i delete this :')

https://ide.biela.dev/r/9GD5BF8E
1•danielul•18m ago•1 comments

Value of mid-tier US-made knives

https://www.paragon-knives.com/
1•bgzlsxaz•18m ago•0 comments

Show HN: A calm browser based physics game

https://samuria.online/drift/
1•samuria•21m ago•0 comments

Questions to ask when evaluating neurotech approaches

https://www.owlposting.com/p/questions-to-ponder-when-evaluating
1•abhishaike•21m ago•0 comments

Ceiling fans: the simple idea we keep screwing up [video]

https://www.youtube.com/watch?v=_KWdCqpXB7A
1•secret-noun•21m ago•0 comments

GM may ditch LFP batteries for future EVs

https://www.reuters.com/business/autos-transportation/gm-may-ditch-lfp-batteries-future-evs-2026-...
1•breve•22m ago•0 comments

I scanned 57 EU online stores for the Accessibility Act – avg 43/100

https://index.cirvgreen.com/report.html
2•NickCirv•22m ago•0 comments

I Build Developer Platforms for a Living. Then I Built One for a Trampoline

https://billgilleran.com/writing/building-a-platform-for-a-trampoline
1•rclairville•22m ago•0 comments

Show HN: Khwand – self-healing CI/CD for AI agents (GitHub App, Python-first)

https://wwww.khwand.com
1•FahadHafeezOff•22m ago•0 comments

Ford is building low-cost LFP battery cells to power its $30,000 EV pickup

https://electrek.co/2026/06/17/ford-begins-building-low-cost-lfp-batteries-for-30k-ev-pickup/
1•breve•23m ago•0 comments

Americans have never been healthier or more alone. Might these things be related

https://www.derekthompson.org/p/the-cult-of-the-enhanced-self
2•momentmaker•25m ago•0 comments

A Modern Proxmox Docker Architecture with Disposable VMs, VirtIO-FS, and ZFS

https://du.nkel.dev/blog/2026-05-16_rootless_docker_virtiofs_proxmox/
2•Helmut10001•26m ago•0 comments

An Interview with Michael Morton About E-Commerce in the Age of AI

https://stratechery.com/2026/an-interview-with-michael-morton-about-e-commerce-in-the-age-of-ai/
1•swolpers•29m ago•0 comments

Let me name things (my new side gig)

https://itwa.netlify.app
1•Mwalwala•30m ago•1 comments

Auditing LLM agents may require auditing the upstream feed

https://arxiv.org/abs/2606.00914
2•ranausmans•31m ago•0 comments

A New Era of Super-Hybrid Cars Is Coming

https://www.nytimes.com/2026/06/17/business/extended-range-electric-vehicles-erevs.html
1•Kaibeezy•32m ago•0 comments

Password-stealing attack hits 75k Fortinet firewalls

https://www.theregister.com/cyber-crime/2026/06/17/massive-password-stealing-attack-hits-75k-fort...
1•pseudolus•34m ago•1 comments

Show HN: Causality Engine – Causal marketing attribution for e-commerce

https://www.causalityengine.ai
3•Sharanxxxx•36m ago•0 comments

Ask HN: Looking for a CI/CD project for my local lab

3•q8zd3•36m ago•2 comments