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!

AMD Releases Lemonade 11.0 Local AI Server with Text-to-Speech and New Features

https://github.com/lemonade-sdk/lemonade/releases/tag/v11.0.0
1•DemiGuru•5s ago•0 comments

Schema Harness Achieves ~99% on Arc‑AGI‑3 Public

https://schema-harness.github.io/
1•jasondavies•21s ago•0 comments

Vital Signals puts continuous blood pressure monitoring into a ring

https://www.engadget.com/2216390/vital-signals-blood-pressure-ring/
1•jawns•1m ago•0 comments

In-N-Out Animation using sibling-index()

https://master.dev/blog/in-n-out-animation-using-sibling-index/
1•ibobev•2m ago•0 comments

Alerting Parents If Teens Show Signs of Distress in Conversations with Meta AI

https://about.fb.com/news/2026/07/keeping-parents-informed-teens-distress-conversations-meta-ai/
1•jawns•2m ago•0 comments

Trump to Limit Student Visas to Four Years in Latest Crackdown

https://www.bloomberg.com/news/articles/2026-07-16/trump-to-limit-student-visas-to-four-years-in-...
1•helsinkiandrew•2m ago•1 comments

Lessons Learned Rewriting a Sticky Detector

https://master.dev/blog/lessons-learned-rewriting-a-sticky-detector/
1•ibobev•2m ago•0 comments

Who you gonna believe: Grok or the docs?

https://www.johndcook.com/blog/2026/06/29/who-you-gonna-believe/
2•ibobev•3m ago•0 comments

Smart speakers could help OpenAI lose more money

https://www.engadget.com/2216556/smart-speakers-could-help-openai-lose-even-more-money/
1•SanjayMehta•5m ago•0 comments

Grok Build CLI uploads your repo (full Git history and .env) to xAI's cloud

https://old.reddit.com/r/LocalLLaMA/comments/1ut7tis/grok_build_cli_uploads_your_whole_repo_full_...
1•pavel_lishin•5m ago•0 comments

Linus Torvalds on AI in Linux Kernel Development

https://lore.kernel.org/linux-media/CAHk-%3Dwi4zC%2BZe8e%2Bp3tMv8TtG_80KzsZ1syL9anBtmEh5Z40vg%40m...
2•fbrusch•7m ago•0 comments

Show HN: Ingestr CDC – open-source CDC replication in Go

https://bruin-data.github.io/ingestr/getting-started/cdc.html
1•karakanb•8m ago•0 comments

I'm 33 and I think Claude Code is melting my brain

https://twitter.com/BraedendotTECH/status/2077353000486547633
3•mihau•9m ago•0 comments

Graham's death from aortic dissection raises questions about prevention

https://www.statnews.com/2026/07/15/lindsey-graham-death-aortic-dissection-risk-prediction-warnin...
1•brandonb•10m ago•0 comments

Reversing 1Password's Proprietary SRP Authentication Protocol

https://www.token.security/blog/reversing-1passwords-proprietary-srp-authentication-protocol
1•dhkts1•10m ago•0 comments

Mongock is being sunset; Flamingock is its successor

https://flamingock.io/blog/sunsetting-mongock/
2•aperezdieppa•11m ago•0 comments

Polaroid Film: How on Earth does it work? [video]

https://www.youtube.com/watch?v=YeqnhOYMIF8
2•areoform•12m ago•0 comments

Kalshi will offer prediction markets for clinical trials

https://www.bloomberg.com/news/articles/2026-07-16/kalshi-launches-platform-for-bets-on-biotech-t...
1•zachthewf•13m ago•0 comments

OpenAI releases an official Terraform provider

https://github.com/openai/terraform-provider-openai
1•bakigul•14m ago•0 comments

Linus Torvalds puts his foot down, tells anti-AI programmers to 'fork it'

https://www.zdnet.com/article/linus-torvalds-puts-his-foot-down-tells-anti-ai-programmers-to-fork...
3•CrankyBear•14m ago•0 comments

Show HN: Democr.ai – self-hosted agentic AI runtime with audit and RBAC

https://github.com/democr-ai/democrai
1•fabio2•15m ago•0 comments

How to Train a Gen AI Kick Drum Model on Your Old Linux Desktop with 6GB VRAM

https://www.zhinit.dev/blog/training-a-kick-drum-diffusion-model
3•zhinit•16m ago•0 comments

Bad support is a 3T problem we fixed the part that matters: the wait

https://chirps.cc/en
1•Monzed•18m ago•0 comments

Tesla driver in fatal Texas crash pressed accelerator 100%, NTSB confirms

https://www.msn.com/en-us/autos/self-driving-cars/tesla-driver-in-fatal-texas-crash-pressed-accel...
1•ivewonyoung•20m ago•1 comments

Scientists discovered the brain doesn't make decisions the way we thought

https://www.sciencedaily.com/releases/2026/07/260712011757.htm
1•mikhael•22m ago•0 comments

Security incident disclosure – July 2026

https://huggingface.co/blog/security-incident-july-2026
2•sbulaev•22m ago•0 comments

Truth Social launches service to give traders an edge with real-time service

https://www.cnbc.com/2026/07/16/trump-truth-social-wall-street-traders-api.html
2•OutOfHere•22m ago•2 comments

Foursmith VR –– Another Way to Watch VR, Like TikTok

https://cdn.jsdelivr.net/gh/foursmith/vr@main/doc/demo.mp4
1•ourongxing•23m ago•0 comments

I monitor 99 free public APIs hourly so you don't integrate dead ones

https://freeapi.watch/
2•a10a•25m ago•0 comments

Introducing Kimi K3

https://platform.kimi.ai/docs/guide/kimi-k3-quickstart
3•WithinReason•25m ago•0 comments