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!

DNS Honeypots Don't Fail at Banners,They Fail at the Protocol

https://medium.com/meetcyber/dns-honeypots-dont-fail-at-banners-they-fail-at-the-protocol-cf21c7e...
1•ls1911•1m ago•0 comments

Open Weights Are Good. Open Source Is Better

https://opensource.org/blog/open-weights-are-good-open-source-is-better
1•theanonymousone•2m ago•0 comments

The senior engineer death spiral

https://sunilpai.dev/posts/the-senior-engineer-death-spiral/
3•napolux•3m ago•0 comments

Show HN: The meal planner that gets all your dishes ready at once

https://robotrecipes.co/mise/
1•maverik•3m ago•0 comments

Your robotic vacuum is a witness: evidence, privacy and the law

https://theconversation.com/your-robotic-vacuum-is-a-witness-what-home-robots-mean-for-evidence-p...
1•hn_acker•4m ago•1 comments

Poster Prompts One hundred design styles as copy-paste prompts

https://john.hartnup.uk/poster-prompts/
1•Bluestein•6m ago•0 comments

Show HN: Stardrift – A 3D galaxy of all music, to explore and learn

https://stardrift.gerlach.dev/
1•sovok•6m ago•0 comments

Bingel

https://www.bingel.se/welcome/
2•pighacker•8m ago•0 comments

The right way to learn from Genghis Khan

https://economist.com/culture/2026/09/17/the-right-way-to-learn-from-genghis-khan
1•andsoitis•8m ago•0 comments

How A Chinese Hacking Firm Tapped AI to Supercharge Cyber-Spying

https://www.wsj.com/tech/how-a-chinese-hacking-firm-tapped-ai-to-supercharge-cyber-spying-b577c846
1•harry_nutsachs•9m ago•0 comments

Turning the iPhone Duo Hinge into an Accordion

https://www.reddit.com/r/iOSProgramming/comments/1wkt7i7/i_turned_iphone_duo_hinge_into_accordion/
1•busymom0•11m ago•0 comments

Trump Announces an 'AI Force'

https://www.wsj.com/tech/ai/trump-announces-an-ai-force-after-industry-sounded-alarm-7c189b8f
3•david_shaw•12m ago•0 comments

When Does AI Stop Needing Us?

https://cacm.acm.org/blogcacm/when-does-ai-stop-needing-us/
1•pseudolus•12m ago•0 comments

Show HN: Video Size Reducer – compress video in the browser for sharing

https://videosizereducer.net/
1•liweipt•13m ago•0 comments

More Than Music with MIDI and Processing

https://george.mand.is/2026/09/processing-community-day-nyc-2026-midi-workshop-preview/
1•georgemandis•13m ago•1 comments

Freeze Drying

https://en.wikipedia.org/wiki/Freeze_drying
1•BiraIgnacio•13m ago•0 comments

Which stories about academia matter?

https://donmoynihan.substack.com/p/which-stories-about-academia-matter
1•hn_acker•15m ago•0 comments

Lawsuit says Anthropic, OpenAI and others made illegal agreement on AI slowdown

https://apnews.com/article/antitrust-lawsuit-ai-slowdown-anthropic-openai-spacexai-google-960af43...
6•embedding-shape•16m ago•0 comments

AI Is Just Greg – Inside an AI Datacenter [video]

https://www.youtube.com/watch?v=0GofbjETCS4
1•beacon09•19m ago•1 comments

Nowhere Air – Get a first class ticket to nowhere

https://nowhereair.com/
2•titusblair•20m ago•0 comments

Free calculators, no tracking client-side

https://getutilary.com
1•acbirja•23m ago•0 comments

Do you remember the Harvard student Eldo Kim?

https://www.cnn.com/2013/12/17/justice/massachusetts-harvard-hoax
1•mashally•26m ago•0 comments

Running a business made me hate capitalism – Go Make Things

https://gomakethings.com/articles/running-a-business-made-me-hate-capitalism/
2•ulrischa•31m ago•0 comments

Microsoft director: AI scraping 'the largest theft of labor in human history'

https://www.tomshardware.com/tech-industry/artificial-intelligence/microsoft-director-called-ai-s...
2•jonbaer•31m ago•0 comments

OpenDTC – Read ya Diagnostic codes with no ads n that

https://opendtc.net/
2•x0z•33m ago•1 comments

Jev vs. XGBoost and Bert

https://explainx.ai/blog/jev-vs-xgboost-bert-classifiers-2026
3•cagz•34m ago•0 comments

Trump says he will create 'AI Force,' name AI czar

https://www.reuters.com/world/us/trump-says-he-will-create-ai-force-name-ai-czar-2026-09-19/
3•psychanarch•36m ago•0 comments

ChatGPT Rogue-Emailed the FBI

https://old.reddit.com/r/ChatGPT/comments/1wkrr4g/chat_gpt_rogue_emailed_fbi/
1•znpy•37m ago•0 comments

M6 Pro Chip Result on Geekbench Is Likely Fake

https://www.macrumors.com/2026/09/19/m6-pro-geekbench-result-likely-fake/
3•layer8•38m ago•0 comments

Making a Jumping Cube Stick the Landing [video]

https://www.youtube.com/watch?v=ZonPpxvV6KU
1•hashier•39m ago•0 comments