frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Go-Flavored Concurrency in C

https://antonz.org/concurrency-in-c/
52•ibobev•4h ago

Comments

BoingBoomTschak•3h ago
Just a small "ackchyually": Go is basically a modern Limbo which is itself based on Alef and there was an official "Alef for C" thing in Plan 9 in libthread (https://9p.io/magic/man2html/2/thread)

EDIT: looks like it was ported on UNIX as part of Plan9Port (https://github.com/9fans/plan9port/blob/master/src/libthread...)

bitwize•2h ago
As I recall, Bell Labs actually abandoned Alef on Plan 9 because the concurrency primitives they wanted were doable in C so they just went with that.
MarkSweep•57m ago
Russ Cox created libtask, a similar library that runs on multiple UNIXes (UNIXEN?). Based on the COPYRIGHT file, it may be based on libthread.

https://swtch.com/libtask/

It’s a great little library. Very easy to read and understand.

fsmv•3h ago
But select statements are the most important part, and second to that is the fact that goroutines are low cost user space threads
kccqzy•3h ago
Yes exactly. The author’s design decisions only make sense if this is supposed to be a toy language. On using pthreads rather than fibers:

> I decided not to use one. I wanted something dead simple — an approach I could explain in a paragraph, using tools every C programmer already knows. The trade-off is that you lose some performance with fine-grained blocking, but in many real-world situations, pthreads work fine if you use a worker pool.

Sure. You can take a large production Go app and measure how many user space threads are launched; it’s decidedly a lot more than the typical number of threads if you were using pthreads.

And the author didn’t really justify why select isn’t implemented other than implementation difficulty.

throwaway894345•2h ago
I've been using Go regularly since 2012. Worker pools are completely valid and idiomatic in Go. Not sure how you read that quote and concluded "toy".
Chu4eeno•3h ago
I was expecting proper green threads (it's not like it's impossible in C, there's several C libraries for doing it).
dandersch•2h ago
There is also libmill/libdill, which implements go-style coroutines using setjmp and is usable directly from C (not just as a transpilation target).

https://libmill.org/

adamrezich•20m ago
What on earth is going on when you click the Tutorial button on that website?!

Ask HN: Feedback on my solo, local-LLM-only AI content pipeline (100 posts in)

https://www.gladlabs.io
1•gladlabs•1m ago•0 comments

Show HN: AgentsProof – a small project for testing AI agents

https://www.agentsproof.dev/
1•adeeonline•2m ago•0 comments

Show HN: Remove Watermarks from Any Image

https://watermarkremoverai.com/
2•nadermx•4m ago•0 comments

I gave a local LLM a "delete production" button and watched what it did

https://medium.com/@dhanushg295/my-local-35b-avoids-every-trap-tool-1d2d2f1850cc
2•_dhanush_•6m ago•0 comments

Accidental Anonymity

https://macwright.com/2026/06/24/accidental-anonymity
2•caminanteblanco•7m ago•0 comments

Bending Spoons Hiring Strategy

https://www.wsj.com/business/bending-spoons-jobs-hiring-stock-eaed2b8e
2•sanj•8m ago•0 comments

Show HN: Phlox-GW – Open-source LLM gateway without the enterprise paywall

https://robert-mcdermott.github.io/phlox-gw/
2•mcdermott•9m ago•0 comments

Cutting off Russian enrichment raises uranium mining demand,with no new reactors

https://raw-science.org/uranium-enrichment-russian-ban/
2•raw-science•9m ago•0 comments

Ask HN: Does appearance matter more than we admit as founders?

2•jmaha•10m ago•2 comments

Show HN: YouTube Guitar Tab Parser

https://github.com/marcelpanse/youtube-guitar-tab-parser
3•neogenix•12m ago•1 comments

EU wants 13+ age restriction for social media

https://www.politico.eu/article/vdl-announces-age-restrictions-for-social-media-and-other-platforms/
2•haunter•12m ago•0 comments

Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

https://github.com/Poseidon-fan/linux-0.11-rs
2•arto•13m ago•0 comments

"I'm convinced that a large % of programmers don't like computers"

https://twitter.com/lauriewired/status/2076718031305384161
5•bundie•16m ago•0 comments

CFPB Employees Report to New Office as Potential Layoffs Loom

https://news.bloomberglaw.com/banking-law/cfpb-employees-report-to-new-office-as-potential-layoff...
2•petethomas•16m ago•0 comments

German firm files for insolvency, blames cybercrims who shut down prod 6 weeks

https://www.theregister.com/cyber-crime/2026/07/13/german-firm-files-for-insolvency-blames-cyberc...
2•Bender•16m ago•1 comments

Found: Cloud of Sugar in Interstellar Space

https://www.scientificamerican.com/article/scientists-spot-sugar-in-interstellar-space-for-the-fi...
2•Varelion•17m ago•0 comments

SREs to AI agents: Prove yourself before you touch production

https://www.theregister.com/ai-and-ml/2026/07/13/sres-to-ai-agents-prove-yourself-before-you-touc...
2•Bender•17m ago•0 comments

Context switching is the new flow state

https://sahanacarlsen.substack.com/p/context-switching-is-the-new-flow
5•seanlinehan•17m ago•0 comments

The reconciler: distributing standards across ten repos without a monorepo

https://lionshead.digital/notes/the-reconciler
2•earnestamateur•17m ago•0 comments

The more you write, the more you begin to see

https://velvetnoise.substack.com/p/the-more-you-write-the-more-you-begin
2•jger15•17m ago•0 comments

Show HN: Sigwire – a live TUI switchboard for every signal on your Linux box

https://github.com/yeet-src/sigwire
3•zasc•17m ago•0 comments

Microsoft chief turns hostile on frontier AI labs, warns companies to guard IP

https://www.theregister.com/ai-and-ml/2026/07/13/microsoft-chief-turns-hostile-on-frontier-ai-lab...
3•Bender•18m ago•0 comments

The security checks in every Lionshead PR

https://lionshead.digital/notes/the-security-checks-in-every-lionshead-pr
2•earnestamateur•18m ago•0 comments

Show HN: FOMO – a browser extension that tells your team what they're missing

https://usefomo.co
2•JadAmmar•19m ago•0 comments

The End of the Slack Tax

https://readtheinference.substack.com/p/the-end-of-the-slack-tax
3•mmayernick•20m ago•0 comments

Gaming is in serious trouble. GTA VI may be the nail in the coffin

https://www.salon.com/2026/07/13/gaming-is-in-serious-trouble-gta-vi-may-be-the-nail-in-the-coffin/
2•speckx•20m ago•0 comments

Bootstrapping GDC with DMD

https://briancallahan.net/blog/20260713.html
2•LorenDB•20m ago•0 comments

Stripe Fee Auditor–upload Balance CSV,see real effective rate(not just 2.9%)

https://feeauditor.com
2•Ksantor•21m ago•0 comments

Mind game helps men reduce Alzheimer's risk by 25% but not women

https://www.newscientist.com/article/2578806-game-that-reduces-dementia-risk-clears-amyloid-from-...
2•binyu•23m ago•0 comments

Samsung will delete your health data if you don't let them use it to train AI

https://neow.in/cWsyMTV3
3•bundie•23m ago•0 comments