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!

Wortlaut

https://github.com/MKRWW/wortlaut
1•hasley•4m ago•1 comments

Ask HN: How would a lab train for SVG pelicans or other creative benchmarks?

1•smusamashah•4m ago•0 comments

Can Sticky Notes Become the New Bookmarks and Favorites for the Browser

https://chromewebstore.google.com/detail/sticky-note-web-clipper-s/gniilbpapgommpalikcclpcnbcamgila
1•taskloco_nyc•5m ago•0 comments

C Craft

http://www-cs-students.stanford.edu/~blynn/c/craft.html
1•dhotson•8m ago•0 comments

Show HN: Serverload2 – sometimes all you want is a little server load monitor

https://github.com/wojtczyk/serverload2
1•wojtczyk•9m ago•0 comments

MemoryPack: Zero encoding extreme performance binary serializer for C#

https://github.com/Cysharp/MemoryPack
1•breve•11m ago•0 comments

Gemini models are not even competing anymore, why?

1•kingleopold•11m ago•0 comments

I made a random name picker where every name becomes a tiny arena fighter

https://namebrawl.com
1•magnusl•12m ago•0 comments

Silicon Valley Has Lost Its Biggest Advantage

https://www.theatlantic.com/technology/2026/07/data-center-ai-heavy-industry/687990/
1•blondie9x•12m ago•0 comments

Tate brothers arrested in US as further UK charges take total to 59

https://www.bbc.com/news/articles/cwymly9yd33o
2•Tomte•13m ago•0 comments

xkcd's What If?

https://www.youtube.com/@xkcd_whatif
2•bookofjoe•16m ago•0 comments

WIE – A Windows x86_64 Emulator for Apple Silicon in Rust Using Cranelift

1•vlad_kalinkin•22m ago•0 comments

Study: Single-crystal nanowires of niobium arsenide may replace copper wires

https://news.cornell.edu/stories/2026/07/too-thin-fail-alternative-copper-microchip-interconnects
1•giuliomagnifico•24m ago•0 comments

I burned all my tokens researching how to save tokens

https://quesma.com/blog/custom-deep-research-pipeline/
7•bkotrys•30m ago•2 comments

Aha I don't want to lose you

https://blog.rybarix.com/2026/07/19/aha-not-lost.html
1•sandruso•36m ago•0 comments

Artificial cell with a full lifecycle has been created for the first time

https://www.theregister.com/science/2026/07/01/an-artificial-cell-with-a-full-lifecycle-has-been-...
1•GrinningFool•36m ago•1 comments

Show HN: We ranked our dev tools in Google's new AI Overviews

https://zlvox.com/blog/google-ai-overviews-2026-optimize-agentic-search
2•mraadikhokhar•39m ago•0 comments

A computer-assisted 23/33 and ε bound for the binary Goldbach exceptional set

https://goldbach-nine.vercel.app/
1•lorenzosch•43m ago•0 comments

Minecraft: Java Edition now uses SDL3

https://www.minecraft.net/en-us/article/minecraft-26-3-snapshot-4
1•ObviouslyFlamer•44m ago•0 comments

Know if a Rust rewrite is worth it (forkable business idea)

https://zozo123.github.io/rust-it-up/
1•zozo123-IB-IL2•45m ago•0 comments

Assembly Chat – Chat with Any .NET DLL

https://products.documentize.ai/assembly-chat
1•epirogov•48m ago•1 comments

Show HN: Textcaster – social networking where RSS is the protocol

https://textcaster.app
4•rmdes•49m ago•0 comments

Amdgpu performance regression in Kernel 7.0.0-28.28

https://discourse.ubuntu.com/t/amdgpu-performance-regression-in-kernel-7-0-0-28-28/85237
1•doener•53m ago•1 comments

Show HN: Marbles – a Korean marble game built with WebGL

https://plan9.kr/goosl/
2•sungchi•53m ago•0 comments

Thanks for Everything

https://github.com/helis-d/waylou
1•Emirhan123•54m ago•1 comments

Anti-AI protest reaches OpenAI HQ

https://www.msn.com/en-in/money/topstories/anti-ai-protest-reaches-openai-hq-why-protesters-left-...
4•nlpnerd•1h ago•1 comments

Mac app that offers the ability to add artificial mechanical keyboard sounds

https://apps.apple.com/us/app/funkey-mechanical-keyboard-app/id6469420677?mt=12
2•kratikanarad•1h ago•1 comments

PS5 Y2JB Autoloader:Automatically loads the kernel exploit and your elf payloads

https://github.com/itsPLK/ps5-y2jb-autoloader
1•wertyk•1h ago•0 comments

Show HN: WrumWrum – a multiplayer taxi game where you RAM rivals to steal fares

https://wrumwrum.mazurov.me/
2•untaken1583•1h ago•1 comments

The Dangers of Dimethylmercury (2019)

https://www.chemistryworld.com/opinion/the-dangers-of-dimethylmercury-/3010064.article
1•downbad_•1h ago•0 comments