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!

Jensen Huang Fucked Everybody

https://www.theringer.com/2026/11/12/tech/jensen-huang-nvidia-ceo-resignation-chinese-spy-stock-m...
1•Arodex•2m ago•0 comments

OpenDoc – Free, open-source offline documentation browser

https://github.com/daidarzzz/opendoc
1•daidarz•3m ago•1 comments

US loses measles-free status: Pan American Health Organization

https://www.paho.org/en/news/10-11-2025-paho-calls-regional-action-americas-lose-measles-eliminat...
1•TeaVMFan•3m ago•0 comments

Where was Nvidia’s security team?

https://techcrunch.com/2026/11/14/where-was-nvidias-security-team/
1•jbegley•4m ago•0 comments

I survived being forced into pornography: 'I died in that hotel room.'

https://www.theguardian.com/society/2026/nov/14/how-i-survived-being-forced-into-pornography-i-di...
1•Michelangelo11•9m ago•0 comments

Microsoft patent describes using idle gaming GPUs into paid AI training hardware

https://videocardz.com/newz/microsoft-could-pay-gamers-for-using-spare-gpu-capacity-to-train-ai
2•bilekas•17m ago•0 comments

Dissecting Spring petclinic (Part 2 – Bending the persistence)

https://hannomalie.github.io/posts/dissecting-spring-petclinic-persistence.html
1•ejboy•17m ago•0 comments

The NBA player who got hooked on sports betting

https://www.newyorker.com/magazine/2026/11/16/the-nba-player-who-got-hooked-on-sports-betting
1•anigbrowl•19m ago•0 comments

Supporting surge pricing in emergencies is a top correlation with IQ in my data

https://twitter.com/Aella_Girl/status/2121523915977789598
1•delichon•19m ago•0 comments

Laver Tables

https://observablehq.com/@mattdiamond/laver-tables
1•md224•21m ago•0 comments

Once considered macabre, the consumption of roadkill is having a culinary moment

https://www.vqronline.org/essays/opportunivores-dilemma
3•bookofjoe•27m ago•2 comments

Show HN: Light Sleep – Relax and Sleep

https://play.google.com/store/apps/details?id=com.yugakhan.lightsleep&hl=en_US
1•cflsdf•31m ago•0 comments

Show HN: Monster Cursor – Cartoon Beast Mouse

https://chromewebstore.google.com/detail/monster-cursor-cartoon-be/fjgmgjefbipdjbcjhbenanmkhmdjokcl
1•cflsdf•32m ago•0 comments

Show HN: WendyOS, Linux for robots with USB-C deployment and rollback updates

https://docs.wendy.dev/latest/getting-started/app/
1•zamderax•33m ago•0 comments

The Trolls Among Us (2008)

https://www.nytimes.com/2008/08/03/magazine/03trolls-t.html
1•convict•34m ago•1 comments

The AI revolution is leaving younger tech workers behind

https://twitter.com/KobeissiLetter/status/2121689817301819425
3•liquid_oil•34m ago•0 comments

Thunder/Lighting Distance Game

https://five-mississippi.com/
1•kiaofz•37m ago•1 comments

Lazarus: Backdooring LLMs by editing ten neurons

https://twitter.com/DimitrisPapail/status/2120245027804705121
1•stavros•43m ago•0 comments

DeepSeek's New LLM Engine Just Made GPUs 3x More Valuable [video]

https://www.youtube.com/watch?v=2K_Rm8cho1I
1•yogthos•44m ago•2 comments

How can I simplify using a helper class to pass multiple parameters to co_await?

https://devblogs.microsoft.com/oldnewthing/20261113-00/?p=112856/
1•ibobev•45m ago•0 comments

Show HN: I made a tiny HN-style forum for small communities

https://github.com/skorokithakis/soliloquy
1•stavros•46m ago•1 comments

Single instruction, multiple threads (SIMT)

https://en.wikipedia.org/wiki/Single_instruction,_multiple_threads
1•teleforce•47m ago•0 comments

Pi-Cam-IR-A

https://studiowetware.com/pi-cam-ir-a/
1•Beachkilla•48m ago•0 comments

Let Me Let You Own Your Data

https://www.willett.io/posts/data/
2•vinhnx•48m ago•0 comments

A petition to reinstate Jensen Huang as Nvidia CEO has over 100k signatures

https://www.businessinsider.com/petition-reinstate-jensen-huang-nvidia-elon-musk-2026-11
3•cdrnsf•49m ago•0 comments

Can you install two hot-patches if Windows Update checks for existing patches?

https://devblogs.microsoft.com/oldnewthing/20261109-00/?p=112841/
1•ibobev•49m ago•0 comments

Flipping Toshiba 110CT Satellites (2023)

https://dankpads.com/uncategorized/flipping-toshiba-110ct-satellites/
2•sammatilda•51m ago•0 comments

DeepSeek releases API for its apps along with open source front end

https://twitter.com/deepseek_ai/status/2121247896918253875
1•rjzzleep•56m ago•0 comments

Ask HN: Is post-training make AI models dumber?

2•CleverLikeAnOx•58m ago•2 comments

Bing is the anti-AI search engine you should be using

https://www.pcworld.com/article/3115405/bing-is-the-anti-ai-search-engine-you-should-be-using.html
1•Topfi•1h ago•1 comments