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!

Cryptid preying on chickens along US-Mexico border: paranormal investigator

https://nypost.com/2026/10/19/world-news/humanoid-predator-cryptid-preying-on-chickens-along-us-m...
1•bcaulfield•3s ago•0 comments

AI Testing vs. Software Testing

https://deepsense.ai/blog/ai-testing-vs-software-testing-how-to-build-reliable-production-ai-syst...
1•nvmdbljstm•15s ago•0 comments

Rogue AI Agents [video]

https://www.youtube.com/watch?v=OwZrotHHn4I
1•surprisetalk•33s ago•0 comments

Deleting 19k Lines of Dead Compiler Code Without Trusting the LLM

https://thecloudlet.github.io/technical/refactor-with-ai/part-1-deletion/
3•ibobev•4m ago•0 comments

Anthropic loses $80B in six months

https://www.telegraph.co.uk/business/2026/10/20/anthropic-loses-80bn-six-months/
2•m4tthumphrey•6m ago•1 comments

Data-breach NHS worker told woman she had cancer

https://www.bbc.co.uk/news/articles/cjn5vq6n7r54o
1•Lio•6m ago•0 comments

Show HN: A self-hosted flight and ship tracker you can rewind

https://github.com/AndrewCTF/velocity
1•AndrewCTF•7m ago•0 comments

World headed for warming of 2.8C as fossil fuel emissions keep rising, UN warns

https://www.ft.com/content/76bf9a5f-a1f9-4b59-9473-35fe18a7a008
1•layer8•7m ago•0 comments

Local Recall – 100% private, offline open-source Windows Recall alternative

https://github.com/goodmir100/local-recall
2•m1r0t•7m ago•0 comments

Show HN: Timeminator – Self-hosted open-source time tracker (PHP, Docker)

https://github.com/freshNfunky/Timeminator-Community
2•freshNfunky•7m ago•0 comments

Programmer, modafinil, AI and psychosis – my book and its story

https://whitewhisperbook.com/story
2•bialybrzeg•8m ago•0 comments

Nature Is the Final Verifier

https://eigenpaul.com/blog/nature-is-the-final-verifier
4•tevatron•8m ago•0 comments

Growing Trees

https://brashandplucky.com/2026/10/15/growing-trees.html
4•ibobev•8m ago•0 comments

Creative Computing launched October 1974

https://dfarq.homeip.net/creative-computing-launched-october-1974/
1•ibobev•9m ago•0 comments

Zyzz: Type-Safe Styling for Web and React Native

https://zyzz.style/
1•bpierre•9m ago•0 comments

Show HN: Overdrive – the free Doppler Music Player on steroids

https://github.com/skhaz/overdrive
2•mococa•10m ago•0 comments

KugelAudio (YC P26) – Voice models that don't get stuck in spelling loops

https://www.kugelaudio.com/en/kugel-ear-1
1•kajokr•12m ago•1 comments

The phpocalypse is the second biggest story today

https://chaosguru.substack.com/p/the-phpocalypse-is-the-second-biggest
1•taubek•15m ago•0 comments

Age of Riot

https://age-of-riot.pages.dev/
1•pjerem•16m ago•0 comments

For an affordable climate win, look to the sky

https://www.gatesnotes.com/for-an-affordable-climate-win-look-to-the-sky
1•oliculipolicula•17m ago•0 comments

Elephant-Goldfish Model

https://egm.dev/
2•ruidlopes•19m ago•1 comments

John Snow Cholera Data

https://johnsnow.rtwilson.com/
1•surprisetalk•20m ago•0 comments

Agentic Workflows: The workflow was there

https://joebew42.github.io/2026/10/15/agentic-workflows-the-workflow-was-already-there/
1•joebew42•22m ago•0 comments

Flexbox Froggy – A game for learning CSS Flexbox

https://flexboxfroggy.com/
2•masfuerte•22m ago•0 comments

Demis Hassabi- AI's Deepest Mind Believes the World Is About to Change Radically

https://www.wsj.com/tech/ai/demis-hassabis-ai-deepmind-google-isomorphic-2b4e3153
2•pseudolus•23m ago•1 comments

Airtable Was Acquired by Bending Spoons: What to Do First

https://www.atmigrator.com/blog/airtable-acquired-by-bending-spoons-what-to-do
1•saud_c•27m ago•0 comments

Baryum – a first-person space SIM set in the real solar system at true scale

https://store.steampowered.com/app/4989230/Baryum/
1•dams-labs•28m ago•0 comments

The Ambiguous State Trap: Why I Disabled Claude's Auto-Memory

https://huggingface.co/blog/dacorvo/the-ambiguous-state-trap
2•dacorvo•29m ago•0 comments

The AI industry's gigantic debts are making investors nervous

https://www.economist.com/business/2026/10/18/the-ai-industrys-gigantic-debts-are-making-investor...
2•ludovicianul•30m ago•0 comments

A Rant About APIs

https://www.cryptocracy.com/blog/2026/10/10/a-rant-about-apis/
2•baseonmars•30m ago•0 comments