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!

NBA proposes new '3-2-1' draft lottery system

https://www.nytimes.com/athletic/7237953/2026/04/28/nba-draft-lottery-tanking-changes/
1•0in•1m ago•0 comments

Continuing the Story of Early DOS Development – Microsoft Open Source Blog

https://opensource.microsoft.com/blog/2026/04/28/continuing-the-story-of-early-dos-development/
1•corvad•7m ago•0 comments

The Work Between Factories

https://www.cronwell.ai/founder-letters
1•zvbz•9m ago•1 comments

Ask HN: What product analytics are you using?

1•asdev•12m ago•0 comments

Framework 16 Gets Nvidia RTX 5070 12 GB Upgrade Module for Eyewatering Price

https://www.techpowerup.com/348614/framework-laptop-16-gets-nvidia-rtx-5070-12-gb-upgrade-module-...
1•voxadam•13m ago•0 comments

Tencent used Anthropic's Claude to fine-tune it's new Hy3 AI model

https://www.reuters.com/world/china/chinese-companies-used-claude-improve-own-models-anthropic-sa...
2•webninja•13m ago•0 comments

CATL says sodium batteries are mainstream-ready, signs 60 GWh deal

https://electrek.co/2026/04/27/catl-sodium-ion-battery-60gwh-energy-storage-deal/
2•ravenical•16m ago•0 comments

Fedora 44

https://fedoraproject.org/
1•linzhangrun•16m ago•0 comments

Amazon to offer OpenAI models on AWS after Microsoft exclusivity ends

https://www.aboutamazon.com/news/aws/bedrock-openai-models
1•webninja•16m ago•1 comments

Anti-Trump Instagram pic of seashells now enough to indict ex-FBI directors

https://arstechnica.com/tech-policy/2026/04/anti-trump-instagram-pic-of-seashells-now-enough-to-i...
4•duxup•17m ago•1 comments

Five takeaways from the King's historic address to Congress

https://www.bbc.com/news/articles/c8jvl3x19v9o
1•defrost•18m ago•0 comments

Guinea Worm Disease

https://www.cartercenter.org/programs/guinea-worm/
1•gmays•20m ago•0 comments

vLLM-Compile: Bringing Compiler Optimizations to LLM Inference

https://docs.google.com/presentation/d/17WYU9T9qouY20zJg-7n_kV8DrMRJ2LHeNh_WXD6bUmc/view
1•matt_d•20m ago•0 comments

RecipeScape: An Interactive Tool for Analyzing Cooking Instructions at Scale

https://recipescape.kixlab.org/
1•skadamat•29m ago•0 comments

A Tool I Made

https://github.com/kianacaster/pman
1•kianacaster•30m ago•1 comments

Electrical current might be the key to a better cup of coffee

https://arstechnica.com/science/2026/04/electrical-current-might-be-the-key-to-a-better-cup-of-co...
1•Jimmc414•30m ago•0 comments

Modder releases PS5-Linux that turns console into a functional Linux PC

https://www.notebookcheck.net/Modder-releases-PS5-Linux-that-turns-the-console-into-a-fully-funct...
3•voxadam•31m ago•0 comments

Where Have All the Book Reviews Gone?

https://www.nytimes.com/2026/04/27/books/review/ai-book-reviews.html
1•samclemens•32m ago•1 comments

How to Glue Teflon

https://www.quirkyscience.com/how-to-glue-teflon/
2•BiraIgnacio•36m ago•0 comments

Kuleshov Effect

https://en.wikipedia.org/wiki/Kuleshov_effect
1•hyperific•36m ago•0 comments

Toward a Common Alphabet: There Is No Need for Menedzhment

https://zenodo.org/records/19869374
1•iliatoli•37m ago•0 comments

Structured-Prompt-Driven Development (SPDD)

https://martinfowler.com/articles/structured-prompt-driven/
2•cebert•37m ago•0 comments

Evaluating CUDA Tile for AI Workloads on Hopper and Blackwell GPUs

https://arxiv.org/abs/2604.23466
2•matt_d•41m ago•0 comments

What Is a "Now Page"?

https://nownownow.com/about
2•_vaporwave_•42m ago•1 comments

New study reveals why housing booms and busts are built into the system

https://www.kcl.ac.uk/news/new-study-reveals-why-housing-booms-and-busts-are-built-into-the-system
2•littlexsparkee•42m ago•0 comments

Apple wants to kill your Time Capsule, but they run NetBSD so they can't

https://www.osnews.com/story/144845/apple-wants-to-kill-your-time-capsule-but-they-run-netbsd-so-...
3•latexr•44m ago•2 comments

Blog post about Open Source contribution best practices

https://blog.csystemslab.com/blog/2026-04-26-dont-open-a-pull-request-yet/
3•vhcosta•44m ago•1 comments

Claude system prompt bug wastes user money and bricks managed agents

https://github.com/anthropics/claude-code/issues/49363
26•thomashobohm•49m ago•6 comments

Is it incel to want to be a father? [video][30min]

https://www.youtube.com/watch?v=Pf15HmxooMc
4•Bender•49m ago•0 comments

AI Worries Have Returned to Wall Street. Now Come Earnings

https://www.wsj.com/tech/ai-worries-have-returned-to-wall-street-now-come-earnings-d680e19c
4•htk•50m ago•0 comments