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!

JavaScript Performance Tips That Make a Difference

https://jsdevspace.substack.com/p/20-javascript-performance-tips-that
1•javatuts•53s ago•0 comments

Binance – Total impact sits at around $6.3B

https://twitter.com/binance/status/2115993361517891592
1•victorbuilds•2m ago•0 comments

Mistral 4 had a release, makes it comparable to Chinese open-weight models

https://www.reuters.com/world/china/mistral-ceo-says-new-ai-model-beats-chinese-ones-some-areas-2...
1•nvmdbljstm•4m ago•1 comments

Global GPU prices rise 35% in just three months

https://videocardz.com/newz/global-gpu-prices-rise-35-in-just-three-months
1•giuliomagnifico•7m ago•0 comments

Audience Analysis – First step to project presentation

https://substack.com/profile/323507903-ukane-favour/note/c-374044494
1•UkaneFavour•8m ago•0 comments

An attack against an LLM agent is either detected or proven

1•consent-substra•9m ago•0 comments

WebGPU Best Practices

https://toji.dev/webgpu-best-practices/
1•mariuz•13m ago•0 comments

Show HN: Post-quantum signatureless authorization with recursive verification

https://zenodo.org/records/23778742
3•notsatoshinotsa•14m ago•0 comments

Ask HN: Are you tired too in this AI era?

16•mellosty•14m ago•6 comments

Stone Lighthouses

https://stonewalls.ch/div/histlighthouses
2•tontinton•17m ago•0 comments

elect.horse

https://elect.horse/
3•solarist•17m ago•0 comments

The Snowball Effect

https://aeon.co/essays/how-the-harsh-icy-world-of-snowball-earth-shaped-life-today
2•olvy0•19m ago•0 comments

Efficient Streaming Language Models with Attention Sinks

https://idlemachines.co.uk/essays/streaming-llm-attention-sinks
2•smaddrellmander•22m ago•0 comments

Last night an AI agent performed surgery on a mouse

https://twitter.com/OcanaSantero/status/2115442964574908902
2•bananaboy•24m ago•0 comments

Is it possible to build a direct democracy for one's country using GitHub?

https://github.com/jaenyf/odd
2•jaenyf•24m ago•0 comments

Why do Binance-like exchange development quotes vary so much?

https://cryptiecraft.com/crypto-exchange-development-cost/
1•monroealex17•27m ago•0 comments

I Returned My iPhone Duo

https://codakuma.com/i-returned-my-duo/
8•ricobecks•31m ago•4 comments

Losing the Blacklisting Race

https://medium.com/chainargos/losing-the-blacklisting-race-eea51d0a0f7b
1•Bluestein•34m ago•0 comments

Database Workbench 7.1.0 now available

https://www.upscene.com/news/item/20261028
1•mariuz•36m ago•0 comments

Show HN: Wayther – iOS weather app for road trips

https://wayther.alpennec.com/
2•alpennec•36m ago•0 comments

PEP 851 – Add List.discard()

https://peps.python.org/pep-0851/
2•theanonymousone•39m ago•0 comments

Augmenting Human Intellect

https://ryo.lu/journal/augmenting-human-intellect
1•allenleee•39m ago•0 comments

The AI bubble could expose your deepest secrets

https://www.bbc.com/future/article/20261029-the-ai-bubble-could-expose-your-deepest-secrets
2•saikatsg•40m ago•0 comments

Startups look for ways to make quieter drones

https://www.bbc.co.uk/news/articles/ck1exgejq3xvo
2•edward•40m ago•0 comments

LLMs recognize dropout and Gaussian noise applied to their activations

https://arxiv.org/abs/2604.17465
2•gone35•49m ago•0 comments

The science behind why we throw up, or vomit

https://www.columbiatribune.com/story/lifestyle/family/2017/08/01/thrown-up-science/985640007/
1•thunderbong•49m ago•0 comments

The Lowest Animal by Mark Twain

https://www.thoughtco.com/the-lowest-animal-by-mark-twain-1690158
2•rramadass•51m ago•0 comments

Every Pixel in This Picture Is a Real Marble [video]

https://www.youtube.com/watch?v=w1ks0Vy98KI
1•ColinWright•52m ago•0 comments

PC chip plunge wipes out a quarter of Intel's value

https://www.theregister.com/systems/2026/10/30/pc-chip-plunge-wipes-out-a-quarter-of-intels-value...
3•nephihaha•52m ago•0 comments

Rust Features in the Future

https://lwn.net/SubscriberLink/1099606/af01dc337530f419/
2•mkesper•53m ago•0 comments