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: Anyone Homeschooling Their Kids?

1•wbnns•32s ago•0 comments

The efficient frontier of LLM inference

https://www.baseten.co/blog/the-efficient-frontier-of-llm-inference/
1•philipkiely•3m ago•0 comments

TEAS: Tracking Evolving AI and Systems – cost, accuracy, performance, energy

https://www.teasbench.com/
1•matt_d•4m ago•0 comments

Teltonika RUTM: industrial cellular and Ethernet routers

https://wiki.teltonika-networks.com/view/RUTM_Routers
1•gregsadetsky•7m ago•0 comments

GitHub CLI: Media in issues, pull requests, and comments

https://github.blog/changelog/2026-09-01-github-cli-media-in-issues-pull-requests-and-comments/
1•lovre•8m ago•1 comments

Giving Feedback After a Mistake Is Worse Than Waiting a Day

https://www.reddit.com/r/askmanagers/comments/1w4aiki/the_management_lesson_i_learned_too_late_gi...
1•bucket2015•9m ago•0 comments

To bot or not to bot: My personal rules of engagement with AI

https://code2yugen.substack.com/p/what-i-use-ai-for-and-what-i-never
1•anukin•11m ago•0 comments

Logic, Rhetoric and Legal Reasoning in the Qur'an

https://www.routledge.com/Logic-Rhetoric-and-Legal-Reasoning-in-the-Quran-Gods-Arguments/Gwynne/p...
1•handfuloflight•12m ago•0 comments

Smartwatch is lying to you about how many calories you burned, Study finds

https://news.fiu.edu/2026/your-smartwatch-is-lying-to-you-about-how-many-calories-you-burned-in-y...
1•DeepLogin•17m ago•0 comments

One-Handed Hyperbolic Clock

https://jpivarski.github.io/hyperbolic-map/clock.html
1•mathgenius•20m ago•0 comments

ChatGPT desktop app bundles a full copy of the LibreOffice

https://twitter.com/simonw/status/2094864223683903800
1•hisamafahri•20m ago•0 comments

Presage – Kubernetes autoscaling that forecasts demand with TimesFM

https://github.com/breezycourses/presage
1•subhamkts•25m ago•1 comments

New Google AI Model Said to Narrow Gap on Coding Ability (Gemini 3.8 Flash)

https://www.wsj.com/tech/ai/new-google-ai-model-said-to-narrow-gap-on-coding-ability-264c6052
1•petilon•28m ago•0 comments

FTC alleges Amazon illegally made $20B by rigging billions of ad auctions

https://arstechnica.com/tech-policy/2026/09/ftc-alleges-amazon-illegally-made-20-billion-by-riggi...
2•kurthr•28m ago•0 comments

BallGOAT – Play a whole football career in 5 minutes

https://theballgoat.com/
1•snowbol•30m ago•0 comments

Coin and Bullion Melt Value Calculators

http://coinapps.com/
1•gregsadetsky•32m ago•0 comments

Perplexity launches privacy-minded 'hybrid compute' AI feature for Mac

https://9to5mac.com/2026/09/01/perplexity-launches-privacy-minded-hybrid-compute-ai-feature-for-mac/
2•DGAP•33m ago•0 comments

FBI Probes Service Selling 153M+ Drivers Licenses

https://krebsonsecurity.com/2026/09/fbi-probes-service-selling-153m-drivers-licenses/
3•tatersolid•33m ago•0 comments

Nvidia's Anthropic Deal: Just Don't Call It 'Circular Financing'

https://www.barrons.com/articles/nvidia-stock-price-anthropic-deal-ai-circular-financing-6be908a3
3•doener•33m ago•0 comments

Show HN: Notes Plus – A Markdown Apple Notes Clone with Latex, Excalidraw etc.

https://notesplus.io/
2•sliqqq•34m ago•1 comments

Google vs. Canva

https://vector.news/google-takes-aim-at-canva/
1•artur_makly•34m ago•0 comments

Improving our alignment and security efforts

https://www.anthropic.com/news/improving-alignment-security-efforts
2•reasonableklout•38m ago•0 comments

Show HN: Secure agentic email infrastructure with beta desktop client

https://github.com/adecubed/gigamail
2•Adecubed•43m ago•0 comments

OpenAI delayed its new model's development after the Hugging Face hack

https://www.theverge.com/ai-artificial-intelligence/987695/openai-astra-unreleased-model-cybersec...
4•sbulaev•44m ago•2 comments

Rust Function Overloading – Call for Experimentation

https://blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/
2•birdculture•51m ago•0 comments

The ColorChecker, photography's most important 24 squares, turns 50

https://www.dpreview.com/news/the-colorchecker-photographys-most-important-24-squares-turns-50/
2•sohkamyung•57m ago•0 comments

Open Source Access Control Management Application

https://github.com/Simkura-tech/loudin
1•jackmerrifield2•57m ago•1 comments

World's biggest dark matter detector spots a single weird particle

https://www.science.org/content/article/world-s-biggest-dark-matter-detector-spots-single-weird-p...
5•zzzeek•58m ago•0 comments

Claude Preserved thinking – Modifying a conversation now results in an error

https://platform.claude.com/docs/en/build-with-claude/preserved-thinking
2•sippeangelo•1h ago•0 comments

Don't allow Gemini AI access to your Gmail

https://tuta.com/blog/google-gemini-ai-email
8•bwidlar•1h ago•1 comments