Remix.run Logo
Hendrikto 3 hours ago

> threads are inherently and inescapably too heavy weight to express concurrency in an efficient way

Your premise is wrong. There are many counterexamples to this.

LelouBil an hour ago | parent [-]

Can you explain more ? I always heard this.

Hendrikto an hour ago | parent [-]

The most promiment example is probably Go with its goroutines, but there are so many more. You can easily spawn tens of thousands of goroutines, with low overhead and great performance.

igregoryca 25 minutes ago | parent [-]

Goroutines/"fibers"/"green threads" are usually scheduled by the runtime system across a small pool of actual OS threads.