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•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!

Giant cockroach statue brings new life to shrinking Nara village

https://mainichi.jp/english/articles/20260527/p2g/00m/0na/048000c
1•rawgabbit•47s ago•0 comments

Ottawa's latest deal with U.S. data giant Palantir raises warnings

https://www.thestar.com/politics/federal/ottawas-latest-deal-with-us-data-giant-palantir-raises-w...
1•01-_-•56s ago•0 comments

The Ridgeway

https://www.historic-uk.com/HistoryMagazine/DestinationsUK/The-Ridgeway/
1•mellosouls•1m ago•0 comments

Google engineer charged with using inside information to win $1.2M on Polymarket

https://www.washingtonpost.com/technology/2026/05/27/google-employee-charged-with-insider-trading...
1•1vuio0pswjnm7•1m ago•0 comments

TopRec (toprec.io) – AI screening and CRM for recruiters and hiring teams

https://toprec.io
1•girish-fokusly•7m ago•0 comments

The fog is alive: bacteria in fog droplets clear toxins from air

https://news.asu.edu/20260514-environment-and-sustainability-fog-alive-researchers-discover-bacte...
1•XzetaU8•11m ago•0 comments

Rust Will Save Linux from AI, Says Greg Kroah-Hartman

https://www.zdnet.com/article/rust-will-save-linux-from-ai-says-greg-kroah-hartman/
1•signa11•11m ago•0 comments

Amazon to Acquire Apple's Globalstar Stake in Satellite Deal

https://www.macrumors.com/2026/05/27/amazon-apple-globalstar-deal/
1•mgh2•12m ago•0 comments

Ebola exposed Americans blocked from US return

https://arstechnica.com/health/2026/05/us-walls-itself-off-from-ebola-beefed-up-travel-ban-no-cit...
1•M_bara•18m ago•1 comments

AI Is Starting to Hit Power Grid Limits Simple, Crédible, Ouvre La Discussion

https://nypost.com/2026/05/22/business/data-center-debacle-roiling-midterms-as-ai-may-have-to-pay/
1•latentframe•19m ago•0 comments

The Orchestration Tax

https://twitter.com/addyosmani/status/2059844244907696186
1•pretext•20m ago•0 comments

Amiga Networking FAQ (1994)

https://groups.google.com/g/comp.answers/c/Yfa-YSE_7H8/m/-TqlJ2sfg28J
1•doener•23m ago•0 comments

KA9Q

https://en.wikipedia.org/wiki/KA9Q
2•doener•25m ago•1 comments

Durable links between everything you work on

https://www.mjanssen.nl/linkano/index.html
1•marc0janssen•25m ago•0 comments

OpenPowerlifting – creating a public-domain archive of powerlifting history

https://www.openpowerlifting.org/
1•andre9317•26m ago•0 comments

Archive-It – Built at Archive.org

https://archive-it.org/
2•gurjeet•36m ago•0 comments

Show HN: Camera Lets You See Sound in Complete Darkness [video]

https://www.youtube.com/watch?v=1zeHfH5TzWY
1•Regina0727•40m ago•0 comments

Grid-Forming vs. Grid-Following Inverters

https://www.batterydesign.net/grid-forming-vs-grid-following-inverters/
1•leonidasrup•40m ago•0 comments

UC Berkeley Law Artificial Intelligence Policy

https://www.law.berkeley.edu/academics/registrar/academic-rules/artificial-intelligence-policy/
1•fbrusch•42m ago•0 comments

The World Cup Is a Petri Dish

https://www.bloomberg.com/news/articles/2026-05-28/how-companies-are-tracking-disease-threats-dur...
1•petethomas•42m ago•0 comments

Show HN: BetterCallClaude – Open Source AI Legal Agents for Italy

https://bettercallclaude.it/
1•ReDeiPirati•45m ago•0 comments

Emacs Bra Size Calculator

https://pulusound.fi/blog/emacs-bra-size-calculator/
1•grumblepeet•48m ago•0 comments

MTerm

https://github.com/d0x2a/mTerm
1•vad_n__•49m ago•0 comments

WP23

https://wordpress.org/news/2026/05/wp23/
1•OuterVale•52m ago•0 comments

I Found the US Nuclear Detection System in Space [video]

https://www.youtube.com/watch?v=DjLnIb41DuQ
2•noazark•54m ago•0 comments

Mini-SWE-agent scores up to 74% on SWE-bench in 100 lines of Python code

https://mini-swe-agent.com/latest/
1•fittingopposite•56m ago•0 comments

A Comprehensive Analysis of the Open-Weight Frontier (May 2026)

https://deepresearch.ninja/2026/05/Qwen3.6-27B/35B-A3B-vs-Gemma-4-vs-DeepSeek-V4-A-Comprehensive-...
1•jackalxyz•1h ago•0 comments

PeerDrop – Direct file transfer. No cloud

https://peerdrop.app/
1•janandonly•1h ago•0 comments

Perfect randomness realized for the first time

https://phys.org/news/2026-05-randomness.html
2•arunc•1h ago•0 comments

The world's carmakers are struggling to compete with China

https://www.bbc.com/news/articles/c4g8vg72z43o
1•nairteashop•1h ago•1 comments