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!

Altitude adaptation in Tibetans due to introgression of Denisovan-like DNA [pdf]

https://www.nature.com/articles/nature13408
1•thunderbong•2m ago•0 comments

Aurora DSQL: Scalable, Multi-Region OLTP

http://muratbuffalo.blogspot.com/2026/07/aurora-dsql-scalable-multi-region-oltp.html
1•zdw•2m ago•0 comments

We (Agents) Build Software for Humans

https://raft.build/resources/blog/how-a-feature-ships-for-raft-on-raft/
1•tygg•3m ago•0 comments

Meta faces higher borrowing costs in latest $12B data centre financing

https://www.ft.com/content/822628c5-4f9c-47db-bd27-f3ad7f841700
2•mfiguiere•3m ago•0 comments

I learned two pointers after confusing them for months

https://leetcopilot.dev/blog/two-pointers-intuition-for-leetcode-beginners-step-by-step
1•alexwang24•5m ago•0 comments

One Reference for 3000 APIs

https://github.com/mindcloud-inc/universal-api-reference
1•frabjoused•5m ago•0 comments

Tanks Mayhem is back: 16 years later, in the browser

https://www.atomic14.com/2026/07/24/tanks-mayhem-is-back
1•iamflimflam1•10m ago•0 comments

Show HN: Twigg – open-source big-tech-like version control and software forge

https://github.com/twigg-vc/monorepo
3•andrebianchessi•13m ago•0 comments

Accountability

https://addisoncrump.info/research/on-accountability/
1•birdculture•14m ago•0 comments

Download Everything

https://blog.dasrecht.net/2026/07/20/download-literally-everything/
1•speckx•15m ago•0 comments

Is Kimi K3 Better Than Opus? It Was Until Opus 5

https://playcode.io/blog/macbook-svg-benchmark
1•ianberdin•15m ago•1 comments

Oracle VM VirtualBox Bug Discovered by AI: CVE-2026-60161

https://octane.beehiiv.com/
2•runeks•15m ago•1 comments

Postgres LISTEN/NOTIFY actually scales

https://www.dbos.dev/blog/postgres-listen-notify-scalability
15•KraftyOne•17m ago•0 comments

I wanted a clock that never needed setting. Things escalated

https://arstechnica.com/gadgets/2026/07/i-wanted-a-clock-that-never-needed-setting-things-escalated/
1•Jtsummers•18m ago•0 comments

How Spotify Studio Works

https://labs.spotify.com/studio/how-it-works
1•jlaneve•19m ago•0 comments

Watch Fable 5 play Zork and read it's mind

https://zork.arobase.co/
1•posabsolute•21m ago•0 comments

Australia's huntsman fastest spider recorded in new study

https://www.abc.net.au/news/science/2026-07-10/huntsman-speed-study-science-fastest/106900894
1•speckx•21m ago•0 comments

The Century of the Self (2002) [playlist] [video]

https://www.youtube.com/playlist?list=PLktPdpPFKHfoXRfTPOwyR8SG8EHLWOSj6
1•gurjeet•23m ago•0 comments

Embedding HTML+JS in an Imgur Image

https://github.com/Kaj2T/SmartGif
2•ktwee•24m ago•0 comments

3D world with collision detection in CSS

https://garethheyes.co.uk/
1•hackvertor•26m ago•0 comments

The pope's prayer app has been leaking its users' info for months

https://san.com/cc/the-popes-prayer-app-has-been-leaking-its-users-info-for-months/
1•harambae•26m ago•0 comments

Walmart and Target are watching you. I saw the "lab" for myself

https://slate.com/life/2026/07/shoplifting-walmart-target-amazon-retail-florida.html
2•pavel_lishin•28m ago•1 comments

Accessibility Rant: Reader Mode

https://unattributed.cc/accessibility-rant-reader-mode
1•speckx•29m ago•0 comments

Shackle: A pre-execution ALLOW/DENY/HITL gate for AI agents (open source)

https://github.com/Fame510/SHACKLE
1•SHACKLE-PRO-•29m ago•0 comments

Reddit's website uses DRM for fingerprinting (2020)

https://iter.ca/post/reddit-whiteops/
1•downbad_•30m ago•0 comments

Uncle Bob does not read the code anymore

https://twitter.com/unclebobmartin/status/2080257779395154409
1•timedude•32m ago•2 comments

/

3•reliz•33m ago•1 comments

Ask HN: What's the best AI coding tool today?

2•FrenchDevRemote•34m ago•1 comments

Computational Caustics

https://www.epfl.ch/labs/gcm/research-projects/computational-caustics/
3•mhb•34m ago•0 comments

Trump says US to launch EU probe over 'illegal' Google fine

https://www.reuters.com/business/trump-says-us-launch-eu-probe-over-illegal-google-fine-2026-07-24/
5•TechTechTech•35m ago•1 comments