Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Yes, goroutines are preemptive, too. And they took a lot of inspiration from Erlang and the BEAM when they designed goroutines and channels.

In Go you manage your goroutines and channels explicitly, while the BEAM runs all processes for you, and I've seen Robert Virding run an infinite loop in one Erlang process while the rest were serving requests, the core with the loop stayed at 100% but 0 requests were dropped and the latency and throughput was more or less the same, pretty crazy capabilities.

You can do the same in Go but it's a lot more manual.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: