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!

ESP32-C3 Adblock

https://github.com/M-Abozaid/esp32-c3-adblock
1•jayhoon•19s ago•0 comments

Ask HN: What Is Your Personal Backup Methods

1•Crontab•50s ago•0 comments

Ask HN: What do you think about Fractional CFOs

1•mtmosestn•3m ago•0 comments

The Zizians [video]

https://www.youtube.com/watch?v=C0HYotaCvcg
1•TorontoTheGood•6m ago•0 comments

The Unmillenium Problems

https://twitter.com/noemititarenco/status/2107603669969412160
1•dvt•10m ago•0 comments

Jev-Driven SRE Diagnosis: What Worked and What Failed

https://www.sregym.com/blog/jev-driven-sre-diagnosis
1•matt_d•11m ago•0 comments

The Source Code Is the Detailed Design

https://wiki.c2.com/?TheSourceCodeIsTheDetailedDesign
1•kmstout•14m ago•0 comments

Show HN: YAVCHN, Yet Another Vibe-Coded Hacker News (Reader)

https://yavchn.com/hn/
1•paulmooreparks•14m ago•0 comments

Show HN: TerrainSR – fast, realistic heightmap upscaling model

https://huggingface.co/joe-gibbs/terrainsr
3•joegibbs•15m ago•1 comments

OpenAI Decisions API is now available in Public Beta

https://community.openai.com/t/decisions-api-is-now-available-in-public-beta/1403877
1•soheilpro•18m ago•0 comments

Poll HN: Is there a skill to coding with AI?

2•jv22222•18m ago•2 comments

Halo 3 Quotes

https://www.imdb.com/title/tt0494232/quotes/
1•marysminefnuf•19m ago•0 comments

Sierra Club sues San Francisco, claims city is fabricating its water needs

https://www.sfchronicle.com/climate/article/sierra-club-san-francisco-lawsuit-22465761.php
1•littlexsparkee•22m ago•0 comments

China's LinkedIn Espionage Is Only Getting More Advanced

https://thediplomat.com/2026/10/chinas-linkedin-espionage-is-only-getting-more-advanced/
1•snarky-comments•24m ago•0 comments

My Husband Has Found a New "Helper" During His Solo Time. It's My Nemesis

https://slate.com/advice/2026/10/sex-advice-husband-masturbation-aid.html
2•snarky-comments•30m ago•1 comments

Jev-as-a-Judge for Agent Evaluations

https://academy.dair.ai/resources/jev-as-a-judge
1•omarsar•32m ago•0 comments

Competing in a Stacked Market

https://iter0.com
1•inchwormz•36m ago•0 comments

Llama.cpp and WebGPU = Client-side LLMs [video]

https://www.youtube.com/watch?v=TvVhzroY72E
4•TriteJin•37m ago•0 comments

Anagrams.lol

https://anagrams.lol
1•flwns•38m ago•0 comments

The newest author at Machu Picchu is a rope

https://write.as/6z2ws92fkul5v
1•ellie_walks•38m ago•0 comments

Show HN: Puppet Master – Manage coding agents at scale

https://puppet-master.xyz/
1•chrismoos•42m ago•0 comments

OpenSSH no longer sandboxed on macOS

https://twitter.com/canadianbryan/status/2107579608635687050
1•newman314•42m ago•0 comments

The Architecture of Digital Sovereignty

https://freedom.czr.one/
2•cezarcezarcezar•48m ago•0 comments

Show HN: ZWhispr – Three speech models are better than one

https://zwhispr.com/
2•jakobov•50m ago•0 comments

Tiberava – Caesar, Total War, and a touch of roguelite

https://tiberava.pages.dev/
1•cleaninstalled•53m ago•1 comments

Would you quit sleeping if you could?

https://endsdontjustifythemeans.com/p/would-you-quit-sleeping
2•bookofjoe•54m ago•2 comments

The Hardest Part of Using AI

https://www.makonea.com/en-US/casual/the-hardest-part-of-using-ai
2•jdw64•54m ago•0 comments

Advancing Computer Use with Ironclad

https://openai.com/index/advancing-computer-use-with-ironclad/
1•apetresc•54m ago•0 comments

Instantsite – Websites from a Prompt

https://apnews.com/press-release/ein-presswire-newsmatics/press-release-58b70d19d4b6bfb09474e9f1c...
1•tolka•58m ago•0 comments

Researchers Backdoor Open AI Model to Steal Credentials in Coding Agents

https://projectdiscovery.io/research/how-abliterated-models-can-get-you-pwned
3•skpd•59m ago•1 comments