frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Would you believe try-catch-finally works in plain old C?

4•mf_taria•8mo 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•8mo ago
Finally!

TikTok is still a danger. America no longer cares

https://www.economist.com/business/2026/01/21/tiktok-is-still-a-danger-america-no-longer-cares
1•bookofjoe•6m ago•1 comments

The rapid evolution of Software Engineer's role

https://dev.ribic.ba/the-rapid-evolution-of-software-engineer-s-role
1•ribice•6m ago•0 comments

Why AI Keeps Falling for Prompt Injection Attacks

https://www.schneier.com/blog/archives/2026/01/why-ai-keeps-falling-for-prompt-injection-attacks....
1•speckx•6m ago•0 comments

Disruption with Some GitHub Services

https://www.githubstatus.com/incidents/cqb5hcy0gx18
1•enescakir•7m ago•0 comments

AInxiety

https://pcmaffey.com/ainxiety-1/
1•pcmaffey•8m ago•0 comments

I Still Write Code as an Engineering Manager

https://terriblesoftware.org/2026/01/22/why-i-still-write-code-as-an-engineering-manager/
1•matheusml•8m ago•0 comments

Founders can now chat with their Git history

1•inferno22•8m ago•0 comments

Results from the 2025 Go Developer Survey

https://go.dev/blog/survey2025
1•blenderob•8m ago•0 comments

India Is Electrifying Faster Than China Using Cheap Green Tech

https://www.bloomberg.com/news/articles/2026-01-22/india-is-electrifying-faster-than-china-using-...
2•alephnerd•11m ago•2 comments

Gore Verbinski Discusses Why CGI No Longer Looks Good

https://butwhytho.net/2025/11/gore-verbinski-good-luck-have-fun-dont-die/
1•cainxinth•11m ago•0 comments

HN: Offering free 1-hour security reviews for startup founders

1•marcalsantos•12m ago•0 comments

Hack your Brain with Powerlifting [video]

https://www.youtube.com/watch?v=WxN9VzwoGGw
1•EPendragon•13m ago•0 comments

In Europe, Wind and Solar Overtake Fossil Fuels

https://e360.yale.edu/digest/europe-wind-solar-fossil-fuels
2•speckx•13m ago•0 comments

You can now download Windows 7 and Vista ISO images with all the updates

https://www.neowin.net/news/you-can-now-download-windows-7-and-vista-iso-images-with-every-possib...
5•XzetaU8•13m ago•0 comments

ePub and HTML – Survey results and next steps

https://www.w3.org/blog/2026/epub-and-html-survey-results-and-next-steps/
1•robin_reala•13m ago•0 comments

Cover Your Twenty-Five Miles, Then Rest Up and Sleep

https://www.raptitude.com/2026/01/cover-your-twenty-five-miles-then-rest-up-and-sleep/
1•crescit_eundo•14m ago•0 comments

AI company Eightfold sued for helping companies score job seekers

https://www.reuters.com/sustainability/boards-policy-regulation/ai-company-eightfold-sued-helping...
2•clumsysmurf•15m ago•0 comments

Meet the Alaska Student Arrested for Eating an AI Art Exhibit

https://www.thenation.com/article/society/alaska-student-arrested-eating-ai-art-exhibit/
1•petethomas•15m ago•0 comments

Ask HN: Is GitHub Down?

5•AznHisoka•15m ago•4 comments

London PR firm rewrites Wikipedia for governments and billionaires

https://www.thebureauinvestigates.com/stories/2026-01-14/london-pr-firm-rewrites-wikipedia-for-go...
7•RaSoJo•15m ago•0 comments

The manufacturer of Revital, a wound-healer made from chicken (1982)

https://www.upi.com/Archives/1982/11/24/The-manufacturer-of-Revital-a-wound-healer-made-from-chic...
1•schemathings•15m ago•1 comments

Show HN: AIIM – Parametric Identity Engine for Consistent NPCs

https://ai-im.tech
1•juliavvrn•16m ago•0 comments

Peter Watts – Blindsight is an excellent hard scifi novel

https://en.wikipedia.org/wiki/Blindsight_(Watts_novel)
2•axismundi•16m ago•0 comments

Show HN: Mother May I? – Auto-approve safe Bash commands in Claude Code

https://github.com/dgerlanc/mmi
2•dgerlanc•16m ago•0 comments

As Bitcoin Rewards Dry Up, Will the Blockchain Tumble Off a Cliff?

https://tickerfeed.net/articles/ninety-five-percent-of-bitcoin-mined
1•sethops1•16m ago•0 comments

AT Protocol Primer

https://stevedylan.dev/posts/atproto-starter/
1•danabramov•18m ago•0 comments

Show HN: I've been using AI to analyze every supplement on the market

https://pillser.com/
1•lilouartz•18m ago•0 comments

Welcome to the Chess960v2 Era: An Experiment That Will Change Chess

https://chess960v2.com/en/news/2026-01-22-first-championship
1•lavren1974•18m ago•0 comments

Pikuma: Courses

https://pikuma.com/courses
1•ibobev•19m ago•0 comments

Toby Kiers, World Champion of Fungus

https://www.nytimes.com/2026/01/14/science/toby-kiers-fungus-tyler-prize.html
1•bookofjoe•19m ago•1 comments