3 ms·
Garbage collection is not mandatory, and the concurrency model is often hailed as one of Gos best features.
by 0des 4y ago
Garbage collection is not mandatory, and the concurrency model is often hailed as one of Gos best features.
- ddevault 4y agoI like Go and I use it often. I also work on kernels. Go is not suitable for writing kernels.
- 0des 4y agoIm choosing to imagine that you typed this with one hand behind your back with some fingers crossed Drew.
- tialaramex 4y agoA best feature it may well be, but it requires infrastructure and the OS kernel provides that infrastructure it doesn't depend on it. Rust for Linux relies on the fact that Rust is deliberately structured in layers so that the bottom layer doesn't need that infrastructure, this was needed to make embedded Rust practical, but it's also important for Linux. Actually, Linux needs even more than Rust had initially, but that's driven further improvements to Rust itself. You could add a layer to do all this lifting (that's what e.g. a Java OS does) but that's not going to fly in Linux, which is one reason why Go for Linux isn't a thing whereas Rust for Linux is.
- forgotpwd16 4y ago>Garbage collection is not mandatory What does that mean? Isn't GC a fundamental part of Go?
- thegeekpirate 4y agoI'd never use Go to write a kernel in, but you can disable the GC using `GOGC=off`.