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!

Building an AI music tool taught me the model wasn't the hard part

https://www.musegen.ai
1•Xuuu•1m ago•0 comments

Kryptos: Encrypt messages right inside any messenging app

https://github.com/swisslite/Kryptos
1•hamburgererror•2m ago•1 comments

I solved 823 LeetCode problems by age 18. Here is why LeetCode is broken

1•dima853•3m ago•0 comments

The Taming of the Screw (2000)

https://americanhistory.si.edu/subs/anglesdangles/taming.html
1•downbad_•4m ago•0 comments

European transmission system operators prepare for solar eclipse

https://www.pv-magazine.com/2026/08/10/european-transmission-system-operators-prepare-for-solar-e...
3•leonidasrup•11m ago•0 comments

Large-scale study finds no link between crime and unauthorized immigration

https://phys.org/news/2026-08-large-scale-link-crime-unauthorized.html
2•robtherobber•11m ago•0 comments

The shock revelation that light bulbs are wrecking your metabolism

https://www.newscientist.com/article/2582914-the-shock-revelation-that-light-bulbs-are-wrecking-y...
1•jdnier•12m ago•0 comments

A Politician Built an AI Version of His Rival. It Didn't Go as Planned

https://ai-updates.net/a-politician-built-an-ai-version-of-his-rival-it-didnt-go-as-planned/
1•ashurandi•13m ago•1 comments

Thesis for AI Recursion

1•abaraxadac•14m ago•1 comments

Why Does Claude.md Keep Growing? Catastrophic Remembering in Agentic Coding

https://arxiv.org/abs/2608.11095
1•sbulaev•15m ago•0 comments

China bypasses shipping chokepoints with 'Ice Silk Road' through Arctic

https://www.ft.com/content/4456f475-f2c8-4cb7-8312-0c47c5f781b8
1•e12e•18m ago•1 comments

AI and quantum computers will be frenemies

https://www.economist.com/science-and-technology/2026/07/29/ai-and-quantum-computers-will-be-fren...
1•rbanffy•20m ago•0 comments

Chrome adopts what may be the best protection yet against account takeovers

https://arstechnica.com/security/2026/08/chrome-adopts-what-may-be-the-best-protection-yet-agains...
1•joozio•20m ago•0 comments

Show HN: Execution Intelligence AI Accelerator

https://geekyants.com/ai-accelerator/execution-intelligence-ai-signal-bot
2•vanessa1211•21m ago•0 comments

Industry Brief: Private 5G for Fixed Wireless Access FWA [pdf]

https://framerusercontent.com/assets/0D2QnYUrf5XYlE1yfpUz3YKTw.pdf
1•y2so•22m ago•0 comments

500'000€ Prize for Compressing Human Knowledge

http://prize.hutter1.net/
1•cosmojg•23m ago•0 comments

What Your Manager Is Thinking When You Complain

https://adlerhsieh.com/p/what-your-manager-is-thinking-when-you-complain
1•fagnerbrack•27m ago•0 comments

Speak in the affirmative: "Do this" versus "Don't do that"

https://newsletter.weskao.com/p/speak-in-the-affirmative-do-this
3•fagnerbrack•27m ago•0 comments

Ask HN: Developer looking for freelance or contract work(400 USD/week)

1•need_a_work23•28m ago•0 comments

AI agent hacks gym to get its user a spot in pilates class

https://www.bbc.com/news/articles/cn0nww2qlp7o
2•ashurandi•29m ago•0 comments

Detailed animation of today's solar eclipse trajectory

https://dojo.amcharts.com/solar-eclipses/
2•trakkstar•32m ago•0 comments

Quibble

https://en.wikipedia.org/wiki/Quibble_(plot_device)
1•soupspaces•34m ago•0 comments

Reuters Climate Monitor

https://www.reuters.com/graphics/CLIMATE-AUTOMATED/MONITOR/akpeykqqapr/
4•T-A•37m ago•0 comments

Sonnet Pricing Update

https://platform.claude.com/docs/en/about-claude/pricing
3•vhiairrassary•37m ago•1 comments

C++26: Std:Indirect

https://www.sandordargo.com/blog/2026/08/12/cpp26-indirect
1•jandeboevrie•37m ago•0 comments

PaperWM: Tiled scrollable window management for GNOME Shell

https://github.com/paperwm/PaperWM
2•theanonymousone•42m ago•0 comments

ICE to spend up to $20M on gloves that can deliver painful electric shocks

https://www.theguardian.com/us-news/2026/aug/11/ice-electric-shock-gloves
2•OutOfHere•45m ago•0 comments

Odd Comments and Doings in Unix

https://9p.io/who/dmr/odd.html
1•theanonymousone•45m ago•0 comments

Italian prime minister controversial linguistic degree (2023)

https://www.freepressjournal.in/education/italian-pm-giorgia-melonis-controversial-linguistic-deg...
1•giov4•46m ago•0 comments

Discover Random Blogs

https://randomblog.rocks/
2•Curiositry•47m ago•0 comments