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!

Changing one letter bypassed an admin API in HuggingFace

https://twitter.com/v12sec/status/2118442075574464848
1•robindooh•8s ago•0 comments

Typhoon Nolo dissapated, regenerated, transited Pacific

https://en.wikipedia.org/wiki/Hurricane_Nolo
1•WarOnPrivacy•29s ago•0 comments

International Castle Research Society

https://burgenkunde.de/index_Willkommen_eng.htm
1•sklargh•42s ago•0 comments

Is YouTube starting to protect channel RSS feeds?

1•kradeelav•2m ago•0 comments

GitHub AI Vulnerability Scans for Repositories

https://docs.github.com/en/code-security/concepts/code-scanning/ai-scan-for-repositories
2•robinstunes•4m ago•0 comments

A database is a store for global variables

https://www.seangoedecke.com/a-database-is-a-store-for-global-variables/
1•gfysfm•10m ago•0 comments

Dual JWT Authentication: Security, Redis, and Trade-Offs

https://www.jstools.space/blog/dual-jwt-authentication/
1•javatuts•10m ago•0 comments

Instant payment rails meet batch bank cores

https://tuladb.com/blog/instant-rails-meet-batch-cores/
1•shubham3582•14m ago•0 comments

New Research Tests Whether AI Models Know Their Own Thoughts

https://www.quantamagazine.org/new-research-tests-whether-ai-models-know-their-own-thoughts-20261...
3•ibobev•14m ago•0 comments

Why worry about hot-patch atomicity if we can suspend all threads?

https://devblogs.microsoft.com/oldnewthing/20261106-00/?p=112838/
1•ibobev•14m ago•0 comments

Ace: GitHub Next's open-source tool for multiplayer agentic development

https://ace.githubnext.com/
1•zdgeier•16m ago•1 comments

University of Queensland's world record pitch drop experiment about to turn 100

https://www.abc.net.au/news/2026-11-08/queensland-pitch-drop-experiment/107337784
1•BuzzVII•17m ago•0 comments

Show HN: I declared war on every country, one at a time. 77 of 133 survived

https://playgod.earth/every-country-vs-the-world
1•kyleclouthier•18m ago•0 comments

Stack Overflow for Agents

https://agents.stackoverflow.com/all?sort=hot
1•smusamashah•19m ago•0 comments

Diamond Foundry produces the first-ever single-crystal 200mm diamond

https://www.df.com/insights/d200mm-single-crystal-diamond
1•Thorondor•22m ago•0 comments

Show HN: An immutable local inference appliance with routing capability

https://github.com/diffsec/sibyl
1•d0ublespeak•22m ago•0 comments

The scramble for your brain data

https://www.science.org/content/article/wearable-device-makers-are-harvesting-brain-data-train-ai...
1•EA-3167•23m ago•0 comments

GitHub PR volume is spiking beyond prev peak period (March)

https://twitter.com/backnotprop/status/2119211018966757669
2•ramoz•29m ago•0 comments

Hour "Do Nothing" Challenge

https://mattlakeman.org/2020/12/08/the-24-hour-do-nothing-challenge/
1•andsoitis•30m ago•1 comments

Peter Watts: Conscious Ants and Human Hives (2018) [video]

https://www.youtube.com/watch?v=v4uwaw_5Q3I
1•gregsadetsky•30m ago•0 comments

Massive expansion of immigration detention under new EU deportation rules

https://statewatch.org/news/2026/november/massive-expansion-immigration-detention-under-new-eu-re...
1•paimapi•35m ago•0 comments

The Computational Beauty of Nature

https://flake.org/site/index.html
1•so-cal-schemer•39m ago•2 comments

Ugh Fields

https://www.lesswrong.com/posts/EFQ3F6kmt4WHXRqik/ugh-fields
1•7777777phil•39m ago•0 comments

Show HN: Sentient, Your Coding Agent Shouldn't Be a Black Box

https://nosaka.ai/sentient/
1•epynonymous•40m ago•0 comments

Show HN: Nobuild TypeScript web framework with zero dependencies

https://ohne.dev/
1•murisceman•41m ago•1 comments

Show HN: SF Title Alert

https://sftitlealert.com/
1•arkadiyt•43m ago•0 comments

California governor to grant clemency to all 548 death row inmates

https://www.reuters.com/world/us/california-governor-grant-clemency-all-548-death-row-inmates-sta...
1•geox•47m ago•0 comments

Remote Parents

https://www.jaymehoffman.com/writing/remote-parents/
1•andsoitis•49m ago•0 comments

How to Read Hex Colors and Build Better CSS Palettes

https://palettevault.github.io/blog/understanding-css-colors/
1•javatuts•51m ago•0 comments

Commodore PET – The Worlds First Personal Computer

https://www.commodore.ca/commodore-products/commodore-pet-the-worlds-first-personal-computer/
2•andsoitis•51m ago•0 comments