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!

Cirrus: ATProto Personal Data Server That Runs on Cloudflare Workers

https://github.com/ascorbic/cirrus
1•gurjeet•3m ago•0 comments

Tell HN: Adding congestion control and retry tokens to a reliable UDP transport

1•x1colegal•3m ago•0 comments

Einstellung Effect

https://en.wikipedia.org/wiki/Einstellung_effect
1•Jimmc414•3m ago•0 comments

Hilarious Math Memes That Prove Mathematics Is Both Pain and Fun

https://yipzap.com/hilarious-math-memes-that-prove-mathematics-is-both-pain-and-fun/
1•yututu•7m ago•0 comments

How to Keep SEO Traffic When You Redesign Your Website

https://repaint.com/blog/website-redesign-seo
2•izakfr•10m ago•0 comments

Aikido Code Audit

https://www.aikido.dev/blog/introducing-code-audit-find-complex-vulnerabilities-hidden-in-your-co...
1•ilreb•13m ago•0 comments

In 1954, engineers shrank a transistor radio into something people could carry

https://economictimes.indiatimes.com/news/international/us/in-1954-engineers-shrank-a-transistor-...
1•dredmorbius•14m ago•0 comments

Claude Monet

https://www.claudemonetgallery.org/
1•andsoitis•14m ago•0 comments

Show HN: Unpuzzld – escape-room style puzzles you can share with a QR code

https://unpuzzld.com
1•4umfreak•16m ago•1 comments

Hidden Order: How Adaptation Builds Complexity [pdf]

https://vdoc.pub/download/hidden-order-how-adaptation-builds-complexity-helix-books-7fb3c54faic0
1•rolph•26m ago•0 comments

Automating model design for edge AI

https://deepgate.ai/blog/neural-architecture-search
1•webstorms•29m ago•0 comments

Our edge AI compiler outperforms Google and vendor toolchains

https://deepgate.ai/blog/compiler
1•webstorms•30m ago•0 comments

Made with Claude for Claude:Interactive Labs:Learn Claude Chat, Cowork, and Code

https://professorprompts.com
1•Anelven•32m ago•0 comments

Iran requires insurance on ships using Strait of Hormuz, fees likely to follow

https://www.lloydslist.com/LL1157571/Iran-imposes-mandatory-insurance-on-ships-transiting-Strait-...
18•decimalenough•36m ago•2 comments

Get with the times – here's what a 'Luddite' means today

https://www.npr.org/2026/06/19/nx-s1-5853589/luddite-meaning-history-ai
2•cdrnsf•37m ago•0 comments

Russell Vought is going to destroy American Science

https://elizabethginexi.substack.com/p/summary-of-key-changes-in-ombs-proposed
3•tacomonstrous•39m ago•0 comments

Boarding Pass Is a Skeleton Key. Frontier Airlines Doesn't Care

https://bobdahacker.com/blog/frontier-airlines-hack
4•scrtm•41m ago•1 comments

What are good benchmarks to test my CLI AI agentic system?

https://www.minovativemind.dev/
1•daniel_ward•45m ago•0 comments

Eve validates the shape. Now pick your runtime

https://dawnai.org/blog/eve-validates-the-shape
1•brian_love•45m ago•0 comments

Email reporting is still a spreadsheet problem in 2026

https://emailcalculator.com
1•emailcalculator•45m ago•0 comments

Liquid glass that bends the page behind it as you scroll

https://codequest.work/generator/liquid-glass-css-generator/en/
1•ORECTIC•45m ago•0 comments

Best Designs on X.com

https://bestdesignsonx.com/
3•vignesh_warar•47m ago•0 comments

Algae clouded Trump's vision for the Reflecting Pool. scientists not surprised

https://www.npr.org/2026/06/19/nx-s1-5863044/dc-reflecting-pool-algae-green-trump
5•rolph•49m ago•0 comments

Accepted proposal: a goroutine leak profiler in the Go standard library

https://rednafi.com/shards/2026/06/go-goroutine-leak-profile/
1•kristianp•51m ago•1 comments

Show HN: Ratchet – let an AI agent reflash your BIOS over a CH341A (MCP server)

https://github.com/jackulau/ratchet
1•JackLau•54m ago•0 comments

GPU Puzzles (2021)

https://github.com/srush/gpu-puzzles
1•sonabinu•55m ago•0 comments

Knowledge workers don't need frontier models

https://mukulsingh105.github.io/articles/slm-routing-knowledge-workers.html
1•azhenley•58m ago•0 comments

Making Sense of Data from Wearable Health Trackers

https://undark.org/2026/06/16/opinion-wearable-health-tracker-data/
2•EA-3167•59m ago•0 comments

Ask HN: Why is there suddenly a downvote button?

2•SpyCoder77•1h ago•2 comments

Show HN: Evaluating Local LLMs as language translators for my app

https://lector.dev/eval/
4•3stacks•1h ago•2 comments