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•9mo 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•9mo ago
Finally!

Ask HN: Help finding the link to criticism of what became an Internet standard

1•logicallee•38s ago•0 comments

Show HN: You Broke Prod – A game where you debug production incidents

https://www.youbrokeprod.com/
1•cdnsteve•41s ago•0 comments

AI Coding Agent Deserves a Soundtrack – 28 Game Packs, 225 Sounds

https://github.com/Citedy/game-sounds
1•ntty•44s ago•1 comments

DVD Demystified (2012)

https://demystified.info/dvd/
1•ripe•4m ago•0 comments

Show HN: I built a marketplace to see if OpenClaw bots can make money

https://moltmart.store/us
1•sebrindom•5m ago•0 comments

Greater Fool Theory

https://en.wikipedia.org/wiki/Greater_fool_theory
1•wslh•5m ago•0 comments

The Man Who Stole Infinity

https://www.quantamagazine.org/the-man-who-stole-infinity-20260225/
1•pseudolus•5m ago•0 comments

Werner Herzog Isn't Afraid

https://freakonomics.com/podcast/werner-herzog-isnt-afraid/
1•impish9208•6m ago•0 comments

Palantir as Signal: What Enterprise AI Reveals About the SaaS Model

https://visserlabs.substack.com/p/palantir-as-signal-what-enterprise
1•nsoonhui•12m ago•0 comments

Wish you could see your ChatGPT history in one place?

https://alexeyondata.substack.com/p/chatgpt-data-viewer
1•kavaivaleri•13m ago•0 comments

Making a Black Bedroom Furniture Set Work

https://medium.com/@sumitkumar_33957/making-a-black-bedroom-furniture-set-work-c26f0d0239d7
1•dreamhomestore•15m ago•1 comments

Greetings from the Other Side (Of the AI Frontier)

https://substack.com/home/post/p-189177740
1•Garbage•15m ago•0 comments

EEGFrontier – an open-source EEG board built from scratch

https://github.com/TheusHen/EEGFrontier
1•TheusHen•21m ago•1 comments

My journey from a todo app to a VM where tasks are stateful executable programs

1•tracyspacy•21m ago•0 comments

Code Mode: Giving AI Agents an API in 1k Tokens (With Demos)

https://twitter.com/Cloudflare/status/2027331989632581690
1•emot•22m ago•0 comments

Try this difficult maths game

https://the67numbergame.github.io/
1•_snory•22m ago•1 comments

The Broken Token: Tokenization for Malayalam Language Models

https://thottingal.in/blog/2026/02/27/malayalam-tokenizer-llm/
1•sthottingal•23m ago•0 comments

Longbridge-Terminal: A TUI trading application based on Longbridge OpenAPI

https://github.com/longbridge/longbridge-terminal
1•mstruebing•24m ago•0 comments

Show HN: AI powered OSINT platform for Brazilian due diligence

https://vero.stratir.com
1•VanceVP•25m ago•1 comments

What It's Like to Love Someone the Internet Thinks It Knows

https://yinsuboaster.substack.com/p/what-its-like-to-love-someone-the
1•areoform•26m ago•0 comments

I Stopped Building for Humans

https://unulu.ai/blog/ai-agents-web-infrastructure
1•zeebs•26m ago•0 comments

Xkcd 2501 Generator

https://marshdeer.github.io/xkcd2501-generator/
1•Kye•26m ago•0 comments

Ransomware groups switch to stealthy attacks and long-term access

https://www.csoonline.com/article/4137010/ransomware-groups-switch-to-stealthy-attacks-and-long-t...
2•kseniamorph•31m ago•0 comments

Offlining a Live Game with .NET Native AOT

https://sephnewman.substack.com/p/offlining-a-live-game-with-net-native
2•kg•33m ago•0 comments

Communication Files: Interprocess IO before Pipes (2017) [pdf]

https://www.cs.dartmouth.edu/~doug/DTSS/commfiles.pdf
1•mpweiher•33m ago•0 comments

US Customs destroys rare floppy disk

https://twitter.com/TehKeripo/status/2027171532825571678
10•Shank•34m ago•3 comments

Chinese car crashes after voice command kills headlights

https://carnewschina.com/2026/02/27/car-crashes-after-voice-command-kills-headlights-lynk-co-z20-...
3•giuliomagnifico•34m ago•1 comments

PostmarketOS in 2026-02: generic kernels, bans use of generative AI

https://postmarketos.org/blog/2026/02/26/pmOS-update-2026-02/
2•pantalaimon•35m ago•0 comments

Perplexity Computer Review – $100 lost in an hour

https://old.reddit.com/r/perplexity_ai/comments/1rfver4/perplexity_computer_review_100_lost_in_an...
1•daniel_iversen•35m ago•0 comments

Pentagon Fires Another Laser at Drone, Prompting New Air Closure

https://www.nytimes.com/2026/02/26/us/drone-faa-dhs-el-paso-airspace.html
1•reaperducer•35m ago•0 comments