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!

Book Corners

https://www.bookcorners.org/
1•bookofjoe•1m ago•0 comments

Dependabot version updates introduce default package cooldown

https://github.blog/changelog/2026-07-14-dependabot-version-updates-introduce-default-package-coo...
1•woodruffw•1m ago•0 comments

Tkrzw: Tokyo/Kyoto Cabinet Successor

https://dbmx.net/tkrzw/
1•godisdad•1m ago•1 comments

Rad: The relational database, redesigned. OLTP backed by durable object storage

https://www.radengine.dev
1•jerlendds•7m ago•1 comments

Castle building for beginners: marketing yourself

https://bitfieldconsulting.com/posts/castle-building
1•dxs•8m ago•0 comments

After wearing the Pebble Time 2 for two weeks, I'll never buy another smartwatch

https://www.androidauthority.com/pebble-time-2-smartwatch-hands-on-3680077/
4•jethronethro•10m ago•0 comments

Same model, same Q4_K_M label: 5.02, 5.07 and 5.27 bits per weight

https://github.com/logxio/picchio
3•logickkk1•11m ago•0 comments

Algorithmic Composition as a Web Shop

https://monictheory.com
1•song_synth•14m ago•0 comments

Git rebase -I is not that scary

https://cachebag.sh/journal/interactive-rebasing/
1•birdculture•14m ago•0 comments

Command: Plug another slop faucet · mpv-player/mpv a3d4b59

https://github.com/mpv-player/mpv/commit/a3d4b5919771a0ae351b80eb266c79681ee529b2
1•cratermoon•16m ago•0 comments

How AI Is Changing How We Think, Talk and Relate to Each Other

https://news.northeastern.edu/2026/07/01/ai-mental-health-impact-research/
1•rbanffy•17m ago•0 comments

Duplicate Beverage Event – Story about time travel, magic and AI

https://github.com/skorotkiewicz/duplicate-beverage-event
1•modinfo•17m ago•1 comments

Starlink 'Gen 3' to Span 100K Satellites, for Gigabit Broadband but Also AI

https://uk.pcmag.com/networking/166041/starlink-gen-3-to-span-100k-satellites-for-gigabit-broadba...
1•rbanffy•17m ago•1 comments

Apple commits $30B to Broadcom for U.S. chipmaking push

https://www.cnbc.com/2026/07/08/apple-commits-30-billion-to-broadcom-for-us-chipmaking-push.html
1•rbanffy•18m ago•1 comments

Scale Model of San Francisco Finds a Home at Long Last

https://www.inglesidelight.com/san-francisco-scale-model-art-water/
2•gnabgib•19m ago•0 comments

2014: DeepMind reportedly sold to Google on conditions: no military use

https://bsky.app/profile/blackhc.bsky.social/post/3mqm7vfupjc2g
2•doener•20m ago•0 comments

Inside America’s Shoplifting Lab

https://slate.com/life/2026/07/shoplifting-walmart-target-amazon-retail-florida.html
1•thm•20m ago•0 comments

Astronomers detect sugar in interstellar space for the first time

https://www.rnz.co.nz/news/world/721391/astronomers-detect-sugar-in-interstellar-space-for-the-fi...
3•billybuckwheat•22m ago•1 comments

Show HN: Open-Source Puppeteer for After Effects

https://github.com/Arman-Luthra/aftr/blob/main/README.md
1•ArmanLuthra•23m ago•0 comments

How to pack ternary numbers in 8-bit bytes

https://compilade.net/blog/ternary-packing
1•JoshTriplett•23m ago•1 comments

Christianity grapples with the rise of an AI Jesus

https://www.salon.com/2025/12/27/christianity-grapples-with-the-rise-of-an-ai-jesus/
1•antondd•24m ago•0 comments

Trump's Ex-Campaign Manager Is Running an Israeli Influence Operation

https://time.com/article/2026/07/13/brad-parscale-israel-influence-operation/
1•slowin•25m ago•0 comments

Remotely Scan TouchScreen Inputs with EM

https://arxiv.org/abs/2512.11484
2•TEHERET•26m ago•0 comments

Microsoft's AI Buildout Sent Carbon Emissions Up 25% Last Year

https://www.forbes.com/sites/tylerroush/2026/07/09/microsofts-ai-buildout-sent-carbon-emissions-u...
1•cdrnsf•26m ago•0 comments

OpenAI's First Device Will Be Moveable, Screenless Speaker Built as AI Companion

https://www.bloomberg.com/news/articles/2026-07-14/openai-s-first-device-will-be-moveable-screenl...
3•mfiguiere•28m ago•3 comments

Prompt Used for "A Proof of the Cycle Double Cover Conjecture" [pdf]

https://cdn.openai.com/pdf/04d1d1e4-bc75-476a-97cf-49055cd98d31/cdc_prompt.pdf
1•amrrs•29m ago•0 comments

Common misconceptions about Homer's Odyssey [video]

https://www.youtube.com/watch?v=wPuEJscI-hA
1•mvo•30m ago•1 comments

AIDE²: The First Evidence of Recursive Self-Improvement

https://www.weco.ai/blog/first-evidence-of-recursive-self-improvement
3•babelfish•32m ago•0 comments

Samsung Is Said in Early Discussions on Potential US Share Sale

https://www.bloomberg.com/news/articles/2026-07-14/samsung-is-said-in-early-discussions-on-potent...
1•TMWNN•32m ago•0 comments

Show HN: A dashboard for tracking SK Hynix price gaps across exchanges

https://jaxzxu.com/skhynix
1•jaxzxu•33m ago•0 comments