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!

Panasonic's PV-460 Camcorder Stabilized Shaky Videos

https://spectrum.ieee.org/panasonic-camcorder-ieee-milstone
1•Brajeshwar•17s ago•0 comments

I'm a USB-C Maximalist

https://shkspr.mobi/blog/2026/07/im-a-usb-c-maximalist/
1•speckx•24s ago•0 comments

Show HN: An AI that makes phone calls, with a second AI judging if it worked

https://rynger.ai/
1•tech_dilla•39s ago•0 comments

Competition Is for Losers

https://www.wsj.com/articles/peter-thiel-competition-is-for-losers-1410535536
1•ronfriedhaber•2m ago•0 comments

Trust is not Governance: an essay from inside Google DeepMind

https://www.blackhc.net/essays/trust_is_not_governance/
1•nervai•2m ago•0 comments

Show HN: Open-source]IntentGuard: Catch PRs that pass tests but miss the ticket

https://github.com/derrickchiang1024/intentguard
1•CHIA_CHIANG•2m ago•0 comments

Are we offloading too much of our thinking to AI?

https://www.artfish.ai/p/offloading-thinking-to-ai
1•yenniejun111•2m ago•0 comments

Single-Rollout Asynchronous Optimization for Agentic Reinforcement Learning

https://arxiv.org/abs/2607.07508
1•gmays•3m ago•0 comments

The First Photonic Reasoning Processor

https://www.akhetonics.com/
1•binyu•5m ago•0 comments

Why Did IBM Stock Crash 25% Today?

https://www.disruptionbanking.com/2026/07/14/why-did-ibm-stock-crash-25-today/
1•emsidisii•6m ago•0 comments

After Such Knowledge

https://www.5jt.com/after-such-knowledge
1•tosh•7m ago•0 comments

The Reverse Information Paradox

https://twitter.com/satyanadella/status/2076323181154230284
1•wslh•9m ago•1 comments

Show HN: Datapoint – API for Human Preference Data

https://trydatapoint.com/docs/
3•yoloakki•9m ago•0 comments

Show HN: Cascade Chat – A Hackable IRCv3 Client for macOS, Windows, and Linux

https://github.com/matt0x6F/irc-client
4•oooyay•9m ago•0 comments

Fed Chairman Kevin Warsh pledges Fed policy regime change to rid inflation tax

https://www.cnbc.com/2026/07/14/warsh-promises-inflation-will-be-a-thing-of-the-past-cites-benefi...
1•donsupreme•11m ago•0 comments

Meta used AI to target workers with medical conditions for layoffs

https://www.reuters.com/world/meta-used-ai-target-workers-with-medical-conditions-layoffs-former-...
7•nlpnerd•11m ago•1 comments

The Agent Loop Is the New SaaS

https://lobu.ai/blog/the-agent-loop-is-the-new-saas/
1•buremba•11m ago•0 comments

The US Approves Launch of Mirror Satellite That Can Reflect Sunlight at Night

https://www.wired.com/story/reflect-orbital-earendil-mirror-satellite-fcc/
1•achristmascarl•11m ago•1 comments

Show HN: Manifest – Turn any webpage into a structured action manifest for agent

https://demo.manifest.omfang.io/demo
2•Maxnordstrom•12m ago•0 comments

Software hiring has become absurd

https://twitter.com/DanielGlejzner/status/2076985401915429296
3•bilsbie•13m ago•0 comments

You have zero privacy anyway. Get over it

https://www.techradar.com/pro/quote-of-the-day-by-sun-microsystems-ceo-scott-mcnealy-you-have-zer...
1•theanonymousone•14m ago•1 comments

Honeycomb Structures Spotted on Mars

https://www.space.com/astronomy/mars/honeycomb-structures-spotted-on-mars-space-photo-of-the-day-...
1•speckx•14m ago•0 comments

Chefkiss Inferno: Open-Source Apple Silicon Emulator

https://chefkiss.dev/applehax/inferno/
1•jeswin•19m ago•1 comments

Wirehead (Science Fiction)

https://en.wikipedia.org/wiki/Wirehead_(science_fiction)
2•cainxinth•19m ago•0 comments

Microsoft Confirms Windows GDID Device Identifier That Cannot Be Disabled

https://www.ghacks.net/2026/07/12/microsoft-confirms-windows-gdid-device-identifier-that-cannot-b...
1•doener•19m ago•0 comments

Old Icons

https://leancrew.com/all-this/2026/07/old-icons/
1•surprisetalk•20m ago•0 comments

Claude for Teachers

https://www.anthropic.com/news/claude-for-teachers
1•surprisetalk•20m ago•1 comments

Show HN: Noteato – Notion-like notes as local Markdown files

https://github.com/shashankbhat2/noteato
2•dankbhat26•20m ago•0 comments

New York to enact nation's first statewide data center moratorium

https://gothamist.com/news/hochul-puts-hold-on-large-data-centers-in-new-york
1•PLenz•21m ago•1 comments

Aevum – Free AI RPG engine for Claude with persistent factions and economy

https://github.com/RukkaNova/aevum-realm-architect
1•arcanumrpgs•21m ago•0 comments