News for hackers. Stuff that matters.
Re:Criticizing Hare language approach for generic data struc... by 0des on Wednesday May 04, 2022 @08:24AM (#31259476)
Garbage collection is not mandatory, and the concurrency model is often hailed as one of Gos best features.
Re:Criticizing Hare language approach for generic data struc... by tialaramex on Wednesday May 04, 2022 @08:37AM (#31259579)
A 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.

Re:Criticizing Hare language approach for generic data struc... by forgotpwd16 on Wednesday May 04, 2022 @09:40AM (#31260233)
>Garbage collection is not mandatory

What does that mean? Isn't GC a fundamental part of Go?

Re:Criticizing Hare language approach for generic data struc... by thegeekpirate on Wednesday May 04, 2022 @12:14PM (#31262475)
I'd never use Go to write a kernel in, but you can disable the GC using `GOGC=off`.
Re:Criticizing Hare language approach for generic data struc... by ddevault on Wednesday May 04, 2022 @08:30AM (#31259530)
I like Go and I use it often. I also work on kernels. Go is not suitable for writing kernels.
Re:Criticizing Hare language approach for generic data struc... by 0des on Wednesday May 04, 2022 @09:23AM (#31260024)
Im choosing to imagine that you typed this with one hand behind your back with some fingers crossed Drew.