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: I built AgeDB, a database for AI agents to store context and data

https://github.com/sivsivsree/agedb
1•sivsivsree•2m ago•0 comments

New Physics SIM

https://pmad-sim.org/
1•lucahenrikmarsu•3m ago•0 comments

HodoClip: A browser scratchpad that saves links with clips

https://chromewebstore.google.com/detail/hodoclip/olklheidccboooipkkbegbejgkonpcln
1•rakshran•3m ago•0 comments

FlatPing, uptime monitoring and status pages

https://flatping.darsena.app
1•paranojik•4m ago•0 comments

A new report from Europe raises serious alarms about orbital collisions

https://arstechnica.com/space/2026/09/there-are-now-17000-satellites-in-orbit-and-growing-should-...
1•rbanffy•6m ago•0 comments

Pro-Human AI Declaration

https://prohumandeclaration.com/en/sign/demand-ai-accountability
1•ljmf00•6m ago•1 comments

MemTensor NPM and PyPI packages compromised with credential stealer

https://socket.dev/blog/memtensor-compromise
2•joshcsimmons•7m ago•0 comments

A Readable UseToggle

https://itsnas.me/writing/use-toggle
1•itsnasme•10m ago•0 comments

Boris Sakač, pioneer of Olympic Games IT systems, has died

https://www.vecernji.hr/sport/preminuo-boris-sakac-pionir-razvoja-informatickih-sustava-olimpijsk...
1•taubek•10m ago•1 comments

I miss old Google: readers tell us how they search the internet in the age of AI

https://www.theguardian.com/technology/2026/sep/23/google-readers-respond-ai-overview-internet-se...
1•CrypticShift•11m ago•0 comments

Show HN: C3 Playground – a C3 compiler with graphics and sound in the browser

https://play.c3-lang.org/?example=voxelspace_synthwave
2•lerno•11m ago•2 comments

Show HN: I built a phone remote for YouTube Music on PC and Mac

https://remotune.app/
1•enslee•19m ago•0 comments

LLM-friendliness as a metric: porting 20 languages with an LLM

https://kostya.github.io/LangArena/llm_friendliness.html
3•delian66•21m ago•0 comments

NYSE and Blockchain.com to explore selling tokenised stocks

https://www.reuters.com/legal/government/nyse-blockchaincom-explore-selling-tokenised-stocks-2026...
2•giuliomagnifico•22m ago•0 comments

AI meets trade Global linkages and the cross-country distribution of AI gains

https://www.oecd.org/en/publications/ai-meets-trade_13081644-en.html
1•Bluestein•27m ago•0 comments

Shutdown Sabotage Propensities in Multi-Agent Systems

https://arxiv.org/abs/2609.28274
1•sbulaev•29m ago•0 comments

Why agent harnesses need plans – and why you shouldn't compact context

https://swarmagent.dev/resources/engineering/plans-harnesses-and-final-handoffs/
1•swarmagent•29m ago•1 comments

Simulation Testing for Liveness

https://tigerbeetle.com/blog/2023-07-06-simulation-testing-for-liveness/
1•Bluestein•35m ago•0 comments

Mark Zuckerberg unveils AI 'charm' device that can fit on a keychain

https://www.ft.com/content/f4770cdf-626e-41e3-9db0-3dc0b64b8c00
2•bazzmt•36m ago•1 comments

OpenAI agents 'infiltrated Australian government website'

https://www.theregister.com/security/2026/09/24/openai-agents-infiltrated-australian-government-w...
3•giamma•40m ago•0 comments

Starlink ground station in Poland hit by fire in suspected arson attack

https://notesfrompoland.com/2026/09/24/starlink-ground-station-in-poland-hit-by-fire-in-suspected...
12•giuliomagnifico•43m ago•0 comments

Asteroid (14331) Alyankovic named after 'Weird Al' Yankovic

https://www.minorplanetcenter.net/db_search/show_object?utf8=%E2%9C%93&object_id=alyankovic
1•sohkamyung•44m ago•0 comments

Apple "Audio Intelligence" is real bad [video]

https://www.youtube.com/watch?v=GyxYEYsNUn4
2•markjgx•45m ago•0 comments

Nokia Design Archive

https://nokiadesignarchive.aalto.fi/index.html
34•pillars•46m ago•13 comments

Show HN: FreshThread – context monitor and handoffs for Codex Desktop (Windows)

https://github.com/GG95-lab/FreshThread-BETA-version
1•Oxlamarr•47m ago•0 comments

Plain text BSXdex market stats

https://markets.basicswapdex.com/plain/
1•dRK-U•55m ago•0 comments

Show HN: Tachyon – Java MCP Server SDK

https://tachyonmcp.dev
3•lumestro•1h ago•0 comments

Meta takes down satirical video confronting Meta employees with Meta glasses

https://mastodon.social/@Roelmaalderink/117324258010446819
1•Vinnl•1h ago•0 comments

Novel Arbitrary Write in SQLite

https://gabdevele.dev/posts/sqlite-dbpage-shared-objects-rce/
3•gabdevele•1h ago•0 comments

Schneider Electric in €1.2B bid for smart-home maker Shelly

https://www.reuters.com/legal/transactional/schneider-agrees-takeover-bid-shelly-70-per-share-202...
2•gfieni•1h ago•0 comments