4 ms·
I do like Go, but I have to say I rewrote a small (500 line) Go file I'd written into Rust and was constantly thinking "this is better in Rust". And I suspect t
by IshKebab 5y ago
I do like Go, but I have to say I rewrote a small (500 line) Go file I'd written into Rust and was constantly thinking "this is better in Rust". And I suspect that Rust performance would have started pretty much where Go 1.18 is now.
But I definitely agree that reading other people's Go code is a lot easier than Rust. Especially async code. I don't understand why so many people use async outside of web servers which AFAIK is the only place you really need it.
- quickthrower2 5y agoWeb servers and web browsers, which is a lot of todays dev work.
- IshKebab 5y agoWhy would a web browser need async? It can use threads.
- quickthrower2 5y agoWell nothing needs async, you can use threads anywhere. But it is the predominant model for JS
- IshKebab 5y agoIt's the model in JS because JS does not really support threading (web workers are more like separate processes) so it's the only way to do it. The actual browser doesn't need async. When I say "need" I mean that it provides a decent performance increase.
- Matthias247 5y agonot even necessarily in web servers. If one writes a frontend proxy server which needs to work on > 10k concurrent connections it's likely the way to go. But for an application server which sees much less concurrency it might not matter that much.