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!

Show HN: Tinbo – yet another (modern) link shortener

https://tinbo.co/
1•gothy•30s ago•0 comments

The AI megatrade's mounting portfolio concentration risk problem

https://www.ft.com/content/2f4d39dd-dee8-4620-996d-3fe978b7522b
1•petethomas•2m ago•0 comments

Orienting to 1 year AGI timelines

https://www.lesswrong.com/posts/biFHYdJnMSCmW9Xou/orienting-to-1-year-agi-timelines
1•gmays•2m ago•0 comments

No AI Slop: A Manifesto

https://www.slopmanifesto.com/
2•bankombinator•3m ago•0 comments

Show HN: College Basketball Stats and Predictions

https://fijimf.com/
1•JackFr•7m ago•0 comments

Most affairs don't matter much. Nvidia Jensen's blunder will rock the world

https://www.theregister.com/columnists/2026/11/13/most-affairs-dont-matter-except-to-the-people-i...
2•CrankyBear•8m ago•0 comments

Ghost Writing: On AI Before AI

https://lithub.com/ghost-writing-on-ai-before-ai/
2•CGMthrowaway•8m ago•0 comments

ArchitectureKit 1.0 for Rust is There

https://github.com/thenativeweb/architecturekit-rust
2•goloroden•8m ago•0 comments

We Are Not Competing with Other Consultancies Anymore

https://www.mecanoconsulting.com/article?slug=not-competing-with-consultancies-anymore
2•Hitech-Redneck•9m ago•0 comments

Someone's Impersonating This Blog

https://mattbee.mataroa.blog/p/someones-impersonating-this-blog/
4•speckx•14m ago•0 comments

Ed Zitron on CNN's Laura Coates Live 11/12/26

https://www.youtube.com/watch?v=Mn2HhRx0NgY
2•Betelbuddy•16m ago•0 comments

Resend – Migrating our email API to go

https://resend.com/blog/migrating-our-email-api-to-go
4•mateus-resende•20m ago•0 comments

Everyone is learning the wrong lesson from Hugging Face

https://blog.karthiktadepalli.com/p/hugging-face
2•gmays•20m ago•0 comments

Bessent: Commerce did not add Megaspeed to export control list

https://www.youtube.com/watch?v=F4qT2hRAcdE
2•Betelbuddy•21m ago•0 comments

Waiting a little saves us over 50% on inference

https://tesseracted.com/the-price-of-patience/
2•kkm•21m ago•0 comments

Jax Examples for Beginners (Dive into ML Fundamentals)

https://github.com/aymericdamien/JAX-Examples
2•aymericdamien•22m ago•0 comments

30x more efficient Diffusion language model for Translation

https://dlmtranslate.com/
2•anuarsh•22m ago•0 comments

AMD Launches Zen 6 Venice Based Epyc CPUs

https://www.semiaccurate.com/2026/11/12/amd-launches-zen-6-venice-based-epyc-cpus/
2•lumpa•23m ago•0 comments

Link Previews and You

https://sable.moe/en/blog/link-previews-and-you/
2•dverlaeckt80•24m ago•0 comments

Microsoft outage 'stark reminder' of how much we rely on tech

https://www.bbc.com/news/articles/cxzd9171m51qo
5•saikatsg•25m ago•2 comments

Mozilla leaves Solo website owners to go it alone as hosting shuts down

https://www.theregister.com/software/2026/11/13/mozilla-leaves-solo-website-owners-to-go-it-alone...
6•1317•25m ago•0 comments

Show HN: The Price of Patience

https://github.com/konarkmodi/pi-doubleword
2•kkm•26m ago•0 comments

Show HN: Hotaisle-Console

https://hotaisle.xyz/blog/introducing-hotaisle-console
2•latchkey•27m ago•0 comments

Technology as a Search Problem

https://www.construction-physics.com/p/technology-as-a-search-problem
2•dverlaeckt80•27m ago•0 comments

How the brain rapidly learns to interpret ambiguous images

https://medicalxpress.com/news/2026-11-brain-rapidly-ambiguous-images.html
2•saikatsg•29m ago•0 comments

Found: A protein that drives ageing without unleashing inflammation

https://www.nature.com/articles/d41586-026-03638-3
2•gumby•29m ago•0 comments

Perplexity Decider v1.3: Training, eval, and use cases

https://www.perplexity.ai/hub/blog/perplexity-decider
5•gmays•30m ago•0 comments

Some Projects Need to Fail

https://yusufaytas.com/some-projects-need-to-fail
7•yusufaytas•31m ago•0 comments

MacPlusDancer – macOS Version of the Microsoft Plus Dancers from 2003

https://github.com/samhenrigold/MacPlusDancer
2•gregsadetsky•33m ago•0 comments

This space used to contain a nuclear reactor but it is becoming a space lab

https://mastodon.social/@UP8/117598191421119710
2•PaulHoule•35m ago•0 comments