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!

W3C publishes updated SVG2 Candidate Recommendation

https://www.w3.org/news/2026/updated-candidate-recommendation-scalable-vector-graphics-svg-2/
1•jarek-foksa•1m ago•0 comments

Spurred on by AI usage Google Docs and Drive now support Markdown files natively

https://www.techradar.com/pro/spurred-on-by-ai-usage-google-docs-and-drive-now-support-markdown-f...
1•digitallogic•2m ago•1 comments

Vinci – A Physics Intelligence company raised $250M

https://www.reuters.com/technology/software-startup-vinci-raises-250-million-15-billion-valuation...
1•rusrushal13•3m ago•0 comments

A sustainable web career, for when all this blows over

https://dbushell.com/2026/10/07/sustainable-web-career/
1•ibobev•3m ago•0 comments

The Explanation Lab

https://theexplanationlab.com/
1•hownottowrite•4m ago•0 comments

The Windows I/O Manager: Deep dive into how read I/O requests are initialized

https://winware31.blogspot.com/2026/10/inside-windows-io-manager-deep-dive.html
1•ibobev•4m ago•0 comments

Obelisk 0.42: Durable Agents, Layered Sandboxes

https://obeli.sk/blog/announcing-obelisk-0-42/
1•ibobev•5m ago•0 comments

Show HN: Reika – A coding agent CLI designed around small local models first

https://github.com/alexwkleung/reika
1•silentcuriousde•5m ago•1 comments

5k-Year-Old Arrowhead Emerges from Norway's Rapidly Melting Mountain Ice

https://www.smithsonianmag.com/smart-news/in-an-exciting-but-brutal-find-a-5000-year-old-arrow-em...
1•bookofjoe•5m ago•0 comments

Ecofarer – An eco habit tracker that tells you when the data doesn't hold up

https://ecofarer.com/
1•alec3114•10m ago•0 comments

New forensic evidence supports Egyptian "retainer sacrifice"

https://arstechnica.com/science/2026/10/new-forensice-evidence-supports-egyptian-retainer-sacrifice/
1•dverlaeckt80•10m ago•0 comments

Mistral Large 4 Preview Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/mistral-large-4
1•Topfi•10m ago•0 comments

EmbeddingGemma 2: An open model for natively multimodal embeddings [video]

https://www.youtube.com/watch?v=anPsS6huQk0
1•htk•11m ago•0 comments

Review code without reading diffs

https://github.com/Ghvstcode/grsp
1•flyingsky•11m ago•0 comments

Presenting a proof of the Kannan-Lovász-Simonovits conjecture

https://arxiv.org/abs/2610.05474
1•csheehan10•11m ago•0 comments

Ubunye Engine – One Pipeline, Local/Databricks/AWS/Azure/GCP

https://github.com/ubunye-ai-ecosystems/ubunye_engine
1•lepara•11m ago•0 comments

OpenSSH 10.6 Released

https://www.openssh.org/txt/release-10.6
2•acossta•12m ago•0 comments

Show HN: HieraticBench – Can AI read ancient Egyptian handwriting?

https://hieraticbench.vercel.app/
2•amoursy•12m ago•0 comments

EUV Photomasks Are Getting Bigger [video]

https://www.youtube.com/watch?v=B7KcQ2yE6pM
1•car•13m ago•0 comments

Show HN: An MCP server that finds text your agent reads and you can't see

https://hiddencontent.ai/start/
2•davenaff•13m ago•0 comments

Why do tech CEOs sound like doomsday cult leaders?

https://www.theglobeandmail.com/life/social-trends/article-why-do-tech-ceos-sound-like-doomsday-c...
2•Fricken•13m ago•1 comments

I Just Started and I Feel So Fucking Tired

1•olirex99•14m ago•0 comments

Show HN: Self-custody USDC billing for metered APIs – no Stripe, no bank, $0/mo

https://github.com/web4-watchbot/web4-automaton/blob/main/docs/billing-rail-deep-dive.md
1•madansa7•14m ago•0 comments

The biggest advance in AI since the LLM

https://garymarcus.substack.com/p/the-biggest-advance-in-ai-since-the
1•sergiogdr•14m ago•0 comments

Show HN: Automatically unlock your laptop if your phone is nearby

https://git.frog.ski/pam_bluetooth/about/
1•subtract-smiles•14m ago•0 comments

Strapi and PostgreSQL on Docker Compose: visual port-conflict resolver

https://xivizley.com.tr/blog/strapi-headless-cms-rehberi
1•Xivizley•14m ago•0 comments

LLM That Beat Frontier Models at Chess

https://www.aidancooper.co.uk/the-2023-llm-that-beat-frontier-models-at-chess/
1•speckx•15m ago•0 comments

Who lost my lap infant? My attempt to reverse engineer a decade-long airline bug

https://jtibs.substack.com/p/who-lost-my-lap-infant
1•jubileet•16m ago•1 comments

The Youth Mental Health Crisis Is a Moral Panic

https://matteoraso.substack.com/p/the-youth-mental-health-crisis-is
2•matteoraso•16m ago•0 comments

Monte Carlo Tree Search Is Awesome

https://thegustafson.com/blog/mcts-is-awesome
1•usernotfoundrn•17m ago•0 comments