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!

A system prompt to get AI to stop pretending to be human

https://swiftrocks.com/a-system-prompt-to-get-ai-to-stop-pretending-to-be-human
1•speckx•2m ago•1 comments

Silicon Valley Is Completely Divided over Chinese AI

https://www.wired.com/story/silicon-valley-is-completely-divided-over-chinese-ai/
1•joozio•2m ago•0 comments

I've been living inside DynamoDB for a while

https://www.thetrueengineer.com/p/dynamodb-deep-dive
1•adletbalzhanov•2m ago•0 comments

The Delphi Method: Expert Consensus Research Explained

https://www.koji.so/docs/delphi-method-guide
1•ankitg12•3m ago•0 comments

Show HN: Tongue – Text Your AI Personal Assistant

https://trytongue.com/demo
1•chadnewbry•3m ago•1 comments

Ask HN: What livestream do you keep open in a tab?

1•missmoss•4m ago•0 comments

Show HN: Protoai – an open source peer-to-peer network for sharing AI contexts

https://github.com/johndebord/protoai
2•piecesJohn•6m ago•1 comments

NASA-ISRO's NISAR satellite images a "hummingbird" in Antarctic ice

https://www.jpl.nasa.gov/news/us-india-satellite-delivers-data-reveals-hummingbird-in-antarctica/
1•MarcoDewey•6m ago•0 comments

The one name LLMs fear

https://ramblingafter.substack.com/p/the-one-name-llms-fear
1•paulpauper•6m ago•0 comments

Epistemics

https://ussri.substack.com/p/epistemics
1•paulpauper•7m ago•0 comments

Apple Is the King of AI and Nobody Knows It

https://limitededitionjonathan.substack.com/p/apple-is-the-king-of-ai-and-nobody
5•cyanbane•7m ago•0 comments

Friday Feature: Mini Cities

https://www.cato.org/blog/friday-feature-mini-cities
1•paulpauper•8m ago•0 comments

Show HN: Avatar-cursor – an AI shop assistant

https://github.com/eliasschwalme/avatar-cursor/blob/main/demo.gif
1•eschwalme•12m ago•0 comments

Anthro researcher: you're hypocritical, therefore you're wrong

https://twitter.com/Mononofu/status/2080937562739531837
1•flurly•13m ago•0 comments

Rauno's Field Notes #2

https://rauno.me/notes/2
6•acmnrs•23m ago•0 comments

North Korea arrests hackers for stealing funds from country's Central bank

https://www.coindesk.com/business/2026/07/25/north-korea-arrests-hackers-accused-of-laundering-st...
2•thisislife2•23m ago•0 comments

The Word for Art Is Human

https://saffroncr.itch.io/katavatis/devlog/1558443/the-word-for-art-is-human
2•r3trohack3r•23m ago•0 comments

Trump Caught Between Apple and Micron in Fight over Chinese Chips

https://www.wsj.com/tech/trump-apple-micron-china-chips-784bbd3d
3•thewebguyd•23m ago•0 comments

Gattaca and the quiet Doomsday of genetic determinism

https://thebulletin.org/premium/2026-07/gattaca-and-the-quiet-doomsday-of-genetic-determinism/
4•bookofjoe•25m ago•0 comments

Minecraft punishes casual players. I made a datapack to fix it [video]

https://www.youtube.com/watch?v=zyRH8W58fRI
2•theNotFractured•26m ago•0 comments

How to Write a Git Commit Message (2014)

https://cbea.ms/git-commit/
2•downbad_•26m ago•1 comments

First spatially resolved spectral-index map of a black hole's event horizon

https://www.eurekalert.org/news-releases/1136724
2•MarcoDewey•26m ago•0 comments

Why do some languages feel weirdly familiar?

https://www.thecambridgelanguagecollective.com/linguistics/why-do-some-languages-feel-weirdly-fam...
2•theanonymousone•27m ago•0 comments

Amen Break

https://en.wikipedia.org/wiki/Amen_break
18•root-parent•28m ago•2 comments

Politician reads AI prompt during assembly

https://www.youtube.com/watch?v=wlYa8NV5k-U
7•root-parent•31m ago•0 comments

Lone dev spends 2 years figuring out how to make anyone 10 times more productive

https://www.taskloco.com/
2•taskloco_nyc•35m ago•0 comments

Re: I Stopped "Creating Content"

https://unattributed.cc/re-why-i-stopped-creating-content
2•speckx•35m ago•0 comments

Hermes AI agent used to automate attack on Thai Finance Ministry

https://www.bleepingcomputer.com/news/security/hermes-ai-agent-used-to-automate-attack-on-thai-fi...
2•Brajeshwar•36m ago•0 comments

The Chuwi MiniBook X N150, One Year Later

https://taoofmac.com/space/reviews/2026/07/25/1700
4•rcarmo•41m ago•0 comments

Writing a (valid) C program without main()

https://labs.iximiuz.com/tutorials/c-program-without-main-a1eea557
12•birdculture•41m ago•3 comments