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

High-temperature memristors enabled by interfacial engineering

https://www.science.org/doi/10.1126/science.aeb9934
1•joak•31s ago•1 comments

Amazon to Acquire Globalstar and Expand Amazon Leo Satellite Network

https://www.businesswire.com/news/home/20260414237496/en/Amazon-to-Acquire-Globalstar-and-Expand-...
1•homarp•1m ago•0 comments

Qwen OAuth Free tier will be discontinued on 2026-04-15

https://github.com/QwenLM/qwen-code/pull/3207
2•angst•3m ago•0 comments

Roy Fielding's Misappropriated REST Dissertation (2020)

https://twobithistory.org/2020/06/28/rest.html
1•locknitpicker•5m ago•0 comments

REST APIs must be hypertext-driven (2008)

https://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven
1•locknitpicker•7m ago•1 comments

The 'Annoyance Economy' Is More Than Just Annoying

https://www.nytimes.com/2026/04/12/business/annoyance-economy-costs.html
1•vinni2•8m ago•0 comments

Unidentified deep sea creature encountered off the coast of Japan

https://phys.org/news/2026-04-rich-biodiversity-japan-deepest-ocean.html
2•lfaw•9m ago•1 comments

Chris Taylor on AI (2005)

https://main.kanoogi.com/updates?updates=kanoogi_updates&topic=0013#blogstart
1•fho•10m ago•0 comments

ASML raises 2026 sales outlook to €36B–€40B

https://www.asml.com/en/news/press-releases/2026/q1-2026-financial-results
2•felipevb•13m ago•0 comments

Acid-Free Paper

https://en.wikipedia.org/wiki/Acid-free_paper
1•tosh•15m ago•0 comments

Burn Peak Health for Healthy Weight Management [pdf]

https://storage.prod.researchhub.com/uploads/papers/users/187827/aceef47a-9ba6-48db-b4f1-eebb0107...
1•Zacspencet•16m ago•0 comments

LazyVim for Ambitious Developers: Second Edition

https://www.patreon.com/posts/lazyvim-for-155631128
1•DavideNL•19m ago•0 comments

People are pretending to be AI chatbots – for fun

https://www.npr.org/2026/04/14/nx-s1-5776842/ai-chatbot-comedy-ben-palmer-chatgpt
3•geox•20m ago•0 comments

Show HN: My favorite local-feeling remotely accessible Claude Code setup

https://gist.github.com/Reebz/99db98ad4d3c45ebed84989a13710788
2•Reebz•24m ago•0 comments

Capture the Narrative: Wargaming Social Media Manipulation

https://capturethenarrative.com/
2•jruohonen•27m ago•0 comments

Popular Flutter GetX repo disappeared briefly

https://github.com/jonataslaw/getx
1•nativeforks•27m ago•0 comments

Make AI say your name correctly

https://hamanlp.org/research/names/
1•boodleboodle•27m ago•0 comments

Interpretability cracked? Flexoelectric gradient field structures language

https://geoclaritylabs-production-a664.up.railway.app/
1•wwes369•27m ago•0 comments

I built a travel tool with 0% friction: No login, just RAG-powered inspiration

https://www.lupath.ai/
1•LUpath•29m ago•0 comments

Can I file for a patent for my own if I am working for an MNC

1•biswajitkar01•30m ago•0 comments

Constitutional Security: What Enterprise Infra Taught Me About AI Agent Safety

https://blog.ekelhaft.tools/constitutional-security-what-enterprise-infrastructure-taught-me-abou...
2•ttyyzz•30m ago•0 comments

Hazardous States and Accidents

https://entropicthoughts.com/hazardous-states-and-accidents
1•fagnerbrack•32m ago•0 comments

America's hiking culture is built on ego

https://www.theguardian.com/environment/2026/apr/14/americas-hiking-culture-is-built-on-ego
1•mykowebhn•33m ago•0 comments

Iran used Chinese spy satellite to target US bases

https://www.ft.com/content/1fddd2cd-1294-4e9c-a17d-5ea06b399355
2•cwwc•35m ago•0 comments

Google Gemma 4 Runs Natively on iPhone with Full Offline AI Inference

https://www.gizmoweek.com/gemma-4-runs-iphone/
2•takumi123•36m ago•0 comments

NPM retires audit endpoint; breaks pnpm audit

https://github.com/pnpm/pnpm/issues/11265
1•troad•37m ago•1 comments

Show HN: FlipAEO – Get your SaaS cited by Perplexity and AI search

1•harvansh•38m ago•0 comments

US forces kill 4 people in latest strike on vessels in eastern Pacific

https://www.aljazeera.com/news/2026/4/15/us-forces-kill-4-people-in-latest-strike-on-vessels-in-e...
1•frasermarlow•38m ago•0 comments

Arm Comes to the Framework 13

https://www.youtube.com/watch?v=CIb87SJ4xwo
1•brainless•41m ago•1 comments

Finny – describe a trading strategy in plain English, get backtested algo code

https://www.finnyai.tech
1•jaimin67•42m ago•1 comments