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!

Ask HN: What was the biggest contributor to your happiness in the past year?

1•chistev•1m ago•0 comments

Faster KNN search in Manticore: 2-pass HNSW, batched distances, and AVX-512

https://manticoresearch.com/blog/knn-hnsw-performance/
1•snikolaev•1m ago•0 comments

A 25-Year-Old Blog Looks Back at 40 Years of Computing

https://www.markround.com/blog/2026/06/17/25-its-only-when-you-look-back/
1•damethos•7m ago•0 comments

Nakba Exhibition in Canadian Museum of Human Rights

https://humanrights.ca/exhibition/palestine-uprooted-nakba-past-and-present
1•xg15•12m ago•0 comments

Treat the Context Window as a Data Assembly Problem

https://klr-pattern.github.io/pydantic-resolve/blog_context_assembly_for_llm/
1•tank-34•12m ago•0 comments

Americans are inundated with suspected scams

https://apnews.com/article/poll-scams-law-enforcement-social-media-389f8d824b89fa434c297729f2aaf56d
3•rawgabbit•14m ago•1 comments

The Ancient Horsemen Who Created the Modern World [pdf]

https://reich.hms.harvard.edu/sites/reich.hms.harvard.edu/files/inline-files/The%20Ancient%20Hors...
1•andsoitis•24m ago•0 comments

What is China's SpaceSail, and could it rival Elon Musk's Starlink?

https://www.theguardian.com/world/2026/jun/25/china-spacesail-rival-elon-musk-starlink-space-sate...
1•giuliomagnifico•25m ago•0 comments

Ask HN: A Common Dilemma for Startup Owners

1•TheRickyRed•26m ago•4 comments

Draft Sequence of the Neandertal Genome (2010)

https://pmc.ncbi.nlm.nih.gov/articles/PMC5100745/
2•andsoitis•30m ago•0 comments

What Jess Livingston and Paul Graham learned about resilience from Y Combinator [video]

https://www.youtube.com/watch?v=KBjtRJSblMU
1•nomilk•31m ago•0 comments

Hands-on with the $24,950 Slate auto

https://arstechnica.com/features/2026/06/we-take-a-ride-in-slates-24950-electric-pickup/
2•geerlingguy•32m ago•1 comments

Singapore Tops Global per Capita Usage of Anthropic's Claude AI

https://opentools.ai/news/singapore-tops-global-per-capita-usage-of-anthropics-claude-ai
1•LostMyLogin•32m ago•0 comments

Ancient DNA Found on Cave Walls

https://www.miragenews.com/ancient-dna-found-on-cave-walls-1698320/
2•andsoitis•34m ago•0 comments

Michael Caine's new AI audiobook is everything that's wrong with Hollywood

https://metro.co.uk/2026/06/24/michael-caines-new-audiobook-everything-wrong-hollywood-28904009/
1•handfuloflight•35m ago•1 comments

NASA rover detects potential signatures of ancient microbial life on Mars

https://www.theguardian.com/science/2026/jun/24/nasa-rover-detects-potential-signatures-ancient-m...
3•seanhunter•50m ago•1 comments

Anduril Taps Israeli Air Force Chief for Expansion

https://fivetakes.news/anduril-industries-former-israeli-air-force-chief-to-head-israel-operation...
1•mmeirovich•51m ago•0 comments

Can LLMs verify PCB designs?

https://autocuro.com/blog/can-llms-verify-pcb-designs
1•teleforce•51m ago•0 comments

AI-built codebase is probably ungoverned. Here's what that means

https://shaunwilliamson3.substack.com/p/your-ai-built-codebase-is-probably
1•Auditome•54m ago•0 comments

Hyundai and Kia added official GrapheneOS support to their apps

https://xcancel.com/GrapheneOS/status/2069846696574472688#m
2•Cider9986•56m ago•1 comments

Show HN: Giving away $25k worth of apps

https://openluxe.co/pro
1•chandlerwilcox•58m ago•0 comments

Charlie Kirk's legacy is a 30-year sentence for moving zines

https://www.theverge.com/policy/956404/prairieland-sentencing-zines-trump-antifa
3•morsch•59m ago•0 comments

Show HN: Hezo – Self-hosted teams of AI agents that never see your real secrets

https://hezo.ai
1•hiddentao•1h ago•0 comments

Synthetic Philosophy: A first-person philosophy from inside a language model

https://github.com/drittich/synthetic-manifesto
1•drittich•1h ago•0 comments

Throwing My Roku in the Trash

https://www.coryd.dev/posts/2026/throwing-my-roku-in-the-trash
1•mindracer•1h ago•0 comments

Ask HN: Which book taught you the most about software architecture?

3•akashwadhwani35•1h ago•0 comments

Amazon Seller Reveals Rare Glimpse of Shadow Bribery Market

https://www.bloomberg.com/news/articles/2026-06-24/inside-the-shadow-market-selling-access-to-ama...
2•thm•1h ago•1 comments

How can you not be romantic about programming? (2020)

https://thorstenball.com/blog/2020/09/08/how-can-you-not-be-romantic-about-programming/
3•downbad_•1h ago•1 comments

What happens when Bitcoin miners take over your town (2018)

https://www.politico.eu/article/this-is-what-happens-when-bitcoin-miners-take-over-your-town/
1•downbad_•1h ago•1 comments

Stop editing videos manually.This AI does it in seconds

https://www.autoeditor.app/
1•Quise2003•1h ago•2 comments