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!

A private AI box in one apply

https://conn3x.org/blog/private-ai-box
1•MrGizmo•7s ago•0 comments

Show HN: One screen live election night dashboard for the 2026 midterms

https://github.com/noahfleming/election-night-2026
1•draftfirstcs•1m ago•0 comments

Show HN: Sigmajp – Integrated Japanese Reader

https://sigmajp.works/
1•loosetypewriter•3m ago•0 comments

Audrey: The Early 2000's Failed Internet Appliance [video]

https://www.youtube.com/watch?v=TyXtBrC1Fv0
3•gregsadetsky•7m ago•1 comments

Jelly Sheet

https://mrdoob.github.io/codevember-2026/01/
2•memalign•8m ago•0 comments

DeepSeek Harness' new Creator Mode creates plugins from prompts

https://mashable.com/tech/deepseek-creator-mode-plugins
1•esafak•8m ago•0 comments

Show HN: TickerTown, a pixel-art stock market simulator

https://tickertown.ai
1•williswee•8m ago•0 comments

Democrats win control of the House of Representatives

https://www.nbcnews.com/politics/2026-election/democrats-house-control-midterm-election-wins-trum...
25•geox•13m ago•3 comments

Show HN: Rendering 3D Models in the Terminal

https://muratbayraktar.dev/blog/3d-rendering-in-the-terminal/
2•bob65536•14m ago•0 comments

Study solved a 150-year-old mystery into the identity of the extinct giant crane

https://www.bournemouth.ac.uk/news/2026-10-28/study-has-solved-150-year-old-mystery-identity-exti...
1•gmays•18m ago•0 comments

Show HN: Railyard – Git-push deploys and OSS templates on your own VPS

https://railyard.run/
1•RailyardRun•22m ago•0 comments

SemiconductorX – The Chip Supply Chain, from Quartz to Module

https://semiconductorx.com/
2•peter_d_sherman•25m ago•0 comments

Distinct cellular and genetic differences in colorectal cancer in young patients

https://www.dana-farber.org/newsroom/news-releases/2026/study-reveals-distinct-cellular-and-genet...
4•gmays•29m ago•0 comments

Terminal Apps Respecting System Dark Mode

https://samasaur1.github.io/blog/terminal-apps-respecting-system-dark-mode
1•ankitg12•34m ago•0 comments

Ask HN: What do you call Holy Grail mania risk?

2•totetsu•37m ago•1 comments

Arrows to arrows, categories to queries (2025)

https://reasonablypolymorphic.com/blog/arrows-to-arrows/
7•firstbase•38m ago•0 comments

NetBSD 11.1

https://netbsd.org/releases/formal-11/NetBSD-11.1.html
2•jaypatelani•38m ago•0 comments

Turn Qwen evil using a single neuron

https://ziva.sh/blogs/evil-qwen
3•sayamss•41m ago•0 comments

Ultrafine Martian dust presents additional risks for future crewed missions

https://www.pnas.org/doi/10.1073/pnas.2620747123
1•caiobegotti•45m ago•0 comments

Show HN: DropMyPage – turn an HTML file or PDF into a link and QR code

https://dropmypage.com
1•mukeshdotnet•50m ago•0 comments

Crushed Shells Protect Against Ocean Acidification

https://www.ucdavis.edu/news/how-crushed-shells-protect-against-ocean-acidification
1•gmays•50m ago•0 comments

Is hosting an open-source inference engine profitable?

https://userecurrence.ai/research/is-hosting-open-source-inference-profitable
1•jinqueeny•50m ago•0 comments

Silicon Valley Promises AI Will Cure Disease. Drugmaker CEOs Aren't Buying It

https://www.wsj.com/tech/ai/silicon-valley-promises-ai-will-cure-disease-drugmaker-ceos-arent-buy...
2•nradov•51m ago•0 comments

Unlocking the (Nintendo) lockout (see pages 6-9) [pdf]

https://archive.nes.science/nintendoage-forums/static.nintendoagemedia.com/ezine/Issue_07-2008.pdf
2•pseudohadamard•54m ago•0 comments

Show HN: No-JS <dialog> in Blades CSS v3.1.1 (a Pico CSS fork)

https://blades.dev/css/modal/
1•anydigital•54m ago•0 comments

I Built an AI That Works Through the Apocalypse – Will Prowse [video]

https://www.youtube.com/watch?v=E2N7IsZ_Xio
1•bbrookshier•56m ago•0 comments

Old, Polluting Jet Engines Are Being Scavenged to Power Data Centers

https://www.nytimes.com/2026/11/03/climate/jet-engines-ai-data-center-generators-boneyard.html
2•JumpCrisscross•1h ago•0 comments

Failed Experience → Hypothesis → Refutation → Principle → Worldview

https://zenodo.org/records/22706328
1•shoman3003•1h ago•0 comments

Is Your TV Spying on You

https://zlu.me/2026/11/02/is-your-tv-spying-on-you.html
2•zlu•1h ago•1 comments

Tell HN: Don't use Postman, they proxy your info without your permission

3•neya•1h ago•1 comments