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!

Swinth – By Sung J. Woo

https://www.goto10retro.com/p/the-history-of-swinth
1•rbanffy•33s ago•0 comments

Jeff Dean: The 1% Rule for Building in AI [video]

https://www.youtube.com/watch?v=CxXgV54KzpQ
2•Anon84•56s ago•0 comments

The Buzzword-Driven Development Manifesto (AI Edition)

https://github.com/gabert/buzzword-driven-development
1•gabert•1m ago•0 comments

Perseids Meteor Shower

https://science.nasa.gov/solar-system/meteors-meteorites/perseids/
1•wslh•1m ago•0 comments

Reviewing the evidence on worker retraining programs

https://www.anthropic.com/research/reviewing-the-evidence-on-worker-retraining-programs
1•neversaydie•2m ago•0 comments

Thoughts on "SIMD in Pure Python" – purplesyringa's blog

https://purplesyringa.moe/blog/thoughts-on-simd-in-pure-python/
1•rbanffy•3m ago•0 comments

Innovations of SolidJS 2

https://www.brenelz.com/posts/innovations-of-solid-2/
1•unlog•4m ago•0 comments

Iluvatar – classifies an app idea into CS terms before any tech gets named

https://github.com/RudVlad473/iluvatar
1•RudVlad473•4m ago•0 comments

Python Type System and Tooling Survey 2026

https://www.surveymonkey.com/r/python_typing
1•rbanffy•5m ago•0 comments

Show HN: Pixy, visual editor for coding agents, like Figma on your live site

https://pixydesignapp.com/
2•astroscout•5m ago•0 comments

Intelligence CIOs Warn AI Agents Could Accelerate Cyberattacks

https://govciomedia.com/intelligence-cios-warn-ai-agents-could-accelerate-cyberattacks/
3•jethronethro•6m ago•0 comments

TTT-Discover: Learning to Discover at Test Time

https://ucbskyadrs.github.io/blog/ttt/
1•matt_d•6m ago•0 comments

The little-known winstart.bat batch file

https://devblogs.microsoft.com/oldnewthing/20260811-00/?p=112605
1•supermatou•12m ago•0 comments

How do I permanently disable Google Photos pop-up prompt to backup my photos?

https://support.google.com/photos/thread/256212140/how-do-i-permanently-disable-google-photos-pop...
2•dt3ft•13m ago•1 comments

What We Learned by Reproducing 2,200 papers from ICML

https://huggingface.co/blog/icml-2026-open-reproductions
1•sbulaev•13m ago•0 comments

RIP Claude

https://randsinrepose.com/archives/rip-claude/
1•Tomte•14m ago•0 comments

Person Hides Prompt Injection in Legal Filing Telling AI to Side with Them

https://www.404media.co/person-hides-prompt-injection-in-legal-filing-telling-ai-to-side-with-them/
5•hampelm•16m ago•0 comments

Show HN: MLTraining Free AI/ML training resources for everyone

https://mltraining.org/
1•Cagritemel•18m ago•0 comments

Ask HN: How can you tell a site/app is vibe coded?

2•gkolli•18m ago•1 comments

OpenAI hires new CRO as executive shake-up continues

https://techcrunch.com/2026/08/13/openai-hires-new-cro-as-executive-shake-up-continues/
1•datakan•18m ago•0 comments

Nine AI demo-agent landing pages: a 30-point conversion benchmark

https://w24bd0kvaqatl5q4d67cvoiga5ccskw9.pastehtml.dev/
1•AuditForgeHQ•19m ago•0 comments

Defining Taste

https://twitter.com/mitchellh/status/2070665127331037290
1•tosh•20m ago•1 comments

Mark Zuckerberg doesn't understand how to live

https://www.theverge.com/ai-artificial-intelligence/977623/mark-zuckerberg-ai-manifesto-dim-vision
1•elorant•21m ago•0 comments

I wrote an AI textbook – how long until AI can do it better?

https://www.interconnects.ai/p/i-wrote-an-ai-textbook-how-long-until
1•sebg•22m ago•0 comments

Show HN: Cadre.rocks A local-first board for orchestrating coding agents

https://cadre.rocks/
1•l-crispr•22m ago•0 comments

Why do we have allergies?

https://www.bbc.com/future/article/20150409-why-do-we-have-allergies
1•geneticdrifts•23m ago•0 comments

Fast Mojo implementation of classic Word2Vec algorithm

https://github.com/benjismith/word2vec-mojo
1•benjismith•24m ago•1 comments

Microsoft Scales Back in China, Shutting 15 Sites in Five Years

https://en.sedaily.com/international/2026/08/13/microsoft-scales-back-in-china-shutting-15-sites-...
1•ilamont•30m ago•0 comments

Scale Your AI Revenue – Not Your Cloud Bill

https://acefleet.dev/
1•flyingfishisme•31m ago•3 comments

Three Silent Failures Between You and Sidecar Injection

https://pandocore.io/blog/sidecar-injection-silent-failures
1•eaferstl•32m ago•0 comments