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!

Scribe Startup Records Employees' Work to Train AI

https://www.forbes.com/sites/rashishrivastava/2026/05/10/this-ai-startups-software-watches-employ...
1•kul_•54s ago•0 comments

MiniPlasma, a Powerful LPE

https://deadeclipse666.blogspot.com/2026/05/miniplasma-powerful-lpe.html
1•geekone•57s ago•1 comments

SpaceX Is Aiming to Go Public on June 12 in What Stands to Be Biggest IPO

https://www.wsj.com/finance/spacex-is-aiming-to-go-public-on-june-12-in-what-stands-to-be-biggest...
1•tzury•3m ago•0 comments

Inside Number 0

http://johnfinnemore.blogspot.com/2025/10/inside-number-0.html
1•tobr•5m ago•0 comments

Why Is Debian Called the Universal Operating System?

https://itsfoss.com/debian-universal-operating-system/
1•susam•10m ago•0 comments

Smalltalk: The Software Industry's Greatest Failure

http://richardkulisz.blogspot.com/2011/02/smalltalk-software-industrys-greatest.html
2•parallelminds•14m ago•1 comments

F.03 Livestream [video]

https://www.youtube.com/watch?v=luU57hMhkak
1•anonymousiam•16m ago•1 comments

Desire Paths

https://en.wikipedia.org/wiki/Desire_path
1•guidedlight•18m ago•0 comments

A programming language made for agents

https://zerolang.ai/
1•yofabr•18m ago•1 comments

Discovered City in the Sky in Utah

https://www.youtube.com/watch?v=szd285GJSkE
1•VaedaStrike•19m ago•0 comments

EY retracts study after researchers discover AI hallucinations

https://www.ft.com/content/a61cbcae-95e4-4449-86e1-ef40fb306f4e
1•tzury•22m ago•1 comments

A Budget of Paradoxes, Volume I and II by Augustus De Morgan

https://www.gutenberg.org/ebooks/23100
1•YoctoYARN•23m ago•1 comments

I've spent 16 years mapping for love and money, and you should give it a shot

https://twitter.com/i/status/2055475663398953220
1•Michelangelo11•23m ago•0 comments

Knight Rider car gets speeding ticket in NYC despite being in Illinois museum

https://abc7ny.com/post/knight-rider-car-kitt-gets-speeding-ticket-brooklyn-despite-being-display...
1•866-RON-0-FEZ•26m ago•0 comments

Designing a team of agents

https://blog.frankel.ch/design-team-agents/
1•saikatsg•36m ago•0 comments

A Good Lemma Is Worth a Thousand Theorems

https://sites.math.rutgers.edu/~zeilberg/Opinion82.html
1•susam•38m ago•0 comments

Consumers sue Amazon for not refunding Trump tariff costs

https://www.reuters.com/business/retail-consumer/consumers-sue-amazon-not-refunding-trump-tariff-...
2•Anon84•38m ago•0 comments

Tarvex ZM-1 – A compiler-free weight-stationary inference accelerator

https://medium.com/towards-artificial-intelligence/ai-data-centers-are-wasting-power-moving-data-...
1•tejakusireddy•42m ago•0 comments

After extensive work with agents, the non-technical sentence is the shape I see

https://sdocs.dev/s/qtIcZCIL#k=sHoAJ4Syfkv25404v5a3Ft4gJBPZwj7aAhquWmdzDPM
1•FailMore•43m ago•0 comments

Personalization and Privacy Choice

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4795118
1•1vuio0pswjnm7•43m ago•0 comments

What Is Code?

https://martinfowler.com/articles/what-is-code.html
1•saikatsg•46m ago•0 comments

Cerebras – Faster Tokens Please

https://newsletter.semianalysis.com/p/cerebras-faster-tokens-please
2•pretext•53m ago•0 comments

OpenAI super PAC paying for an army of Twitter bots to engage with their content

https://twitter.com/TheMidasProj/status/2055411833184399448
2•pretext•57m ago•1 comments

Tyouson – AI Practice tests for exams (www.tyouson.com)

1•Jaiyesh_Paraste•1h ago•0 comments

Xbox Is Now XBOX

https://www.theverge.com/news/931918/microsoft-xbox-rebrand-caps
6•namiwang•1h ago•0 comments

Frosthyon: AI assistant for 3D and general workflows

https://lumithyon.com
1•David_Founder•1h ago•0 comments

Who's composing music for my washing machine?

https://podcasts.apple.com/us/podcast/whos-composing-music-for-my-washing-machine/id73329284?i=10...
1•gmays•1h ago•0 comments

Agent Harness Engineering

https://www.oreilly.com/radar/agent-harness-engineering/
1•Garbage•1h ago•0 comments

Ask HN: Share concrete examples of benefits from AI usage

1•ChaitanyaSai•1h ago•1 comments

The ISO 216 "A4" paper system is broken (rounding errors) [video]

https://www.youtube.com/watch?v=XllQPr8FtPE
1•fsckboy•1h ago•1 comments