Hacker News new | ask | show | jobs
by lanstin 1907 days ago
Switch to go and channels. You won’t have to worry about locking any more, the design of your program becomes a data flow design issue. (Speaking as a former C programmer). Hardware takes so long to change but more atomicity would be great, but 8n the meantime go runtime is fast, generally lock less to the per request application code flow, and you use all the cores evenly.
1 comments

Golang's channels and goroutines are only an improvement if you are coming from JS / Python or maybe also suffered complex pthreads bugs in C/C++.

They are an improvement, absolutely, but not a big one.