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!

I Teach at a Business School. It's Time to Shut Them Down

https://www.nytimes.com/2026/10/18/opinion/business-school-mba-harvard-cornell-cambridge.html
1•rgovostes•1m ago•0 comments

Rustd – Drop-in rustc replacement for faster builds

https://github.com/DioxusLabs/rustd
1•dabinat•5m ago•0 comments

Show HN: Hybro – an open interoperability engine for AI agents

https://github.com/hybroai/hybro
1•kevinlu310•8m ago•0 comments

OpenAI Faces Lawsuits, Subpoenas and EU Scrutiny in a Single Week

https://www.techpolicy.press/openai-faces-lawsuits-subpoenas-and-eu-scrutiny-in-a-single-week/
1•cdrnsf•8m ago•0 comments

Checking Relevance with Verdict4s

https://www.softinio.com/post/checking-relevance-with-verdict4s/
1•softinio•9m ago•0 comments

DeepSeek v4.1 Flash 1017 beats larger models in agentic tasks while cutting cost

https://the-decoder.com/deepseek-v4-1-flash-1017-beats-larger-rivals-in-agentic-tasks-while-once-...
2•yogthos•11m ago•0 comments

William Gibson and the Trademarking of Cyberspace

https://colo.to/cyberspace.html
2•Eric_Gullichsen•11m ago•1 comments

How Quickly Can the DoD Rebuild and Recast the Munitions Industrial Base?

https://www.csis.org/analysis/how-quickly-can-dod-rebuild-and-recast-munitions-industrial-base
1•gmays•11m ago•0 comments

Show HN: InfiniDomino – practically infinite world of dominoes to knock over

https://infinidomino.io/
1•Static2280•16m ago•0 comments

Newly identified green star leaves astronomers amazed

https://www.reuters.com/science/newly-identified-green-star-leaves-astronomers-amazed-2026-10-16/
3•NewJazz•20m ago•0 comments

Google Harness2: Recursive Agent Harnessing for an Open World

https://github.com/google-research/harness2
3•reimertz•29m ago•0 comments

He Wants AI Benchmarking to Be a Science, Not a Dark Art

https://www.quantamagazine.org/he-wants-ai-benchmarking-to-be-a-science-not-a-dark-art-20261016/
1•pseudolus•30m ago•0 comments

OpenFlow – Ultimate Agent Orchestration

https://github.com/SeeRay11/OpenFlow
1•searay112023•31m ago•0 comments

Home sellers cut asking prices on 3k properties a day

https://www.bbc.co.uk/news/articles/c84g13z6xx4eo
2•rvz•32m ago•1 comments

Studio Desktop

https://github.com/OrdiFi/studio-desktop
1•hreczynski1984•33m ago•0 comments

Show HN: Bhasini – 22 Indian Language Editor

https://bhasini.com/
1•Codegres•39m ago•0 comments

Integer to String Conversion (2014)

https://tia.mat.br/posts/2014/06/23/integer_to_string_conversion.html
1•jstrieb•41m ago•0 comments

Xterm/VT100 Terminal emulator library in Swift

https://github.com/migueldeicaza/SwiftTerm
2•wslh•41m ago•1 comments

Integer Multiplication as a Living Research Programme [pdf]

https://hexapode.github.io/integer-mult-living-paper/paper.pdf
1•pierre•43m ago•0 comments

CS Fundamentals are Great (OSSU)

https://teadrivendevelopment.substack.com/p/cs-fundamentals-are-great
1•ghassenfaidi•44m ago•0 comments

Reflections After Artemis II

https://www.nasa.gov/podcasts/houston-we-have-a-podcast/reflections-after-artemis-ii/
3•laybak•53m ago•0 comments

Show HN: Gspot, a tool to lint gstack code

https://generativespotting.com/
1•dr__stoney•55m ago•1 comments

GL.iNet Comet Q GL-RMQ1 Review: Single USB-C Cable Remote KVM with Tailscale

https://www.servethehome.com/gl-inet-comet-q-gl-rmq1-review-a-single-usb-type-c-cable-remote-kvm-...
1•wondersky•57m ago•0 comments

What Anthropic's 17x quantum claim left out [video]

https://www.youtube.com/watch?v=qkUx6uhIu_s
1•erratum_hunter•1h ago•0 comments

How RC2's π table was made

https://khalidhamadeh.com/writing/rc2-pi-table
2•KhalidH•1h ago•1 comments

2x Tesla p100s, q6_k quant, Qwen 3.8 27B ~60tps

https://github.com/Kmic-68/llama.cpp
1•Kmic68•1h ago•1 comments

The Decoherence Trap

https://maevyn.codes/decoherence
2•eikenberry•1h ago•2 comments

Anthropic proposes AI safety bill with $1B / 50-death treshold

https://www.politico.com/news/2026/10/16/anthropic-ai-safety-01124654
3•satirr•1h ago•1 comments

Hospitals' next lucrative bet: longevity clinics

https://www.statnews.com/2026/10/16/readout-loud-podcast-hospitals-longevity-clinics-northwestern/
1•brandonb•1h ago•0 comments

Dissecting CVE-2026-27280: An OOB write in Android's DNG rendering engine

https://blog.chess-set.eu/en/posts/dissecting-cve-2026-27280/
2•paolorusso•1h ago•0 comments