News for hackers. Stuff that matters.
Re:Microsoft to Explore Using Rust by gwbas1c on Thursday July 18, 2019 @09:44AM (#20469676)
Keep in mind that, in kernel mode, things like garbage collection just won't work!
Re:Microsoft to Explore Using Rust by __s on Thursday July 18, 2019 @09:58AM (#20469806)
Re:Microsoft to Explore Using Rust by sametmax on Thursday July 18, 2019 @09:55AM (#20469778)
Good thing rust doesn't have one.
Re:Microsoft to Explore Using Rust by Matthias247 on Thursday July 18, 2019 @12:54PM (#20471694)
I would argue that it actually might not matter too much:

1. In a constraint context (embedded/kernel) you want to preallocate most things anyway, since even normal malloc/free isn't deterministic. Once you preallocate objects, it doesn't matter if those are coming from a long-lived GCed heap or from somewhere else.

2. Kernels like Linux rely on the fact that some small allocations never fail. Plugging in a GC and asserting that it won't fail would have the same effect (with some impact on latencies).

What might be most important is that the language supports explicit stack allocations, which avoids the need for any kind of heap when necessary. That is given for languages like C# and Go.

Re:Microsoft to Explore Using Rust by hi41 on Thursday July 18, 2019 @11:12AM (#20470643)
Could you please expand on this. When garbage collection works in applications and webservers that handle large number of requests, why wouldn't it work in OS kernel?
Re:Microsoft to Explore Using Rust by inlined on Thursday July 18, 2019 @11:27AM (#20470816)
GC can create noticeable pauses in the whole windows UX because windows scales vertically in a machine not horizontally in a DC. And per another comment I made, if your OOM handler needs to JIT it can be catastrophic.
Re:Microsoft to Explore Using Rust by arcticbull on Thursday July 18, 2019 @11:24AM (#20470794)
It introduces indeterminism into a system that strives to have as little as possible. You could of course, but you probably shouldn’t.
Re:Microsoft to Explore Using Rust by merb on Thursday July 18, 2019 @09:54AM (#20469768)
maybe it would? maybe somebody could create a co-processor just for that. sadly cpu's won't actually have specific extensions to have a good way of doing garbadge collection. but I guess it would be pretty helpful.
Re:Microsoft to Explore Using Rust by 0815test on Thursday July 18, 2019 @12:21PM (#20471372)
So, LISP machines?
Re:Microsoft to Explore Using Rust by merb on Thursday July 18, 2019 @01:30PM (#20472076)
maybe, without the brackets, of course.
Re:Microsoft to Explore Using Rust by pjmlp on Thursday July 18, 2019 @12:07PM (#20471231)
Xerox PARC, ETHZ, DEC and MSR had other opinion regarding that.