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!

ArkDisk – Managed Nextcloud on owned EU bare-metal with per-user ZFS snapshots

https://arkdisk.com/
1•ChristopherArk•3m ago•0 comments

Chameleon Ultra: a flashdrive sized NFC toolkit

https://github.com/RfidResearchGroup/ChameleonUltra
2•elisaado•5m ago•0 comments

Domination Without Hegemony and the Limits of US World Power

https://www.researchgate.net/profile/Corey-Payne/publication/363778292_Domination_Without_Hegemon...
2•hackandthink•6m ago•1 comments

I indexed 669 GB of my GoPro videos using my M1 Max computer and local ML models

3•iliashad•9m ago•0 comments

2026 Council Manifesto

https://blogs.gentoo.org/mgorny/2026/06/11/2026-council-manifesto/
1•jruohonen•9m ago•0 comments

Measles surge in Utah sparks fears US could undo decades of progress

https://www.dailymail.com/news/article-15897903/measles-surge-utah-US-elimination-status.html
1•Bender•10m ago•0 comments

Pouta Forms, open-source alternative to TypeForm

https://github.com/pouta-cms/form
1•mohanjith•10m ago•0 comments

Parsing JSON at compile time with C++26 static reflection

https://lemire.me/blog/2026/06/14/parsing-json-at-compile-time-with-c26-static-reflection/
1•chmaynard•11m ago•0 comments

Hill charts with MCP server and give visibility

https://hillch.art/en
1•Jeronattend•12m ago•0 comments

Amazon says its datacenters used about 2.5B gallons of water last year

https://www.theregister.com/on-prem/2026/06/12/amazon-owns-up-to-using-25bn-gallons-of-h2o-in-its...
1•tcp_handshaker•13m ago•1 comments

Hands-On with Flink: Calling LLMs from Flink

https://medium.com/@katyagorshkova/hands-on-with-flink-part-6-calling-llms-from-flink-e5cc7e5f0440
1•tanelpoder•14m ago•0 comments

Ponytail – make your AI agent think like the laziest senior dev in the room

https://github.com/DietrichGebert/ponytail
2•mellosouls•15m ago•0 comments

SpaceX Forecasted to Burn $350B by 2030

https://www.youtube.com/watch?v=N5jnH9eH_Vg
1•tcp_handshaker•17m ago•1 comments

Elon Musk drifted from Larry Page 10+yrs ago, companies now closer than ever

https://www.cnbc.com/2026/06/14/elon-musk-drifted-from-larry-page-but-spacex-google-closer-than-e...
1•1vuio0pswjnm7•18m ago•0 comments

Splunk Enterprise Vulnerabilities Allow Unauthenticated File Operations

https://orca.security/resources/blog/cve-2026-20253-splunk-enterprise-rce-unauthenticated-file-op...
1•hliyan•20m ago•0 comments

N-Tier Services and Systems Complexity

https://yegge.ai/listings/services-and-complexity
1•bobbiechen•20m ago•0 comments

How much of Elon Musk's wealth comes from government help? Virtually all of it

https://www.rnz.co.nz/news/world/598157/how-much-of-elon-musk-s-wealth-comes-from-government-help...
10•totetsu•22m ago•4 comments

Where Wizards Stay Up Late – A Book Review (2024)

https://www.neilobrien.co.uk/p/where-wizards-stay-up-late
2•initramfs•23m ago•0 comments

Story of human evolution rewritten after 1.8M-year-old cave discovery

https://www.dailymail.com/sciencetech/article-15886169/human-evolution-fire-wonderwerk-cave-disco...
1•Bender•25m ago•0 comments

Starmer to announce social media curfew and chatbot ban for teenagers

https://www.thetimes.com/uk/politics/article/social-media-ban-keir-starmer-qcmskxc5z
3•poisonfountain•26m ago•0 comments

Perlisisms

https://www.cs.yale.edu/homes/perlis-alan/quotes.html
3•tosh•26m ago•1 comments

Cloud-based LLM gold rush is ending

https://automato.substack.com/p/apple-wwdc-and-the-fable-5-embargo
11•andrewstetsenko•27m ago•0 comments

Podcast: Book Interview: Signals and Levers • Elisabeth Hendrickson, Joel Tosi [video]

https://www.youtube.com/watch?v=8tNtZMm3Hyc&list=PLEx5khR4g7PJbSLmADahf0LOpTLifiCra
1•chhum•29m ago•0 comments

Moats Need Models

https://twitter.com/sahar__zadeh/status/2064759511253176398
1•gmays•30m ago•0 comments

I built InstaTakker – a portable desktop Instagram workflow manager for Windows

https://github.com/issaghostlife/instatakker-app
1•issaghostlife•31m ago•1 comments

UK set to announce social media ban for under-16s

https://www.manchestereveningnews.co.uk/news/uk-news/uk-set-announce-social-media-34119132
69•beejiu•32m ago•56 comments

Ask HN: Is Coding Solved?

2•champagnepapi•32m ago•4 comments

Signal says UK plan to scan devices for nude images 'endangers us all'

https://www.theregister.com/security/2026/06/09/signal-uks-child-nude-block-threat-wont-protect-c...
6•Bender•33m ago•0 comments

Show HN: Öcha – A minimalist, Kindle-style RSS and newsletter reader

https://readocha.com/
3•pavn•33m ago•0 comments

US Army picks out Vampire to fill a gap in its layered drone defenses

https://www.theregister.com/offbeat/2026/06/14/us-army-picks-out-vampire-to-fill-a-gap-in-its-lay...
1•Bender•33m ago•0 comments