frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Would you believe try-catch-finally works in plain old C?

4•mf_taria•6mo 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•6mo ago
Finally!

Tech elites are starting their own for-profit cities

https://www.ft.com/content/b127ee7a-5ac4-4730-a395-c9f9619615c7
1•mhb•49s ago•0 comments

Let users zoom in on mobile devices

https://idiallo.com/blog/let-user-zoom-in-on-mobile
1•foxfired•1m ago•0 comments

Ventoy 1.1.08 Adds Support for FreeBSD 15.0

https://linuxiac.com/ventoy-1-1-08-adds-support-for-freebsd-15-0/
1•doener•2m ago•0 comments

Show HN: Frontier AI Safety Lab Simulator Game

https://pandora-problem.vercel.app/
1•raghavtoshniwal•3m ago•0 comments

SETI Post-Detection Protocols: Progress Towards a New Version

https://arxiv.org/abs/2510.14506
1•belter•4m ago•0 comments

Summit to tell story behind the deal to restart SC's failed nuclear reactors

https://scdailygazette.com/2025/12/04/summit-to-tell-story-behind-the-deal-to-restart-scs-failed-...
1•mpweiher•6m ago•0 comments

Pickling Compute

https://blog.val.town/pickling
1•stevekrouse•6m ago•0 comments

Continuous Architectural Memory

https://github.com/blas0/Severance
1•blas0•7m ago•1 comments

Bicameral Right to Read Act Would Boost Federal Investment in Literacy Programs

https://www.ala.org/news/2025/12/bicameral-right-read-act-would-boost-federal-investment-literacy...
1•hn_acker•7m ago•0 comments

Researcher finds Chinese KVM has undocumented microphone,communicates with China

https://www.tomshardware.com/tech-industry/cyber-security/researcher-finds-undocumented-microphon...
3•mohi-kalantari•7m ago•2 comments

Paramount hostile bid for Warner Bros., challenging offer by Netflix

https://apnews.com/article/paramount-warner-bros-discovery-netflix-trump-347540ae7a4f83fced833fe8...
2•josephwegner•9m ago•1 comments

A 400-Year-Old Ring That Unfolds to Track the Movements of the Heavens

https://www.openculture.com/2025/11/a-400-year-old-ring-that-unfolds-to-track-movements-of-the-he...
2•PaulHoule•9m ago•0 comments

Valknut: Code Intelligence for Agents

https://sibylline.dev/products/valknut/
2•CuriouslyC•9m ago•0 comments

Gpui-component v0.5.0 released: dividers, more charts, settings component

https://github.com/longbridge/gpui-component/releases/tag/v0.5.0
2•klaussilveira•9m ago•0 comments

Thaura – Your Ethical AI Companion – Thaura

https://thaura.ai/home
2•lladnar•10m ago•0 comments

Bird-of-paradise inspires darkest fabric ever made

https://news.cornell.edu/stories/2025/12/bird-paradise-inspires-darkest-fabric-ever-made
2•belter•10m ago•0 comments

A Bidding War for Warner Bros

https://www.bloomberg.com/opinion/newsletters/2025-12-08/a-bidding-war-for-warner-bros
2•feross•10m ago•0 comments

Show HN: I built a bookmarks assistant that sends updates on your saved links

https://tryeyeball.com/
2•quinto_quarto•11m ago•0 comments

How Did Microsoft Fumble the AI Ball So Badly?

https://schneidenba.ch/microsoft-fumbled-the-ai-ball/
3•schneidenbach•11m ago•0 comments

Eddie Slovik

https://en.wikipedia.org/wiki/Eddie_Slovik
5•jethronethro•12m ago•0 comments

The Missing Manual for Hybrid Search in PostgreSQL

https://www.paradedb.com/blog/hybrid-search-in-postgresql-the-missing-manual
2•jamesgresql•12m ago•1 comments

Las Vegas is in trouble. Everyone has a theory about why. Now I do, too

https://slate.com/business/2025/11/las-vegas-travel-sphere-hotel-donald-trump.html
2•walterbell•13m ago•0 comments

The Risk of Being Kidnapped by a Stranger?

https://letgrow.org/crime-statistics/
1•pcaharrier•13m ago•0 comments

Golang's Big Miss on Memory Arenas

https://avittig.medium.com/golangs-big-miss-on-memory-arenas-f1375524cc90
1•birdculture•14m ago•0 comments

Which of my HN comments get upvoted?

2•sema4hacker•17m ago•2 comments

THEA1200 is a full-size working Amiga replica

https://www.theregister.com/2025/11/14/thea1200_fullsize_amiga_replica/
2•rbanffy•17m ago•0 comments

Commento.io Has Been Down

https://commento.io
2•hakunin•18m ago•2 comments

Trials Avoid High Risk Patients and Underestimate Drug Harms

https://www.nber.org/papers/w34534
1•bikenaga•21m ago•1 comments

Cybercrims arrested, accused of plotting 'violence-as-a-service'

https://www.theregister.com/2025/12/08/european_cops_arrest_193/
1•Bender•21m ago•0 comments

IBM Z17 Time Synchronization Resiliency Enhancements – Planet Mainframe

https://planetmainframe.com/2025/10/ibm-z17-time-synchronization-resiliency-enhancements/
3•rbanffy•21m ago•1 comments