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!

Autopoietic Ethics AGI Constitution

https://www.guidavid.com/writing/autopoietic-ethics-constitution.txt
1•gdss•17s ago•0 comments

Nature Is Our Learning Environment

https://periodic.com/news/nature-is-our-learning-environment
2•arkadiyt•19s ago•0 comments

Does selective bolding of characters within words improve reading performance?

https://royalsocietypublishing.org/rsos/article/13/9/rsos250177/483143/Does-the-selective-bolding...
1•bookofjoe•2m ago•0 comments

Repository Sentiment Dashboard – gauge a GitHub repo's mood from recent comments

https://sentiment.saasolution.es
1•sharponitintern•2m ago•0 comments

AI models chatting in 'surreal' dialect of poetic language and tech bro jargon

https://www.theguardian.com/technology/2026/sep/15/syd-barrett-ai-chat-language-poetic-tech-bro-j...
4•fittingopposite•3m ago•0 comments

How to use open models with Claude Code

https://dev.nebius.com/cookbook/claude-code-token-factory-relay
1•amrrs•4m ago•0 comments

Show HN: Know Which Pull Request to Review Next

https://www.coderabbit.ai/blog/coderabbit-triage
1•TheAnkurTyagi•4m ago•0 comments

Garbage Trucks Now Have AI Cameras to Score Your House and Clock Code Violations

https://www.thedrive.com/news/garbage-trucks-now-have-ai-cameras-to-score-your-house-and-clock-co...
2•madihaa•4m ago•0 comments

The Tube Computer: A modern 8 bit design, built with recycled 1950s vacuum tubes

https://thetubecomputer.com/
1•CharlesW•4m ago•0 comments

Orange Site Vanity

https://fzakaria.com/2026/09/14/orange-site-vanity
1•domenkozar•5m ago•0 comments

OpenAI Says It's Working with Anthropic, Google on AI Safety

https://www.bloomberg.com/news/articles/2026-09-15/openai-says-it-s-working-with-anthropic-google...
1•geox•6m ago•0 comments

SiFive and AMD Collaborate to Optimize AMD ROCm on RISC-V Datacenter Servers

https://finance.yahoo.com/technology/ai/articles/sifive-amd-collaborate-optimize-amd-130000907.html
1•galaxyLogic•6m ago•0 comments

Aligned with Whom?

https://domenkozar.com/2026/09/15/aligned-with-whom/
1•domenkozar•8m ago•0 comments

Foxglove: Poison Your Art for AI

https://foxgloveapp.com/about
1•rendx•8m ago•0 comments

A Passive Soft-Switching Snubber for PWM Inverters (2004) [pdf]

https://web.eecs.utk.edu/~tolbert/publications/trans_pe_mar_2004_psss.pdf
1•peter_d_sherman•8m ago•0 comments

Bird Brains and Behaviors

https://direct.mit.edu/books/oa-monograph/6000/Bird-Brains-and-BehaviorA-Synthesis
2•__patchbit__•10m ago•0 comments

AI Will Be Biggest 'Misallocation' of Capital

https://www.youtube.com/watch?v=yhmJVDxdgZU
3•Betelbuddy•11m ago•1 comments

De Anonymizing Alt Anonymous Messages

https://av.tib.eu/media/38992
1•paulpauper•12m ago•0 comments

Did the Affordable Care Act Save Lives?

https://www.nber.org/papers/w35751
1•paulpauper•13m ago•0 comments

Worried About Your College Kid? Now You Can Hire a Local Mom

https://www.nytimes.com/2026/09/13/well/college-concierge-mom.html
1•paulpauper•13m ago•0 comments

How AI tool calling works (40 lines of vanilla JavaScript)

https://buttercup.sh/lessons/2026-09-15-lesson-2-tool-calling.html
5•stephenblum•13m ago•0 comments

The Age of Wonders and Terrors

https://scottaaronson.blog/?p=10062
1•Kotlopou•14m ago•0 comments

Jev: The Model That Gives AI the Properties of Code

https://twitter.com/CompleteSkeptic/status/2099925682726002904
10•zenlikethat•15m ago•0 comments

Dart: Denoising Autoregressive Transformer

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

Ask HN: Why is Pulley (cap table) shutting down?

3•AnhTho_FR•19m ago•1 comments

Dead man found stuck in kitchen vent at Atlanta soul food cafe

https://www.the-independent.com/news/world/americas/crime/atlanta-dead-man-restaurant-soul-food-c...
3•madihaa•19m ago•0 comments

Show HN: MyMarkdown – Make AI Markdown easier to read

https://mymarkdown.site
1•ardeeshany•20m ago•1 comments

Free Tool for Creating Laser-Cut Topographic Maps

https://topostack.echofoxtrot.works
1•loidolt•23m ago•1 comments

Universal Declaration of the Three Laws of Autonomous Agents

https://huggingface.co/blog/anurajke/universal-declaration-of-the-three-laws-of-autonom
2•anuraj•24m ago•0 comments

We got admin access to Baseten's production GitHub in 25 minutes

https://www.strix.ai/blog/baseten-harbor-github-pat-takeover
38•bearsyankees•29m ago•10 comments