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!

AI poster wins Ohio State Fair contest

https://www.ohiostatefair.com/p/get-involved/arts/poster-contest
1•AlexAplin•51s ago•0 comments

Negative social ties as risks for faster aging, inflammation, and multimorbidity

https://pmc.ncbi.nlm.nih.gov/articles/PMC12933095/
1•davidbarker•1m ago•0 comments

Mention of Synon, the real inventors of Rapid Application Development, in 1986 [pdf]

http://archive.computerhistory.org/resources/access/text/2017/06/102726714-05-05-acc.pdf
1•jambalaya8•1m ago•0 comments

Abundant empirical evidence of multilevel selection

https://www.frontiersin.org/journals/ecology-and-evolution/articles/10.3389/fevo.2026.1752597/full
1•marojejian•2m ago•0 comments

Unexpected events and prosocial behavior: the Batman effect

https://www.nature.com/articles/s44184-025-00171-5
1•davidbarker•4m ago•0 comments

A Baby Bust Is Not yet a Growth Boom

https://www.labormarketmatters.com/p/a-baby-bust-is-not-yet-a-growth-boom
1•paulpauper•7m ago•0 comments

Teaching an AI to know itself: Building a local LLM agent in D

https://blog.dlang.org/2026/06/07/teaching-an-ai-to-know-itself-building-a-local-llm-agent-in-d/
1•teleforce•8m ago•0 comments

Show HN: STB-like zero-dependency O(N) FMM gravity solver

https://github.com/nihiL7331/polesitter
1•nihiL7331•8m ago•1 comments

Trump Crypto Tie-Up Fueled Family Windfall, Investor Losses

https://www.bloomberg.com/news/articles/2026-07-30/how-a-trump-crypto-deal-enriched-the-family-wh...
2•paulpauper•8m ago•0 comments

The Computational Theory of Mind (2015)

https://plato.stanford.edu/entries/computational-mind/
1•cyanregiment•9m ago•1 comments

Reviewing the Arch User Repository with AI

https://cretezy.com/2026/aur-ai-security/
1•CraftThatBlock•9m ago•1 comments

Gauge – see where your Claude Code subscription goes

https://github.com/joey-io/gauge
1•joey-io•10m ago•0 comments

30% of certificate credentials reported on LinkedIn are now AI-related

https://www.morningstar.com/news/marketwatch/20260731180/job-seekers-can-now-spend-thousands-on-a...
1•thoughtpeddler•10m ago•0 comments

Radiation in Paduach

https://magazine.atavist.com/2026/toxic-lies-radiation-paducah
1•ezzaf•18m ago•0 comments

Tips for Landing a YC Internship?

2•cnnadozi•22m ago•0 comments

NASA Lessons Learned System

https://llis.nasa.gov/
1•ahsillyme•25m ago•1 comments

Arm's Cortex A55

https://chipsandcheese.com/p/arms-cortex-a55
2•pella•27m ago•0 comments

Californians' data deletion requests, DROP, become enforceable Aug. 1

https://www.nbcsandiego.com/nbc-7-responds-2/californians-data-deletion-requests-drop-become-enfo...
11•MilnerRoute•28m ago•0 comments

OpenAI’s amazing — but vastly oversold — new model Astra

https://garymarcus.substack.com/p/openais-amazing-but-vastly-oversold
2•champagnepapi•31m ago•0 comments

Show HN: Cl33-opLM, a 236M language model with a reversible operator bottleneck

https://cl33.t3atlas.dev/
1•MirrorEthic•33m ago•0 comments

QM: We read Y Combinator's company-wide agent runtime

https://runtimewire.com/article/inside-qm-we-read-y-combinator-s-company-wide-agent-runtime
2•ryanmerket•35m ago•0 comments

Infrared goggles that show colours

https://arstechnica.com/science/2026/07/see-the-heat-an-infrared-imaging-system-that-outputs-in-c...
2•Gaishan•37m ago•0 comments

Coldcard wallet RNG flaw likely linked to $88M Bitcoin theft

https://www.bleepingcomputer.com/news/security/coldcard-wallet-rng-flaw-likely-linked-to-88-milli...
1•sbulaev•37m ago•0 comments

Show HN: Mu – Tools for Agents

https://github.com/micro/mu
1•asim•38m ago•0 comments

Ask HN: What are you working on? (August 2026)

3•sarreph•39m ago•6 comments

Made an anime guessing game to play with friends

https://otakuguessr.com/
1•sachisroom•40m ago•0 comments

General Motors Streetcar Conspiracy

https://en.wikipedia.org/wiki/General_Motors_streetcar_conspiracy
2•jaredwiener•41m ago•0 comments

Play games with your brain signals using Octopus 16 wireless EEG device

https://www.cnx-software.com/2026/08/02/play-games-with-your-brain-signals-using-octopus-16-wirel...
1•Christiangmer•43m ago•0 comments

Tlbic: Expanded appendix on AI dialogue, plus a note on shared human wisdom

https://drive.google.com/file/d/14IKYzJavvzvbCL8GR0SkjzRmroMAaboN/view?usp=drive_link
1•michikawa59•49m ago•1 comments

What Is the Smallest (AI) Platform That Could Possibly Work?

https://buildtounderstand.org/explorations/what-is-the-smallest-ai-platform-that-could-possibly-w...
1•svenmalvik•50m ago•0 comments