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!

Show HN: DeskMakeover – Restyle every Windows desktop icon in one click

https://dm.xiaominglab.com/
1•yangjinming•1m ago•0 comments

US Considers Creating Finra-Like Watchdog to Vet Top AI Models

https://www.bloomberg.com/news/articles/2026-07-17/us-considers-creating-finra-like-watchdog-to-v...
1•htrp•1m ago•0 comments

Show HN: IKEA Complexity Index

https://ikea.greg.technology/
2•gregsadetsky•4m ago•0 comments

PenEcho: An Open-Source Canvas with AI

https://github.com/erickong/penecho
2•mkw5053•4m ago•1 comments

Claude, with feedback from ChatGPT, writes a history of AI

https://docs.google.com/document/d/1SuekouRgA8NrQMOJdmpfowesV4-qTQxmhOe54aTYyw8/edit?tab=t.0
2•the-mitr•8m ago•0 comments

Tell HN: Codex may have reached 10M active users; usage limits reset again

3•linzhangrun•14m ago•0 comments

Certificate Expiry for Hacker News.com

https://news.ycombinator.com/
3•aarjaneiro•14m ago•1 comments

Kimi K3 vs. Meta: Muse Spark 1.1

https://runtimewire.com/article/head-to-head-kimi-k3-vs-meta-muse-spark-1-1
2•ryanmerket•21m ago•0 comments

Japan now has human refrigerators inspired by Japanese vending machines

https://soranews24.com/2026/07/18/japan-now-has-human-refrigerators-aims-to-help-save-lives-in-su...
3•rawgabbit•25m ago•0 comments

The Server Is a Sync Relay Now: Architecting Around Client-Owned State

https://tiarebalbi.com/en/blog/local-first-server-sync-relay-architecture
2•yruzin•34m ago•0 comments

Show HN: NS6 – Find your perfect domain

https://www.ns6.com/
2•nadermx•37m ago•2 comments

ASCII Art

https://github.com/doctorfree/Asciiville
2•audreyfei•39m ago•0 comments

Regressive JPEGs

https://maurycyz.com/projects/bad_jpeg/
3•vitaut•42m ago•0 comments

Erik J. Larson, The Myth of Artificial Intelligence (2021) [pdf]

https://dn721508.ca.archive.org/0/items/the-myth-of-artificial-intelligence/TheMythofArtificialIn...
1•1vuio0pswjnm7•47m ago•4 comments

Apitegromab for lean mass preservation during tirzepatide-induced weight loss

https://www.nature.com/articles/s41591-026-04440-4
1•nateb2022•51m ago•0 comments

Reading Between Dots: Decoding Hidden Computation Across Filler Tokens (ICML'26)

https://arxiv.org/abs/2607.03502
1•vismit2000•1h ago•0 comments

Tokyo Technarch Izakaya Night: Jensen like postwar industry captain

https://www.youtube.com/watch?v=X7ffSOzcYBc
2•oliculipolicula•1h ago•0 comments

Angie – Drop-In Replacement for Nginx

https://github.com/webserver-llc/angie
1•lwhsiao•1h ago•1 comments

TypePiao-Practice sheet music reading like typing, with instant feedback

https://typepiano.org
2•WenboS•1h ago•0 comments

Extra hidden computations in LLM using dot tokens for multi-hop reasoning

https://xcancel.com/kaleybrauer/status/2078185882926846044
1•vismit2000•1h ago•0 comments

Arduino Launches Plug-and-Play Modules for Long-Range Sensor Projects

https://www.allaboutcircuits.com/news/arduino-launches-plug-and-play-modules-for-long-range-senso...
1•WaitWaitWha•1h ago•0 comments

"Free Range" Offline and On

https://petergray.substack.com/p/121-free-range-offline-and-on
1•Ariarule•1h ago•0 comments

Ask HN: Are We Getting Dumber?

2•lyfeninja•1h ago•1 comments

Some surveillance I noticed today

https://nonogra.ph/some-surveillance-i-noticed-today-07-18-2026
1•arkhiver•1h ago•0 comments

A Test Isn't Racist. Assumptions About Black Kids Can Be

https://www.nytimes.com/2026/07/16/opinion/new-york-high-school-test-racism.html
3•apparent•1h ago•3 comments

StartupForge AI – Turn Any Business Idea into a Startup Blueprint

https://b07ada739af0b4a7c99daf84e96b066a.ctonew.app/
1•kvreal•1h ago•0 comments

Cataloging Growth: A Re-Evaluation of 1900–1990 [pdf]

https://veronicabp.github.io/website/VBP_BHW_CostOfLiving.pdf
1•alphabetatango•1h ago•0 comments

Ultraclose 2029 flyby of asteroid Apophis

https://www.livescience.com/space/asteroids/shared-cosmic-experience-potentially-hazardous-astero...
2•jinjin2•1h ago•0 comments

Show HN: Spiral – continuous-thrust orbit-transfer design in the browser

https://spiral.erikevenson.net
1•eevenson•1h ago•0 comments

How Websites Detect Ban Evasion-why creating new accounts isn't enough to escape

https://medium.com/@thesuperrepemail/how-websites-detect-ban-evasion-and-why-creating-a-new-accou...
2•mssblogs•1h ago•0 comments