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!

Mercury Is Shrinking, and Faster Than We Thought

https://www.nytimes.com/2026/09/11/science/space/mercury-shrinking-wrinkles.html
1•reaperducer•50s ago•0 comments

Swarm Scaling

https://www.tobyord.com/writing/swarm-scaling
1•gmays•4m ago•0 comments

A WIP Lego Sorter: Maybe a million pounds is possible [video]

https://www.youtube.com/watch?v=9G2R9ZcgAhA
2•Teever•4m ago•0 comments

Artificial Intelligence in Research

https://tmodrzyk.github.io/blog/2026/artificial-intelligence-in-research/
1•jeremyscanvic•5m ago•0 comments

CNN Mood 'Like a Funeral' as Paramount Acquires Warner Bros

https://variety.com/2026/tv/news/cnn-funeral-path-hazy-paramount-wins-warner-1236872113/
2•westurner•6m ago•1 comments

Show HN: Palette, a Figma plugin that turns one color into a whole UI system

https://www.figma.com/community/plugin/1682163756621093164
1•jeffmahacek•9m ago•0 comments

AUGUSTOSFACES

https://augusto.at/augustosfaces/
1•luu•10m ago•0 comments

What is the World's Loveliest Language

https://www.economist.com/graphic-detail/2024/01/11/what-is-the-worlds-loveliest-language
1•andsoitis•12m ago•0 comments

Xounds Redux and FruitMenu Redux

https://totallynotmalicious.com/software
1•rgovostes•15m ago•0 comments

Design your programming languages right (2024)

https://blog.veritates.love/design-it-right
1•birdculture•16m ago•0 comments

U.S. Government seizes 54-pound Martian meteorite sold at auction last year

https://www.nytimes.com/2026/09/20/arts/who-owns-this-chunk-of-mars-jeanine-pirro-says-america-do...
2•bookofjoe•16m ago•2 comments

A Taxonomy for Navigating the Global Landscape of AI Regulation (2025)

https://dl.acm.org/doi/10.1145/3715275.3732059
1•mooreds•18m ago•0 comments

The 38 most influential Bluesky posters

https://bsky38.com/
2•mooreds•18m ago•0 comments

Trump Renames Artificial Intelligence to Super Intelligence

https://www.washingtonpost.com/technology/2026/09/22/trump-says-hes-renaming-ai-super-intelligence/
3•f1ay•19m ago•4 comments

The Mac Mini M6 is the fastest way to.. emulate a Windows 98 Pentium II machine

https://nyaa.sh/reviews/mac-mini-m6-emulation
1•petaleverbloom•20m ago•0 comments

Show HN: A fast, offline Markdown viewer for macOS built in Swift

https://github.com/temir-dev/tims-markdown-reader
2•tim_tairov•23m ago•0 comments

About Impersonation Risk Detection

https://support.apple.com/en-us/127906
1•impish9208•23m ago•0 comments

Trump orders AI rebrand as "super intelligence"

https://www.axios.com/2026/09/22/trump-ai-super-intelligence-rebrand
5•kirab•26m ago•2 comments

Neo-Median Voter Model

https://www.betonit.ai/p/the-neo-median-voter-model
1•efavdb•27m ago•0 comments

Simple-jev by featherless AI – Turn context into clear decisions

https://simple-jev.featherless.ai/
1•Risyandi94•28m ago•1 comments

How to Escape the Algorithm

https://raahelbaig.com/entry/intentional-internet/
1•raahelb•29m ago•0 comments

What Does Childhood Trauma Have to Do with White Supremacy?

https://www.psychologytoday.com/us/blog/the-shaping-power-of-experience/202609/what-does-childhoo...
3•rendx•35m ago•2 comments

Inspiring Applications of Spin Model Checker

https://spinroot.com/spin/success.html
1•vitalnodo•36m ago•0 comments

Show HN: WavexAI – Unlimited tokens for a fixed cost

https://wavexai.dev/
3•wilsprouse•38m ago•3 comments

Show HN: Open-source Express-like HTTP server in C++

https://amsozzer.com/projects/plusweb
1•Amsozzer•42m ago•0 comments

Daily Bible Verse Wordle Game

https://lordle.net
2•andrewmcm•47m ago•2 comments

The Mystery of "Medbeds"

https://slate.com/news-and-politics/2026/09/medbeds-conspiracy-theory-donald-trump-origins.html
3•testhellohi•48m ago•0 comments

Decentralized Social Medias

https://github.com/SalamiMommy/Soshal
4•SalamiMommy•48m ago•0 comments

DigitalOcean Managed Agents

https://www.digitalocean.com/blog/managed-agents-public-preview
4•mfiguiere•50m ago•0 comments

Claude Opus 5.5 vs. GPT-6 Sol: Cost per correct task, not price per token

https://www.aipricing.guru/blog/claude-opus-5-5-vs-gpt-6-sol-pricing-2026/
1•alexmercerdev•51m ago•0 comments