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!

Building distributed RocksDB with OmniPaxos in 8 minutes

https://omnipaxos.com/blog/building-distributed-rocksdb-with-omnipaxos-in-8-minutes/
1•znano•1m ago•0 comments

Ask HN: Anyone patching servers by prompting AI instead of SSH/remote desktop?

1•coderai•2m ago•0 comments

Sensory Horizons and Visual Consciousness in Non-Human Animal [YouTube] [video]

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

DHS to test heat ray weapon for potential use at border

https://www.cnn.com/2026/10/21/politics/heat-ray-weapon-dhs-pentagon
1•jnord•2m ago•0 comments

Gina Trapani: my life in weeks

https://weeks.ginatrapani.org/
1•simonebrunozzi•4m ago•0 comments

Show HN: BlueFacts – Bluesky stats and feeds via MCP

https://bluefacts.app/bluesky-mcp
1•uwemaurer•5m ago•0 comments

Show HN: The fastest browser for AI agents to run browser automation

https://ego-lite.apposters.com
1•ehurynovich•12m ago•0 comments

Centipid ISP Billing OSS/BSS

https://centipidbilling.com
1•fabianmuema•17m ago•0 comments

Jailbreaking the Switch 2

https://pepsipu.com/blog/2026-10-switch2-jailbreak-ns2jb/
2•ledoge•19m ago•0 comments

Barclays cutting 5000 jobs in AI-led efficiency drive

https://news.sky.com/story/barclays-cutting-5-000-jobs-in-ai-led-efficiency-drive-13602151
2•cognoboffin•20m ago•0 comments

Just Dashboard open-source dashboard for managing your VPS

https://just-dashboard.com/
1•Wayy01•22m ago•0 comments

Mach9 raises $34M after pivoting to AI CAD software

https://techcrunch.com/2026/10/21/mach9-raises-34m-after-pivoting-to-ai-cad-software/
2•doppp•26m ago•0 comments

Show HN: SutraKey – A radial menu to download any media and web PDFs on macOS

https://sutrakey.aritro.cloud
1•halcyon-past•26m ago•1 comments

Scientists Accidentally Bred a Hybrid of Two Endangered Fish

https://www.sciencealert.com/scientists-create-a-strange-hybrid-between-two-very-different-kinds-...
2•thunderbong•27m ago•0 comments

Bose buys audio rival Skullcandy

https://www.engadget.com/2293698/bose-buys-audio-rival-skullcandy/
2•Markoff•29m ago•0 comments

Google's repository has crossed 1B CLs

1•oqsbo•30m ago•0 comments

CVE Record: CVE-2026-91403

https://www.cve.org/CVERecord?id=CVE-2026-91403
1•Daviey•35m ago•0 comments

Node.js: 5 vulnerabilities found, update now

https://nodejs.org/en/blog/vulnerability/october-2026-security-releases
6•danfritz•36m ago•2 comments

A million orthopteran singers from a year of continuous field recorders

https://www.biorxiv.org/content/10.64898/2026.10.18.759993v1
3•ersinesen•36m ago•1 comments

"Good" AI

https://thoughts.wyounas.com/p/what-does-good-ai-mean
2•simplegeek•38m ago•0 comments

Nonfiction Is Struggling. Publishers Are Making It Worse

https://thewalrus.ca/nonfiction-is-struggling-publishers-are-making-it-worse/
4•simplegeek•39m ago•0 comments

A Lost Schrödinger Manuscript Reveals a Surprising Twist in Quantum Physics

https://www.sciencealert.com/a-lost-schrdinger-manuscript-reveals-a-surprising-twist-in-quantum-p...
5•ibobev•39m ago•0 comments

Cable theft causes Openreach broadband outage for thousands in Thurnscoe, UK

https://www.datacenterdynamics.com/en/news/cable-theft-causes-openreach-broadband-outage-for-thou...
2•GloVin•43m ago•0 comments

Compare grid features, side by side

https://comparegrids.com/features
1•davidvela•45m ago•0 comments

A framework for evaluating agentic AI systems

https://deepsense.ai/blog/your-agent-passed-the-eval-should-you-ship-it/
2•nvmdbljstm•48m ago•0 comments

Patch the Planet – The Trail of Bits Blog

https://blog.trailofbits.com/2026/06/22/introducing-patch-the-planet/
4•janandonly•51m ago•0 comments

Terminal Setup for macOS: ZSH and Oh My Zsh

https://solomk.in/posts/terminal-configuration
2•ankitg12•51m ago•0 comments

Compaction Laundering:Provenance Destruction in Context-Compacting Coding Agents

https://arxiv.org/abs/2610.29869
2•ersinesen•53m ago•0 comments

ChatGPT Ads as over 100k advertisers have used the platform

https://openai.com/index/chatgpt-ads-expands-26-new-countries/
3•haebom•55m ago•0 comments

Show HN: A stateless MCP server over our docs – search, list_topics, get_article

https://chinaready.co/docs/api/
2•martinliucn•57m ago•0 comments