top | item 47148775

(no title)

ivanb | 6 days ago

The same way threads are different from goroutines, green threads, JS event loop etc.

discuss

order

cess11|6 days ago

OK, and what way is that? Smaller default heap? IIRC lparallel implements pretty much the same things as threading in Golang.

ivanb|6 days ago

It is not easy to tell because lparallel's documentation website has rotted away just the same as cl-user.net. Does anyone remember this beautiful wiki of CL libraries?

Anyway, it looks like lparallel is nice and has some very useful concurrency primitives, but it doesn't have lightweight scheduling, unlike Go. So no cheap async work with many open sockets, cheap context switching, better cache utilisation, simple language constructs and mental model for async tasks. Besides, Go has M:N scheduler. It has all these async benefits but in addition all the threading benefits. Such things can only be properly done by the implementation.