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!

Claudbar: An AI side panel for Firefox

https://addons.mozilla.org/firefox/addon/claudbar/
1•sciltomia•1m ago•0 comments

Show HN: Mealumo – log a meal's calories and macros from a photo (iOS)

https://apps.apple.com/us/app/mealumo-ai-calorie-tracker/id6811904664
1•mealumo_vlad•2m ago•0 comments

WA is losing more from Canada than shoppers

https://www.seattletimes.com/opinion/wa-is-losing-more-from-canada-than-shoppers/
1•ClearwayLaw•5m ago•1 comments

Ask HN: Who still uses EXO Labs?

1•thesnarkitecht•7m ago•0 comments

Ask HN: Are Tenstorrent cards better than Nvidia?

2•thesnarkitecht•10m ago•0 comments

U.S. Strikes Iran's Qeshm Island as Trump Talks Down War Risks

https://www.wsj.com/world/middle-east/u-s-strikes-irans-qeshm-island-as-trump-talks-down-war-risk...
6•Foxhuls•13m ago•0 comments

Goldman restricts traders and bankers from using some AI tools

https://www.moneycontrol.com/europe/?url=https://www.moneycontrol.com/news/business/goldman-restr...
2•vismit2000•14m ago•0 comments

Flight Explainer: Live charts of your Python pipelines

https://motherduck.com/blog/flight-explainer/
1•jonbaer•15m ago•0 comments

Cops bust botnet of 1.3M infected Android TV boxes

https://www.theregister.com/cyber-crime/2026/11/02/cops-bust-botnet-of-13m-infected-android-tv-bo...
3•entryleveljobsc•15m ago•0 comments

Inside Musk's plan to upend the wireless phone industry

https://www.washingtonpost.com/technology/2026/11/02/inside-elon-musks-plan-upend-wireless-phone-...
2•bookofjoe•16m ago•1 comments

Show HN: Project Wisteria-A BYOK chatbot that saves thoughts and memory locally

https://negativeabsence.com/wisteria/
1•NegativeAbsence•16m ago•1 comments

Quitting jobs: The two-week notice is dying. Maybe it should

https://slate.com/life/2026/11/jobs-job-work-quit-two-weeks-notice.html
1•tekdude•18m ago•0 comments

Blades CSS v3.1.0 released – a modern drop‑in successor to Pico CSS

1•anydigital•21m ago•0 comments

Speridlabs/Idol · Hugging Face

https://huggingface.co/speridlabs/idol
2•yukim198•23m ago•0 comments

Dartmouth's provost warned us about AI cheating–but his AI use cost him his job

https://arstechnica.com/tech-policy/2026/10/dartmouths-provost-warned-us-about-ai-cheating-but-hi...
1•poopcat•25m ago•0 comments

Programming Language Research by David Walker

https://dl.acm.org/doi/10.1145/2837614.2843896
1•efren6•29m ago•0 comments

Stolen AI API keys generated nearly $1M in charges for a single company

https://cloud.google.com/blog/topics/threat-intelligence/llmjacking-monetizing-compromised-cloud-...
4•khalidkhair•33m ago•1 comments

Audience Capture

https://www.seangoedecke.com/audience-capture/
1•gfysfm•34m ago•0 comments

Show HN: Flick – A sports scores app without spoilers

https://flick.kawaicheung.io/appstart.html
1•kiwigod17•37m ago•0 comments

What Are the US Midterms

https://www.bbc.com/news/articles/c6wyz223j19po
4•teleforce•37m ago•0 comments

Reading Is Not Steering: Symbol-Readers Concept-Controllers in SAE's

https://github.com/CharacterCraftAI/Gemma-SAE-Research
1•justinhernandez•39m ago•0 comments

Salesforce Signs Definitive Agreement to Acquire Cresta

https://www.salesforce.com/news/stories/salesforce-signs-definitive-agreement-to-acquire-cresta/?...
2•johnbatch•41m ago•0 comments

My reflex of assuming our servers need ever-growing amounts of RAM

https://utcc.utoronto.ca/~cks/space/blog/sysadmin/ServerRAMGrowthReflex
1•birdculture•41m ago•0 comments

From Heroku to Convox, and why we built Rack Gateway

https://docspring.com/blog/posts/from-heroku-to-convox-and-rack-gateway/
1•nathan_f77•45m ago•0 comments

Police Dept. Quits After Finding Out What It Feels Like to Be Tracked

https://www.gadgetreview.com/tables-turned-entire-police-department-quits-after-finding-out-what-...
2•thisislife2•47m ago•1 comments

Show HN: Learn French by Watching Netflix

2•nshelia•49m ago•0 comments

Terralien

https://play.terralien.antari.io/
1•AndrewAnt•51m ago•0 comments

Ask HN: Does anyone have a contact with Cleveland-area Ham club?

7•stockresearcher•56m ago•1 comments

Show HN: Learn to speak French by watching Netflix

https://chromewebstore.google.com/detail/greetai-learn-speak-langu/hhildamloicfginbdnilakddipgkolbf
2•nshelia•56m ago•0 comments

Building a Private Telephone System [video]

https://www.youtube.com/watch?v=C4DY0NzaO14
2•jumpocelot•56m ago•0 comments