2 ms·
> using a Python, Java, C#, or JavaScript, Go is better. I’m not sure about C#. If I saw that comment couple years ago, I would mostly agree. But with modern
by Const-me 8y ago
> using a Python, Java, C#, or JavaScript, Go is better.
I’m not sure about C#.
If I saw that comment couple years ago, I would mostly agree. But with modern .NET, first-party Linux and OSX support has arrived. Also better performance, because spans, value tuples, and other modern stuff that was the main reason why .NET core diverged from slower evolving Windows-only .NET framework. The runtime is deployed with a single tar -xvf command and is quite small, e.g. for ARM Linux the gzip is 12MB.
Async-await style IO is comparable to goroutines. Multithreading is similar.
GC is not as bad as in JVM, in part because value types don’t use GC.
The language is higher-level and more expressive, with generics, LINQ, metaprogramming, etc. The amount of third-party libraries useful for network services and similar things is quite comparable.