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!

America's largest companies have no simple way to report security flaws

https://this.weekinsecurity.com/dozens-of-americas-largest-companies-have-no-simple-way-to-report...
1•anujbans•14s ago•0 comments

A Dark Dimension Could Link Two of the Universe's Great Unknowns

https://www.quantamagazine.org/a-dark-dimension-could-link-two-of-the-universes-great-unknowns-20...
1•anujbans•45s ago•0 comments

Current AI is like the film company producing TV series or movies

https://devcyc.life/current-ai-is-like-the-film-company-producing-tv-series-or-movies/
1•lilerjee•3m ago•0 comments

Louis Pope Gratacap, a Curator in Lost Worlds

https://publicdomainreview.org/essay/gratacap-curator-in-lost-worlds/
1•Caiero•3m ago•0 comments

I published: how a question about heat became a question about reality itself

https://everythingthatglows.com/
1•kmeves•4m ago•2 comments

SHOW HN: ConvertFast – offline file conversion and file utilities for desktop

https://convertfast.co/
1•amsaleque•6m ago•0 comments

Show HN: MinLlama – Llama 3.2 inference in ~100 lines of NumPy

https://github.com/timothygao8710/minLlama
1•timothygao•6m ago•0 comments

Show HN: Make your app collaborative or multiplayer with one prompt

https://antics.gg/
1•heyitssim•7m ago•0 comments

Language models transmit behavioural traits through hidden signals in data

https://www.nature.com/articles/s41586-026-10319-8
1•thinkingemote•9m ago•0 comments

Show HN: SIA SEO: AI SEO content generation that shows up in AI Search Results

https://siaseo.com
1•Sharanxxxx•11m ago•0 comments

Cascading Messages in Smalltalk

https://donraab.medium.com/cascading-messages-in-smalltalk-14807389b6ce
1•ingve•11m ago•0 comments

Why the Odyssey Keeps Defeating Filmmakers

https://www.newyorker.com/magazine/2026/06/29/why-the-odyssey-keeps-defeating-filmmakers
1•prismatic•12m ago•0 comments

Open source, global vs. proprietary but for US in US, which is fundable in SaaS?

1•avijeetsingh16•15m ago•0 comments

Good growth strategist, bad growth strategist

https://read.earlystagegrowth.com/p/good-growth-strategist-bad-growth
1•joshlachkovic•21m ago•0 comments

Show HN: Free VIN Decoder with AI Summaries on Cloudflare Workers and NHTSA Data

https://checkmyvin.net/
1•Roselol•24m ago•0 comments

The new HTTP QUERY method explained

https://kreya.app/blog/new-http-query-method-explained/
2•CommonGuy•27m ago•0 comments

Colombia's president accuses Israel of compromising election software

https://twitter.com/petrogustavo/status/2068831260982571151
3•rendall•27m ago•2 comments

OceanBase Uses Multi-Paxos for High Availability

https://en.oceanbase.com/blog/zero-data-loss-fast-failover-oceanbase-multi-paxos
1•mountainview•28m ago•0 comments

Design an international money transfer system

https://medium.com/techtrends-digest/designing-an-international-money-transfer-system-4f816d6f98dc
1•sampathanurag3•28m ago•0 comments

Show HN: Demand Intelligence and AI Design

https://dxmax.cc/
1•akhyansh0507•32m ago•0 comments

Words, Words, Words

https://aeon.co/essays/literature-fans-should-welcome-ai-as-a-fellow-wordsmith
1•benbreen•34m ago•0 comments

OpenAI pitches ChatGPT ads to Cannes marketers ahead of IPO

https://www.ft.com/content/9717a042-fd09-4d08-972d-29b68f7985a4
1•thm•36m ago•0 comments

Design Crit: We taught AI to judge design like a designer

https://twitter.com/contralabs_ai/status/2067642363909144932
1•nopinsight•38m ago•0 comments

Tapered Language Models

https://arxiv.org/abs/2606.23670
1•E-Reverance•43m ago•0 comments

Will AI Kill Taylor Swifts: The Rise of Ultra-Personalized Music

https://ryanspahn.substack.com/p/how-listening-to-only-ai-music-changes
1•paul7986•46m ago•0 comments

DepsGuard – Hardens Package Manager

https://depsguard.com/
1•javatuts•50m ago•0 comments

Show HN: Code Stitcher – The anti-agentic workflow

https://github.com/ue-patcher/code_stitcher/releases
1•aihatterer•51m ago•0 comments

C++ Lifetime-End Pointer-Zap and OOTA Progress

https://people.kernel.org/paulmck/c-pointer-zap-and-oota-progress
2•matt_d•53m ago•0 comments

Ask HN: NIST Randomness Beacon Interruption?

2•hash0•54m ago•0 comments

AI is accelerating the exposure of the gap between people

https://jaketao.com/ai-divide-people
2•taojing10•56m ago•0 comments