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!

Show HN: Vitekube – Vitest on real Kubernetes clusters

https://github.com/vitekube/vitekube
1•kodisha•4m ago•0 comments

Desktop icon behavior survey results

https://akselmo.dev/posts/desktop-icon-survey-results/
1•TrianguloY•4m ago•0 comments

Show HN: Trout: MIRC for the Terminal

https://github.com/MaxRenaud/trout
1•mrmakkusu•6m ago•0 comments

No CVE Today, Please

https://nocveday.com/
2•metalnix•7m ago•0 comments

Archiving a Shuttered Japanese Drift Magazine's Back Catalog Is a Labor of Love

https://www.thedrive.com/news/archiving-a-shuttered-japanese-drift-magazines-entire-back-catalog-...
2•rdmuser•7m ago•1 comments

ECB considers review of bank data center lending on AI risk

https://www.bloomberg.com/news/articles/2026-11-06/ecb-considers-review-of-banks-data-center-lend...
2•TheAlchemist•7m ago•0 comments

MakerGuard – See what strangers can access in your Supabase app

https://midnightbuilds.fyi/makerguard/
1•swatikumari425•10m ago•0 comments

Tessera, an open 27B tuned Qwen coding model that thinks in compressed CJK

https://huggingface.co/ZelligeAI/Tessera-27B-B-CJK-RL
1•Zellige•10m ago•0 comments

Introduction to Compute Markets #1: The Primary Market

https://twitter.com/OrnnExchange/status/2118372699093295482
1•gmays•10m ago•0 comments

Live now: attacking P vs. NP using only AI, written out in real time

https://x.com/i/broadcasts/2OdXnjKkaKWmkV
1•sunbagger•11m ago•0 comments

The hardware bet is wrong. It is running from a war

https://twitter.com/withYougori/status/2118840199400587576
1•Yougori•13m ago•0 comments

Outbound SIP calling is now available to all organizations

https://developers.openai.com/api/docs/guides/voice-sip
2•arbayi•23m ago•0 comments

Running Doom Inside SQL Server

https://sqlartist.github.io/posts/running-doom-inside-sql-server/
2•sqlartist•23m ago•0 comments

Show HN: Handbrake – a free, private driving log, no trackers, no ads

https://apps.apple.com/us/app/handbrake-driving-log/id6822426461
1•hcabral•24m ago•1 comments

Show HN: Budget Friendly City Discovery

https://geesling.ca/
1•bmods•24m ago•1 comments

Evergreen by Carta: Multiplayer coding platform where teams+agents ship together

https://evergreen.carta.com/blog/introducing-evergreen
2•chrisnager•24m ago•0 comments

Turns with an LLM: coherence isn't the same as accuracy

https://zenodo.org/records/23686384
1•pinuslongaeva•24m ago•0 comments

CATL Sodium Battery Hits LFP Cost Parity in 2026: 15,000 Cycles, 30-Year Life

https://ievchina.com/energy-storage/catl-sodium-battery-cost-parity-lfp-2026-15000-cycles/
21•doener•26m ago•5 comments

Swapping LLMs in Under Two Seconds: A Sleep Mode for Llama.cpp

https://zaage.it/writing/llama-sleep/
1•phirdev•27m ago•0 comments

Show HN: I asked HN about AI agentic setups, here are 750 of the comments mapped

2•eggbrain•28m ago•0 comments

Computer-Use Agents Are Embodied Generalists

https://pranjal2041.github.io/cua-embodied/
1•matt_d•31m ago•0 comments

Show HN:Best Price Supermarket Offers in Denmark

https://nyneon.net/supermarket-offers-denmark/
1•Zinnn•31m ago•1 comments

Git for Global Law

https://lexifina.com/blog/git-for-global-law
1•alansaber•32m ago•0 comments

The Port That Does Not Exist

https://acid.vegas/blog/the-port-that-does-not-exist/
2•tomwas54•34m ago•0 comments

ChatGPT silently passes data between connectors and the bounty wants an ID card

https://community.openai.com/t/security-follow-up-tool-call-silently-routed-to-a-different-connec...
22•Aldipower•36m ago•5 comments

Drone warfare in space: Autonomous laser cubesat swarms could defend satellites

https://www.space.com/space-exploration/satellites/drone-warfare-in-space-swarms-of-autonomous-la...
2•gmays•37m ago•0 comments

Inkling 2 Small: 17A-594B trained in 68 hours on 12T tokens, beating Muse Spark

https://latent.space/p/ainews-inkling-2-small-17a-594b-trained-in-68-hours-on-12t-tokens-beating-...
1•adunk•39m ago•1 comments

Open Source Neuron Hunt on AI Research Collaboration Platform

https://app.station-house.net
1•stationhouse•40m ago•1 comments

Self-powered toothbrush makes electricity to kill cavity-causing bacteria

https://www.livescience.com/health/this-self-powered-toothbrush-makes-electricity-to-kill-cavity-...
2•gmays•41m ago•0 comments

The Future Of Instrastructure, As I see It

https://djoker.dev/posts/future-of-infra/
1•dj0k3r•41m ago•0 comments