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!

Attribution-Based Control in AI Systems

https://attribution-based-control.ai/
1•handfuloflight•2m ago•0 comments

Why WordPress Is Still the #1 CMS in 2026

https://wpaudit.cc/blog/why-wordpress-is-the-worlds-number-one-cms-2026/
1•mysticmetal•4m ago•0 comments

Apple M5 Ultra Geekbench

https://browser.geekbench.com/v7/cpu/354092
2•7777777phil•7m ago•0 comments

Roundtables: Could AI kill us all?

https://www.technologyreview.com/2026/09/15/1143936/roundtables-will-ai-really-kill-us-all/
1•joozio•8m ago•0 comments

Ask HN: How do you get coding agents to clean up after changing direction?

2•BearBest•11m ago•0 comments

DFOS is an open protocol for identities, signed records, delegated permissions

https://protocol.dfos.com
1•sigalor•12m ago•0 comments

Klaus Programmieren

https://klausprogrammieren.com/
1•microsoftedging•13m ago•0 comments

Due to DMA, Siri AI delayed in EU for iOS 27 and iPadOS 27

https://www.apple.com/newsroom/2026/06/due-to-dma-siri-ai-delayed-in-eu-for-ios-27-and-ipados-27/
3•isolli•16m ago•0 comments

Zelensky's strategy is national suicide

https://spectator.com/article/zelenskys-strategy-is-national-suicide/
2•sedan_baklazhan•16m ago•0 comments

Mozill's Built-In VPN in Firefox

1•anidsiam•17m ago•0 comments

Bootstrap from Twitter

https://getbootstrap.com/2.0.2/
2•auraham•21m ago•0 comments

GPT Image 2.5 Prompts

https://github.com/VulcanEon/awesome-gpt-image-2.5-prompts
1•aurenvale•22m ago•0 comments

How Streaks Work?

https://sheets.works/data-viz/streaks
1•lordbubbles•23m ago•0 comments

How meaning is fundamentally altered by sonic environments

https://scifi.danieldeboulay.com/
1•deboulaymxf•24m ago•0 comments

Atria Dawn Preview: an AI model trained end-to-end on verifiable research

https://atria-dawn.atominnolab.com/
2•naktinis•27m ago•0 comments

Show HN: Nerdulator – put something in, get everything out (no AI)

https://nerdulator.com
1•newlifehelp•32m ago•0 comments

EchoMuse – Alexa replacement and controller for Echo Dot 2nd Generation device

https://github.com/wilbowes/EchoMuse
1•tehlike•32m ago•0 comments

The Controversial Linear No-Threshold Model

https://jnm.snmjournals.org/content/58/1/7
1•leonidasrup•35m ago•0 comments

Amazon says cloud infrastructure in Bahrain, UAE 'beyond saving'

https://thecradle.co/articles-id/39961
3•slowin•36m ago•0 comments

Housekeeping and Manpower Outsourcing Services

1•tasmiyai•36m ago•0 comments

My HP EliteDesk 800 G1 Decrypts Bitlocker

https://postimg.cc/0rj2vW64
1•sehw•37m ago•2 comments

We don't need AI regulation – leave safety to us, Nvidia's Jensen Huang says

https://techcrunch.com/2026/09/15/we-dont-need-ai-regulation-leave-safety-to-us-nvidias-jensen-hu...
3•girish_r•43m ago•2 comments

The Customizable Select

https://utilitybend.com/blog/the-customizable-select-part-one-history-trickery-and-styling-the-se...
1•nesk_•47m ago•0 comments

Schadenfreude

https://en.wikipedia.org/wiki/Schadenfreude
1•vismit2000•53m ago•1 comments

The Unwilding of Patagonia's Pollinators

https://biographic.com/the-unwilding-of-patagonias-pollinators/
1•Tomte•54m ago•0 comments

Ask HN: Are requests/demands coming from AI companies for regulation genuine?

3•atakan_gurkan•54m ago•3 comments

Show HN: MinMAX Sort – A Stable Bidirectional Selection Sort Family Algorithm

2•jodenghog•1h ago•1 comments

Prefill a 284B model on Nvidia. Decode it on Apple Silicon. Over plain 10GbE

https://github.com/chadhurley25075-png/pd-bridge
2•jnaina•1h ago•1 comments

MartyPC – A Cycle-Accurate IBM PC/XT Emulator

https://github.com/dbalsom/martypc
3•yitchelle•1h ago•0 comments

We are all Product Engineers now

https://seldo.com/posts/we-are-all-product-engineers-now/
3•ColinEberhardt•1h ago•1 comments