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!

Our classifier scored "I have never seen a shadow figure" as a sighting

https://theanomalynetwork.com/notes/negation
1•kyleclouthier•1m ago•0 comments

MileClerk – Automatic mileage logging and IRS export (MileIQ alternative)

https://mileclerk.onepingfanventure.com/
1•huangheus•2m ago•0 comments

How to Measure Chess Position Complexity

https://chesscheaterdetector.com/blog/how-to-measure-chess-position-complexity/
1•domhudson•4m ago•0 comments

Mockup Nvidia GPUs on Linux systems

https://github.com/rnts08/Mock-nvidia-gpu-linux
2•rnts08•4m ago•1 comments

Ox Alpha Is Performing SOTA and as Well as GPT-5.6 Sol in Multi-Agent Arena

https://twitter.com/olam_labs/status/2090930116138582224
1•sensho•6m ago•1 comments

Show HN: AI driven civic dashboard for Palo Alto

https://paloaltocivic.com
1•brianhama•6m ago•0 comments

Plural Form(s) in Translation(s)

https://doc.qt.io/archives/qq/qq19-plurals.html
1•zebreus•6m ago•0 comments

Intel Hyper Threading Performance on the Xeon 678X "Granite Rapids-WS"

https://www.phoronix.com/review/intel-xeon-678x-ht
1•rbanffy•8m ago•0 comments

Show HN: EchoVault, an app that interviews you and answers as you after death

https://apps.apple.com/us/app/echovault-digital-legacy/id6762042028
1•kingbillion1•9m ago•0 comments

Apt Groups and Operations

https://docs.google.com/spreadsheets/d/1H9_xaxQHpWaa4O_Son4Gx0YOIzlcBWMsdvePFX68EKU/edit
2•gurjeet•10m ago•0 comments

Peanut Allergy? Fecal Transplant Might Be a Solution

https://www.usnews.com/news/health-news/articles/2026-08-06/peanut-allergy-fecal-transplant-might...
2•gmays•11m ago•0 comments

Linus: "A debug session from hell, enormously helped by an AI"

https://github.com/torvalds/linux/commit/818bebeb63dd6bf5f4e07e145f6cdbace520a34c
1•dnw•15m ago•0 comments

The Wi-Fi Password is 'heartcenter'

https://robertxworld.com/the-wi-fi-password-is-heartcenter/
1•devrob•16m ago•0 comments

Nvidia to Pay AI Startup Poolside a $6B License, Newcomer Says

https://www.bloomberg.com/news/articles/2026-08-20/nvidia-to-pay-ai-startup-poolside-a-6-billion-...
4•sbulaev•17m ago•0 comments

Trump, Vance and Bessent try to calm the bond market with 'alternative facts'

https://www.msn.com/en-us/money/general/trump-vance-and-bessent-try-to-calm-the-bond-market-with-...
3•petethomas•23m ago•0 comments

Hubble Solves Merger Mystery from Milky Way's Early Years Science

https://science.nasa.gov/missions/hubble/hubble-solves-merger-mystery-from-milky-ways-early-years/
1•bpierre•23m ago•0 comments

Trump's space transportation policy calls for new spaceport on federal land

https://arstechnica.com/space/2026/08/trump-admin-calls-for-more-spaceports-to-handle-surge-in-la...
2•rbanffy•25m ago•0 comments

Nayib Bukele's Content Machine Is Reshaping Latin America

https://www.newyorker.com/news/the-lede/nayib-bukeles-content-machine-is-reshaping-latin-america
2•rbanffy•27m ago•0 comments

Show HN: TUI to attribute experiment slowdown to shared-server congestion

https://lennart-rth.github.io/server-spy/
1•lennart-rth•27m ago•0 comments

HN: The Good Parts

https://danluu.com/hn-comments/
6•adletbalzhanov•31m ago•2 comments

Why it's appearing sorry message when I trying to post?

2•Edymilson•32m ago•0 comments

What We Tell AI

https://www.whatwetellai.com/
3•Funes-•33m ago•1 comments

As demand for Meta AI glasses explodes, it's harder to avoid creepy recordings

https://arstechnica.com/tech-policy/2026/08/meta-ai-glasses-may-get-creepier-and-apps-that-detect...
2•Alephinitesimal•34m ago•0 comments

FreeToken: Efficient Edge-Native Moe Serving with Bandwidth-Adaptive Execution

https://arxiv.org/abs/2608.16157
1•throwaway2027•35m ago•0 comments

The Great Convergence

https://nicholascharriere.com/blog/the-great-convergence/
1•nichochar•35m ago•0 comments

The Legends of the Canary and the Sleeping Keeper

https://github.com/svandragt/jotta-tools/blob/main/LEGENDS.md
1•pacifika•37m ago•1 comments

Why Egyptian farmers are growing crops under solar panels

https://grist.org/energy/why-egyptian-farmers-are-growing-crops-under-solar-panels/
5•higginsniggins•46m ago•0 comments

Why Elasticsearch is becoming a columnar database

https://www.elastic.co/search-labs/blog/elasticsearch-columnar-storage
2•shivanshuag•46m ago•0 comments

Poolside laguna s 2.1 vision

https://huggingface.co/numinousmuses/laguna-s-2.1-vision
1•joshkolo•47m ago•0 comments

Teen Boys Are Using Meta Glasses to Harass and Bully Girls at High Schools

https://futurism.com/artificial-intelligence/teen-boys-meta-glasses-harass-bully-girls-school
5•kendricklamar•47m ago•0 comments