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!

1•lukasanderss•19s ago

Major open problem in percolation theory potentially solved with ChatGPT

https://philipeaso.com
1•doubledamio•46s ago•0 comments

US Supreme Court backs SEC in fight over 'disgorgement' power

https://www.reuters.com/world/us-supreme-court-backs-sec-fight-over-disgorgement-power-2026-06-04/
1•1vuio0pswjnm7•48s ago•0 comments

Shadcn plus HTMX for HTML/Jinja2/Hono/Elixir/Go

https://shadcn-htmx.productdevbook.com/
1•akagusu•1m ago•0 comments

An Inside View of the Davis-Bacon Act

https://www.factorysettings.org/p/an-inside-view-of-the-davis-bacon
1•surprisetalk•1m ago•0 comments

Columnar

https://crates.io/crates/columnar
1•tosh•1m ago•0 comments

The Jo Language: Secure Programming for the AI Era

https://jo-lang.org/
1•theanonymousone•2m ago•0 comments

Practical Data-Oriented Design in C++ [video]

https://www.youtube.com/watch?v=SzjJfKHygaQ
1•tosh•2m ago•0 comments

The Road to Zero Coding

https://docs.fused.io/shorts/zero-coding-002/
1•beezle•3m ago•0 comments

Agent per Human Notarization Protocol

https://github.com/squillo/aph
1•scott-b•3m ago•1 comments

Show HN: Zero deps C++ ASR binary for Linux (0MB idle RAM, no daemons, Unix way)

https://github.com/rccyx/asryx
2•rccyx•3m ago•0 comments

1989 Tiananmen Square protests and massacre

https://en.wikipedia.org/wiki/1989_Tiananmen_Square_protests_and_massacre
1•dredmorbius•5m ago•0 comments

Comparing SpaceX IPO against past offerings

https://flowingdata.com/2026/06/04/comparing-spacex-ipo-against-past-offerings/
3•thehoff•6m ago•0 comments

Linux Foundation Announces the Intent to Launch the Tokenomics Foundation

https://www.linuxfoundation.org/press/linux-foundation-announces-the-intent-to-launch-the-tokenom...
1•Tomte•7m ago•0 comments

AI Disrupted My YouTube Business. So I Got a Job [video]

https://www.youtube.com/watch?v=AQVyHXZWILo
1•chakintosh•7m ago•0 comments

Realm is a mobile database: an alternative to SQLite and key-value stores

https://github.com/realm/realm-js
1•thunderbong•7m ago•0 comments

FAA documents outline SpaceX plans for Starfall reentry vehicles – SpaceNews

https://spacenews.com/faa-documents-outline-spacex-plans-for-starfall-reentry-vehicles/
1•rbanffy•8m ago•0 comments

Beyondflow No-Code Multi-Agent Teams with Unlimited Runs. BYOK and Ollama

https://beyondflow.app
1•ALE_DIOLA_•8m ago•0 comments

Boeing 787 nose landing gear collapses at FRA

https://aerospaceglobalnews.com/news/lufthansa-boeing-787-nose-landing-gear/
2•raffael_de•8m ago•0 comments

Jacques Hadamard (1865 – 1963)

https://grokipedia.com/page/Jacques_Hadamard
1•__patchbit__•8m ago•0 comments

Revolut Founder Is Building a Launch Pad for a $76B Fortune

https://www.bloomberg.com/news/features/2026-06-02/how-revolut-s-founder-is-building-a-76-billion...
2•petethomas•9m ago•0 comments

Ask HN: Why is it still so hard for LLMs to query NoSQL databases?

1•cammasmith•9m ago•0 comments

The Outbox Pattern Visualized

https://dteather.com/blogs/the-outbox-pattern/
1•davidteather•11m ago•0 comments

New Chat Control meetings this June. As expected, this abomination won't go away

https://old.reddit.com/r/europe/comments/1tvwp5f/new_chat_control_meetings_this_june_as_expected/
1•nickslaughter02•13m ago•0 comments

Show HN: WASM with JIT from a Swift SPM Package

https://github.com/OpenCow42/swift-wasmtime
1•acoye•14m ago•0 comments

A Cheat Sheet for Attracting Private Sector Talent to Government

https://www.factorysettings.org/p/a-cheat-sheet-for-attracting-private
1•surprisetalk•16m ago•0 comments

Show HN: 178K Parameter Neural Net That Wins Poke(rogue)like

https://blog.thiagolira.com.br/i-got-so-mad-at-poke-rogue-like-that-i-trained-a-rl-agent-to-beat-...
1•farcaster•17m ago•0 comments

Keep Yourself Drain Ready

https://gr.ht/2023/08/08/keep-yourself-drain-ready.html
1•emerongi•18m ago•0 comments

MEPs urge European Commission to take action over Europol's shadow IT

https://www.computerweekly.com/news/366643585/MEPs-urge-European-Commission-to-take-action-over-E...
2•miohtama•20m ago•0 comments

Headroom

1•tashadir•21m ago•0 comments