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!

Resurrecting 2013 with Qwen3.8 27B

https://xcjs.com/blog/2026/08/29/resurrecting-2013-with-qwen3.8-27b
1•xcjs•53s ago•0 comments

How AI Is Reshaping Pediatric Imaging

https://www.childrenshospitals.org/news/childrens-hospitals-today/2026/08/how-ai-is-reshaping-ped...
1•ryzvonusef•3m ago•1 comments

Show HN: I built a terminal pager that runs in Colab

https://github.com/dawsonhuang0/Less-Pager-Mini
1•DevDawg•5m ago•0 comments

The Cybersecurity Apocalypse Is Coming in 'Months,' AI Giants Warn

https://www.wired.com/story/security-news-this-week-the-cybersecurity-apocalypse-is-coming-in-mon...
2•joozio•8m ago•0 comments

European Stagnation Is Real

https://www.siliconcontinent.com/p/european-stagnation-is-real
1•barry-cotter•10m ago•0 comments

Show HN: AgentGate – signed receipts for AI agent SaaS actions

https://github.com/Clawdlinux/agentgate
1•goodra7174•10m ago•0 comments

AIPass – AI agents whose memory is small JSON files they own

https://aipass.ai
1•AIOSAI•12m ago•0 comments

Anthropic warns users of possible token theft

https://www.reddit.com/r/ClaudeAI/comments/1w1jqsh/thank_you_anthropic_really/
1•basedpolymer•13m ago•0 comments

Smartphone LED Detects Hidden Cameras with AI

https://www.chosun.com/english/industry-en/2026/08/30/SBFXUIJQYZEARKP5T4FBAY25HQ/
2•geox•19m ago•0 comments

Algorithmic Theories of Everything (2000)

https://arxiv.org/abs/quant-ph/0011122
1•tosh•19m ago•0 comments

Hart's Location, NH

https://en.wikipedia.org/wiki/Hart%27s_Location,_New_Hampshire
1•sans_souse•22m ago•1 comments

Ask HN: Do you still write code by yourself?

1•codst•29m ago•1 comments

Morphe App: Transform Your Android Experience

https://morphe.software/
1•thunderbong•30m ago•0 comments

Commodore 77

https://commodore.net/store/commodore64/
1•doener•32m ago•0 comments

Put full images in QR codes with dithering

https://www.wowqr.app
1•alentodorov•38m ago•0 comments

A decision tree for picking attention

https://efficientagent.substack.com/p/a-decision-tree-for-picking-attention
2•bnayak25•39m ago•0 comments

1988-1994: Designated Driver Campaign

https://guides.library.harvard.edu/CHC/designateddriver
1•Michelangelo11•39m ago•0 comments

An official Linux version of the Grok bot is now available

https://twitter.com/m0nle0z/status/2093948285929353555
1•iamsyr•44m ago•0 comments

I Built a Free Printable Habit Tracker Because Most Habit Tracking Tools

https://www.indiehackers.com/post/i-built-a-free-printable-habit-tracker-because-most-habit-track...
2•ahmadhussain89•47m ago•0 comments

About Syria's Nightlife

https://twitter.com/i/status/2093806659868950549
1•Michelangelo11•50m ago•0 comments

Show HN: VelocityNote – A tiny Markdown notebook with local AI

https://velocitynote.app/
2•velocityNote•54m ago•0 comments

How the pre-Unicode Amharic encodings were mapped

https://ezra.et/how-amharic-encodings-were-mapped
1•tena_codes•56m ago•0 comments

A Cop's Case for Flock

https://worksinprogress.co/issue/a-cops-case-for-flock/
2•maxall4•1h ago•0 comments

Building Critical Infrastructure with Htmx: Network Automation

https://htmx.org/essays/paris-2024-olympics-htmx-network-automation/
1•rajtilakjee•1h ago•0 comments

The Hugging Face attack surprised me

https://www.planned-obsolescence.org/p/the-hugging-face-attack-surprised
2•tosh•1h ago•0 comments

Ask HN: Should we rename programming into herding?

1•sam_lowry_•1h ago•0 comments

The Implausibility of Intelligence Explosion (2017)

https://medium.com/@francois.chollet/the-impossibility-of-intelligence-explosion-5be4a9eda6ec
2•maxall4•1h ago•0 comments

JFK Conspiracy Lite

https://yarchive.net/blog/jfk/
1•Tomte•1h ago•0 comments

Every Time Larry David Appeared on Seinfeld [video]

https://www.youtube.com/watch?v=L4wWE5r0sPE
2•tzury•1h ago•0 comments

METR: Funding Update

https://metr.org/blog/2026-08-14-funding-update/
1•tosh•1h ago•0 comments