# Google and others trying to rewrite more of the linux kernel in rust

**URL:** <https://forum.devtalk.com/t/google-and-others-trying-to-rewrite-more-of-the-linux-kernel-in-rust/10646>\
**Category:** In The News\
**Tags:** news, tech-news\
**Created:** [18 June 2021 14:44 UTC](https://forum.devtalk.com/t/google-and-others-trying-to-rewrite-more-of-the-linux-kernel-in-rust/10646 "2021-06-18T14:44:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.devtalk.com/user_avatar/forum.devtalk.com/overminddl1/32/52_2.png) [@OvermindDL1](https://forum.devtalk.com/u/OvermindDL1)\
**Post date:** [18 June 2021 14:44 UTC](https://forum.devtalk.com/t/google-and-others-trying-to-rewrite-more-of-the-linux-kernel-in-rust/10646/1 "2021-06-18T14:44:55Z")

</div>

> **[Programming languages: Rust in the Linux kernel just got a big boost from...](https://www.zdnet.com/article/rust-in-the-linux-kernel-just-got-a-big-boost-from-google/)**
>
> Momentum grows behind the push to make Rust a second language for the development of the Linux kernel and drivers.

---

<div class="post-metadata">

**Author:** ![dimitarvp](https://forum.devtalk.com/user_avatar/forum.devtalk.com/dimitarvp/32/5599_2.png) [@dimitarvp](https://forum.devtalk.com/u/dimitarvp)\
**Post date:** [18 June 2021 18:25 UTC](https://forum.devtalk.com/t/google-and-others-trying-to-rewrite-more-of-the-linux-kernel-in-rust/10646/3 "2021-06-18T18:25:34Z")

</div>

As much as I love Rust, I think it has to stabilize a few things first, like its async/await story. A part of the community is very unhappy with it and IMO not addressing this would lead to a premature adoption of Rust in the Linux kernel which will end up creating legacy code that’s almost as ugly and hard to maintain as the olden C code is.

An absolutely valiant effort but I do wonder if it’s not coming too soon.

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.devtalk.com/user_avatar/forum.devtalk.com/overminddl1/32/52_2.png) [@OvermindDL1](https://forum.devtalk.com/u/OvermindDL1)\
**Post date:** [18 June 2021 18:44 UTC](https://forum.devtalk.com/t/google-and-others-trying-to-rewrite-more-of-the-linux-kernel-in-rust/10646/4 "2021-06-18T18:44:00Z")

</div>

Yeah I quite agree that async was rushed a bit… It’s still a very nice coroutine system to use though, it doesn’t need to be purely for async use. ^.^

Beside, kernel work will not use async anyway.

---

<div class="post-metadata">

**Author:** ![dimitarvp](https://forum.devtalk.com/user_avatar/forum.devtalk.com/dimitarvp/32/5599_2.png) [@dimitarvp](https://forum.devtalk.com/u/dimitarvp)\
**Post date:** [18 June 2021 18:55 UTC](https://forum.devtalk.com/t/google-and-others-trying-to-rewrite-more-of-the-linux-kernel-in-rust/10646/5 "2021-06-18T18:55:08Z")

</div>

> [@OvermindDL1](#):
>
> Beside, kernel work will not use async anyway.

Ah, then if that’s the case then IMO Rust is quite ready to do hardcore heavy lifting.

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.devtalk.com/user_avatar/forum.devtalk.com/overminddl1/32/52_2.png) [@OvermindDL1](https://forum.devtalk.com/u/OvermindDL1)\
**Post date:** [18 June 2021 18:57 UTC](https://forum.devtalk.com/t/google-and-others-trying-to-rewrite-more-of-the-linux-kernel-in-rust/10646/6 "2021-06-18T18:57:59Z")

</div>

Async is ‘technically’ zero-cost, but most executors want to be very generic, and so to do so they need to allocate a tiny little bit of memory for each task, and the kernel doesn’t like allocating when possible, so it wouldn’t use it. It could technically still use, say, the async keywords for known typed continuation related functionality, but honestly I don’t really see that.
