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!

The iOS 26 Adoption Rate Is Not Bizarrely Low Compared to Previous Years

https://daringfireball.net/2026/01/ios_26_adoption_rate_is_not_bizarrely_low
1•chmaynard•2m ago•0 comments

The Secretive VIP Programs That Keep Gamers Spending

https://www.nytimes.com/2026/01/20/arts/zynga-vip-video-games.html
3•bookofjoe•4m ago•1 comments

O Fortuna

https://robcruser.substack.com/p/o-fortuna
1•joebig•6m ago•0 comments

StoryGleam – Use Storybook with Gleam Projects

https://codeberg.org/theSuess/storygleam
1•TheWiggles•6m ago•1 comments

Tesla unsupervised Robotaxis are nowhere to be found

https://lightbrd.com/ZacksJerryRig/status/2015119993428705575#m
2•TheAlchemist•13m ago•0 comments

Show HN: Reel Rogue – A browser roguelike (idler) about manipulating the odds

https://www.alt-qq.com/
1•qq-niklas•14m ago•0 comments

Show HN: AI agent that searches the Cursor forum

https://cursor.trynia.ai/
2•jellyotsiro•15m ago•0 comments

Nvidia: Dynamic Memory Compression

https://developer.nvidia.com/blog/dynamic-memory-compression/
1•alecco•19m ago•0 comments

Show HN: Skget, another CLI to add skills to your coding agents

https://github.com/czheo/skget
1•czheo•19m ago•0 comments

Code as Content

https://www.contraption.co/code-as-content-and-digital-proprioception/
1•philip1209•20m ago•0 comments

CIO: Work-from-office mandate? Expect top talent turnover, culture rot

https://www.cio.com/article/4119562/work-from-office-mandate-expect-top-talent-turnover-culture-r...
4•dmitrygr•20m ago•0 comments

Failure to press button caused outage on train lines in Tokyo

https://www.asahi.com/ajw/articles/16307027
2•resonious•29m ago•0 comments

EU groupthink manifests itself as polite silence

https://www.ft.com/content/ecf765d1-6110-420d-abcf-9255ec015b19
1•hhs•30m ago•0 comments

Show HN: C From Scratch – Learn safety-critical C with prove-first methodology

https://github.com/SpeyTech/c-from-scratch
2•william1872•30m ago•0 comments

Hiltzik: Yes, California should tax billionaires' wealth. Here's why

https://www.latimes.com/business/story/2026-01-08/yes-california-should-tax-billionaires-wealth-h...
4•PaulHoule•31m ago•0 comments

Backseat Software

https://blog.mikeswanson.com/backseat-software/
1•ruuda•32m ago•0 comments

Adoption of EVs tied to real-world reductions in air pollution: study

https://keck.usc.edu/news/adoption-of-electric-vehicles-tied-to-real-world-reductions-in-air-poll...
2•hhs•33m ago•0 comments

We are building a new browser from scratch, backed by a non-profit

https://ladybird.org/
6•nailer•42m ago•1 comments

Coding assistants are slow. So we multitask

3•brunaxLorax•46m ago•3 comments

Unhappiness Is a Choice

https://andrewconner.com/the-option-method/
2•SouravInsights•47m ago•0 comments

Everybody wants to be Thomas Bernhard

https://www.househousemagazine.com/everybody-wants-to-be-thomas-bernhard
1•hhs•47m ago•0 comments

We X-Rayed a Suspicious FTDI USB Cable

https://eclypsium.com/blog/xray-counterfeit-usb-cable/
2•aa_is_op•52m ago•0 comments

AI and Abandonware

https://jonathannen.com/ai-npm-abandonware.html
1•jwilliams•55m ago•0 comments

Specs.md – AI-native development framework

https://specs.md
2•onatm•58m ago•0 comments

Show HN: Ask CLI – A simple tool to get help with commands from the terminal

https://github.com/david-minaya/ask
3•david-minaya•59m ago•0 comments

Genomic evolution of pancreatic cancer at single-cell resolution

https://www.nature.com/articles/s41588-025-02468-9
1•bookofjoe•1h ago•0 comments

The truth about phones and mental health [video]

https://www.youtube.com/watch?v=2yVJffNplJc
1•heavyset_go•1h ago•0 comments

Show HN: I built a Mac OS App to upload your screenshots to S3

https://gofwd.to/screenfwd
2•RCM7•1h ago•0 comments

The DBLP computer science bibliography needs financial support

https://blog.dblp.org/2025/12/18/dblp-is-humbly-asking-you-for-your-kind-support/
1•leoc•1h ago•0 comments

Edward Tryon

https://en.wikipedia.org/wiki/Edward_Tryon
1•doener•1h ago•1 comments