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!

97% of websites expose zero tools an AI agent can use

https://sitespeak.ai/research/ai-readiness-report-2026
1•kizum•2m ago•0 comments

Stop Lying to Your Cofounder

https://avivbenyosef.com/stop-lying-to-your-cofounder/
1•avivby•2m ago•0 comments

Show HN: Isnad – A Python framework that uses 1,200-yearold Islamic logic for AI

https://medium.com/@alizahidraja/can-a-1-200-year-old-trust-system-help-build-more-reliable-ai-88...
1•alizahidraja•2m ago•0 comments

Format Factory

https://formatfactory.io/
1•gregzeng95•2m ago•0 comments

Brown Professor Suspects Majority of His Class Used AI to Cheat

https://www.insidehighered.com/news/faculty/learning-assessment/2026/07/08/brown-professor-suspec...
2•red_admiral•4m ago•1 comments

Bonnie Tyler, singer of Total Eclipse of the Heart, dies aged 75

https://www.bbc.com/news/articles/cg5pd9z2487o
1•theanonymousone•7m ago•0 comments

The AI risk in marketing stacks inside orgs

https://singulr.ai/blog/the-hidden-ai-risk-in-your-marketing-stack-shadow-ai-automation-pipelines...
1•shivc•8m ago•0 comments

Process Is a Tool, Not a Virtue

https://blog.kevingoldsmith.com/2026/03/18/process-is-a-tool-not-a-virtue/
1•grepsedawk•8m ago•1 comments

Ask HK: Does it feel like the top modals routinely dismiss your opinion/advice?

1•bridgettegraham•9m ago•0 comments

How to avoid dementia – what the science says

https://www.nature.com/articles/d41586-026-02098-z
1•doener•11m ago•0 comments

Relm – local LLMs as base-R objects, with interpretability

https://github.com/Vadale/R-ebirth
1•grauk•11m ago•0 comments

Tuta is making it easier to migrate all your emails to Tuta Mail

https://www.neowin.net/news/tuta-is-making-it-easier-to-migrate-all-your-emails-to-tuta-mail/
1•bundie•15m ago•0 comments

The UK plans to ban romantic AI chatbots for under-18s

https://blog.uehiro.ox.ac.uk/2026/06/the-uk-plans-to-ban-romantic-ai-chatbots-for-under-18s-young...
2•ilreb•17m ago•0 comments

Grok 4.5 Benchmark Results

https://artificialanalysis.ai/models/grok-4-5
1•theanonymousone•18m ago•0 comments

San Francisco homes sell for $1M above asking price amid AI boom

https://www.theguardian.com/us-news/2026/jul/07/san-francisco-home-sale-prices-ai
2•pseudolus•21m ago•0 comments

The Fediverse Grew Up. Its Sign-Up Page Didn't

https://casually.onl/article?slug=fediverse-grew-up-2026
2•doener•22m ago•0 comments

Questions for the Team During Onboarding

https://simonwillison.net/2026/Mar/6/ally-piechowski/
1•grepsedawk•22m ago•1 comments

My Thoughts on the Bun Rust Rewrite

https://andrewkelley.me/post/my-thoughts-bun-rust-rewrite.html
9•kristoff_it•22m ago•0 comments

Show HN: Humm – free, private realtime speech-to-text

https://humm.so/
1•welanes•23m ago•0 comments

M64 Controller Review

https://retrododo.com/m64-controller-review-the-n64-remote-perfected/
1•tosh•27m ago•0 comments

Show HN: Ved AI Voice Assistant

https://github.com/Krish6190/Ved-Test
1•Amigo112•28m ago•0 comments

If Microsoft sold off Xbox, who would even buy it?

https://www.theverge.com/games/962837/microsoft-xbox-spin-off-sell-divest-layoffs-asha-sharma
2•haunter•29m ago•0 comments

China Weighs Limits on the AI Models American Companies Love

https://www.wsj.com/tech/ai/china-weighs-limits-on-the-ai-models-american-companies-love-c3ad8f2b
1•JumpCrisscross•29m ago•0 comments

The Traverse of the GR20

https://mongr20.com/en/
1•altilunium•30m ago•0 comments

Bonnie Tyler latest: Legendary rock singer dies 'unexpectedly' in Portugal

https://news.sky.com/story/bonnie-tyler-latest-legendary-rock-singer-dies-in-portugal-13542742
1•Tomte•33m ago•0 comments

Show HN: Use MacBook Pro in outdoor sun by unlocking higher brightness

https://apps.apple.com/no/app/maxbrightness/id6787140590?mt=12
1•steinvakt2•34m ago•0 comments

Full-frame video stabilization through global 3D scene reconstruction

https://stabigs.github.io/
1•trueduke•35m ago•0 comments

Show HN: Rustify – Stripe and code-signing for native Rust desktop apps

https://rustify.yreh.com
1•ratsimihah•36m ago•0 comments

Talagrand's Convexity Conjecture proof proposal

https://arxiv.org/abs/2605.10908
1•hamburgererror•36m ago•1 comments

Show HN: Chat Privacy – hide AI chat history while screen sharing

https://chromewebstore.google.com/detail/chat-privacy/piakgcdlbcadfnhgmpfpfejfmmpmnmkp
1•jcwsw129•37m ago•1 comments