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•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!

Sansar – In development Gaussian Splat rendering [video]

https://www.youtube.com/watch?v=m7fwbKn9jGk
1•ugjka•1m ago•0 comments

Americans Are Keeping Their Cars Longer Than Ever–and Remaking the Auto Industry

https://www.wsj.com/business/autos/americans-are-keeping-their-cars-longer-than-ever-and-remaking...
3•JumpCrisscross•1m ago•0 comments

Heaven knows I'm perplexed now

https://idlemachines.co.uk/essays/perplexed
1•smaddrellmander•2m ago•0 comments

The Honest Case for the Humanities

https://substack.com/@napinillos/p-199545151
1•dsubburam•4m ago•0 comments

A USB-connected speaker can infect a PC without ever being touched

https://arstechnica.com/security/2026/06/highly-reviewed-speaker-can-be-hacked-over-the-air-to-in...
2•leecoursey•5m ago•0 comments

Universal Memory Protocol – a shared format for agent memory

https://universalmemoryprotocol.io/
2•edihasaj•5m ago•0 comments

WindowSwap: Someone else's window view from anywhere in the world

https://www.window-swap.com/
1•davidbarker•7m ago•0 comments

New U.S. college grads now have higher unemployment than the average worker

https://www.randalolson.com/2026/06/04/recent-grad-unemployment-flip/
1•davidbarker•8m ago•0 comments

China has approved the first invasive brain-computer chip

https://www.technologyreview.com/2026/06/01/1138133/china-world-first-brain-chip/
2•davidbarker•9m ago•0 comments

OpenAI Unveils Lockdown Mode to Protect Sensitive Data from Prompt Injection

https://techcrunch.com/2026/06/06/openai-unveils-lockdown-mode-to-protect-sensitive-data-from-pro...
2•odig•11m ago•0 comments

Shadow Blister Effect

https://en.wikipedia.org/wiki/Shadow_blister_effect
2•thunderbong•11m ago•0 comments

Show HN: Typedframes – Pandas/polars column name checking at lint time

https://github.com/w-martin/typedframes
1•w-martin•12m ago•2 comments

I am giving up on VM Gaming

https://deployonfri.day/posts/i-am-giving-up-on-vm-gaming
1•BoKKeR11•12m ago•0 comments

The Case for Space Datacenters

https://newsletter.semianalysis.com/p/to-boldly-go-the-case-for-space-datacenters
3•davedx•13m ago•0 comments

Eating Out

https://www.futilitycloset.com/2026/06/06/eating-out/
1•speckx•13m ago•0 comments

Madagascar Hissing Cockroach

https://en.wikipedia.org/wiki/Madagascar_hissing_cockroach
2•davedx•14m ago•1 comments

Thermometry at the MK Scale, Revisited

http://nanoscale.blogspot.com/2026/06/thermometry-at-mk-scale-revisited.html
1•EvgeniyZh•18m ago•0 comments

Milky Way black hole's missing wind found after a half-century-long search

https://phys.org/news/2026-06-milky-black-hole-century.html
3•davedx•18m ago•0 comments

For Whom the Boys Troll

https://www.cnn.com/2026/06/06/us/groypers-young-men-trolls-nick-fuentes-cec
3•1659447091•19m ago•0 comments

Elfeed 4.0 (Emacs)

https://github.com/emacs-elfeed/elfeed/blob/main/NEWS.org
2•DASD•19m ago•1 comments

Computex 2026: Are We Heading for the Agentic PC Era Yet? – EE Times

https://www.eetimes.com/computex-2026-are-we-heading-for-the-agentic-pc-era-yet/
1•rbanffy•20m ago•0 comments

Some ancient microbes frozen with Ötzi the Iceman are still growing

https://arstechnica.com/science/2026/06/otzis-mummified-body-is-home-to-ancient-strains-of-yeast-...
2•speckx•23m ago•0 comments

Creative Sound Blaster Katana V2X hijackable over Bluetooth; vendor denies flaw

https://www.tomshardware.com/tech-industry/cyber-security/creatives-sound-blaster-katana-v2x-can-...
1•sbulaev•24m ago•0 comments

Australian cockroach kingpin caught with 100k illegal bugs in record bust

https://apnews.com/article/illegal-cockroaches-seized-australia-madagascar-hissing-dubia-e35889bf...
3•randycupertino•26m ago•0 comments

Learn from Your Mistakes: Tree-Like Self-Play for Secure Code LLMs

https://arxiv.org/abs/2606.03489
1•Extropy_•31m ago•0 comments

Made my first plugin – How I orchestrated 3 LLMs to ship a plugin in 2 hours

https://byacommonthread.com/blog/what-should-i-eat
1•kaydub•32m ago•1 comments

Huawei post-trained DeepSeek's 1.6T model on 1k Ascend 910C chips

https://www.tomshardware.com/tech-industry/artificial-intelligence/huawei-led-team-claims-it-post...
3•sbulaev•34m ago•0 comments

Zooming Fractal – WebGL Mandelbrot with music sync, PNG export and video render

https://zoomingfractal.com
1•Dr_Jonah•35m ago•0 comments

Sem: New primitive for code understanding – not LSPs, but entities on top of Git

https://ataraxy-labs.github.io/sem/
1•rohanucla•40m ago•0 comments

Phonicorn: A self-hosted phonics flashcard app for kids practice word sounds

https://github.com/onatm/phonicorn
1•onatm•41m ago•1 comments