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!

New In browser URL verification tool

2•integrity_softw•4m ago•0 comments

VMAF v1: Good Is Not Good Enough

https://netflixtechblog.com/vmaf-v1-good-is-not-good-enough-60d7e4244ea8
2•ksec•6m ago•0 comments

Testing with Agents in Apple platform development [video]

https://vimeo.com/1246961072
2•Austin_Conlon•34m ago•0 comments

ForumNOX Hacking Forums

https://forumnox.com/
2•Jokerr•35m ago•0 comments

Medical volume renderer with transparent 3D anatomy

https://github.com/vangelov/volumesh
2•vlad_angelov•40m ago•0 comments

How to Setup Gentlemail

https://gentlemail.dev/deploy
2•themx05•47m ago•1 comments

WSJ Fabricated Statements from the Singapore Gov. On Jensen Huang and China Link

https://twitter.com/brianchau57/status/2121465308368265231
2•MrBuddyCasino•49m ago•0 comments

AWS made an official local emulator

https://chaosguru.substack.com/p/aws-finally-made-an-official-local
2•taubek•50m ago•1 comments

Sub-Planck structure in phase space and its relevance for quantum decoherence

https://www.nature.com/articles/35089017
1•u1hcw9nx•50m ago•0 comments

I was wrong about dark mode

https://dbushell.com/2026/11/09/dark-mode/
1•birdculture•50m ago•0 comments

Stock value as a distribution, not a price target

https://value-field.onrender.com
1•IVanalyst•52m ago•0 comments

Automated High-Density Knife-Edge Laser Beam Profiler

https://github.com/turtushig22-blip/thorlabs-esp32-laser-beam-profiler
1•turtushig22•53m ago•0 comments

Show HN: Saylark – Open-source voice dictation for Mac, like Wispr Flow

https://github.com/btahir/saylark
2•bilater•59m ago•0 comments

Brain Implants Give ALS Patients the Voice to Speak and Sing

https://www.nytimes.com/2026/11/14/science/brain-implants-als-voice.html
2•01-_-•1h ago•0 comments

Show HN:Learn Chinese Through Mythology and HSK Graded Stories

https://www.mythlingua.com/
1•vincent_sanfeng•1h ago•0 comments

Cloudflare: Spending Limits and Alerts

https://developers.cloudflare.com/billing/manage/spend-management/
2•taran_narat•1h ago•0 comments

Show HN: Dynaura – Dynamic Island toasts for the web

https://dynaura.ashutoshswamy.in
1•jackednerd•1h ago•0 comments

New tech allows public, law enforcement to identify drones, operator locations

https://www.trains.com/trn/railroads/photography-tips/new-tech-allows-public-law-enforcement-to-i...
1•harambae•1h ago•0 comments

Baltimore County schools phase out AI reading program

https://www.thebanner.com/education/k-12-schools/county-schools-artificial-intelligence-453DCFYJL...
3•biker142541•1h ago•0 comments

UPS cargo plane collides with passenger jet at Miami International Airport

https://www.gulfcoastnewsnow.com/article/planes-collide-at-miami-international-airport/74431861
1•thunderbong•1h ago•0 comments

Mirepoix

https://en.wikipedia.org/wiki/Mirepoix
1•tosh•1h ago•0 comments

Reading JSON at 277 GB/s in Python

https://lemire.me/blog/2026/11/14/reading-json-at-277-gb-s-in-python/
1•chmaynard•1h ago•0 comments

Show HN: IndexFast – see which of your pages search engines actually know about

https://indexfast.co
1•sh20raj•1h ago•0 comments

Show HN: Cshoal – A school of fish, hunted by predators, in your terminal

https://github.com/mcthomas/cshoal
1•Bondi_Blue•1h ago•0 comments

Book list for streetfighting computer scientists

https://nick-black.com/dankwiki/index.php?title=Book_list_for_streetfighting_computer_scientists
2•num42•1h ago•0 comments

ICC stops probe into US troops, continues investigating Taliban

https://www.newarab.com/news/icc-stops-probe-alleged-crimes-us-troops-afghanistan
1•cowlevel•1h ago•1 comments

I tested an AI dance edit on five seconds of footage, then tried the whole clip

https://medium.com/@wangjiayiliuyan/i-tested-an-ai-dance-edit-on-five-seconds-of-footage-then-i-t...
1•visiohex•1h ago•0 comments

Show HN: ShadowDiff – Shadow testing and SQL diffing for AI-migrated back ends

https://github.com/vishalrajofficial/ShadowDiff
1•vishalraj1•1h ago•0 comments

China's COMAC electric plane completes first crewed flight

https://www.reuters.com/video/watch/idRW841714112026RP1/
3•xbmcuser•1h ago•0 comments

Show HN: Hello Triangle, a puzzle game where you build a GPU

https://hellotriangle.icedlatte.ca/
2•icedlatte•1h ago•0 comments