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!

Show HN: I built a tool to help find profitable creator niches

https://www.clurly.com
1•marksaver•49s ago•0 comments

Bionic Limbs

https://www.bloomberg.com/news/audio/2025-11-20/bloomberg-businessweek-daily-bionic-limbs-podcast
1•I_Nidhi•5m ago•0 comments

NHS Open Source Policies – All Removed [video]

https://youtube.com/watch?v=dQqFNP39sKM
1•jesprenj•5m ago•1 comments

Bollock to GitHub

https://samthursfield.wordpress.com/2025/11/27/bollocks-to-github/
1•icar•7m ago•0 comments

Stripe had enough of fake 10k MRR posts

https://twitter.com/stripe/status/1993382198851100733
2•marcelbundle•7m ago•0 comments

Show HN: Unified memory across all LLMs

https://hiperyon.com/
1•Ambroise75•8m ago•0 comments

Click to call no longer working (tell:) (on desktop)

https://support.google.com/chrome/thread/214777576/click-to-call-no-longer-working?hl=en
1•chagaif•13m ago•1 comments

Old PC

https://old-pc-x.vercel.app
2•Areibman•17m ago•0 comments

URL in C Puzzle

https://susam.net/url-in-c.html
1•birdculture•24m ago•0 comments

Finding the grain of sand in a heap of Salt

https://blog.cloudflare.com/finding-the-grain-of-sand-in-a-heap-of-salt/
1•privacyops•26m ago•0 comments

Is psql's scripting language Turing complete? Or: Fibonacci in psql

https://www.enterprisedb.com/blog/psqls-scripting-language-turing-complete-or-fibonacci-psql
2•ingve•26m ago•0 comments

DNS Firewalling with MISP and Technitium DNS Server

https://zaferbalkan.com/technitium-misp/
2•feldrim•28m ago•1 comments

Ray Marching Soft Shadows in 2D

https://www.rykap.com/2020/09/23/distance-fields/
5•memalign•36m ago•0 comments

Git commit-based annual performance reviewer [video]

https://youtube.com/shorts/9OpklP_TtCY
1•javaskrrt•36m ago•0 comments

You Are Insignificant. That's a Good Thing

https://www.joanwestenberg.com/p/you-are-insignificant-that-s-a-good-thing
4•gpi•41m ago•0 comments

The High Price of Environmental Responsibility

https://rodgercuddington.substack.com/p/the-high-price-of-environmental-responsibility
2•freespirt•43m ago•1 comments

An LED panel that shows the aviation around you

https://github.com/AxisNimble/TheFlightWall_OSS
1•yzydserd•44m ago•0 comments

Artificial muscles, or Robotics 2.0 (RU) (Anthropomorphic robotics)

https://habr.com/ru/articles/969722/
1•chromoblob•47m ago•1 comments

iPhone Fold Will Be Creaseless and Cost $2,400, Report Says

https://www.cnet.com/tech/mobile/iphone-fold-will-be-creaseless-and-cost-2400-report-says/
1•thunderbong•47m ago•0 comments

Generative UI: A rich, custom, visual interactive user experience for any prompt

https://research.google/blog/generative-ui-a-rich-custom-visual-interactive-user-experience-for-a...
1•pramodbiligiri•47m ago•0 comments

Ask HN: Ever done large contract work?

3•ripped_britches•48m ago•1 comments

Meditation as Wakeful Relaxation: Unclenching Smooth Muscle

https://psychotechnology.substack.com/p/meditation-as-wakeful-relaxation
1•eatitraw•48m ago•0 comments

Turn Claude threads into Notion-grade assets you can trust

https://claudeai2notion.aluo.app
1•chatgpt2notion•52m ago•0 comments

Immigrations: Gestiona Tu Visa LLC exposed 67GB of immigrant's data

https://medium.com/@newschu.substack.com/immigrations-gestiona-tu-visa-llc-exposed-67gb-of-immigr...
1•khyy_•57m ago•0 comments

A Deep Dive into MCP and the Future of AI Tooling

https://a16z.com/a-deep-dive-into-mcp-and-the-future-of-ai-tooling/
2•stosssik•57m ago•0 comments

Claude Is Broken in Armenian

https://twitter.com/dyushag/status/1993143599286886525
1•ag8•57m ago•0 comments

California prosecutors used AI to file inaccurate motion in criminal case

https://www.theguardian.com/us-news/2025/nov/26/prosecutor-ai-inaccurate-motion
2•trusche•1h ago•0 comments

The Emoji Layer

https://github.com/jrecyclebin/emojilayer
1•jrecyclebin•1h ago•0 comments

Palo Alto Networks to Acquire Chronosphere (Creators of M3DB)

https://www.paloaltonetworks.com/company/press/2025/palo-alto-networks-to-acquire-chronosphere--n...
3•leo_e•1h ago•0 comments

Mixpanel Security Breach

https://mixpanel.com/blog/sms-security-incident/
20•jaredwiener•1h ago•6 comments