
在 9 月 12 日都柏林举行的 2022 Linux Plumbers Conference 上,有一场关于Rust 是否会出现在 Linux 中的小型会议,讨论了将 Rust 作为一门系统编程语言集成到 Linux 内核主线的工作。会议上还有很多别的有意思的讨论,比如 Rust 编写的 NVMe 驱动程序,其性能与 C 编写的驱动程序一样好。
领导“Rust for Linux”工作的 Miguel Ojeda 介绍了过去一年 Linux 内核工作进展。虽然目前还需要 Rust 官方的基于 LLVM 的编译器,但会议上也有演示 GCC 13提供的初步的 Rust 支持,目前该工作还在进行中。GCC-Rust 已经很好地融合在一起,但要实现所有功能,并能与基于 LLVM 的编译器相媲美,这方面还有很长的路要走。
西部数据公司的 Andreas Hindborg 围绕基于 Rust 的 NVMe 驱动程序发表了演讲。虽然 Linux 内核已经拥有出色的基于 C 编写的 NVMe 驱动程序,但尝试使用 Rust 编写的 NVMe 驱动程序也很有趣,因为该驱动程序被广泛使用且很重要。测试 Rust 驱动程序的性能也很容易。
虽然 Rust NVMe 驱动程序仍处于实验阶段,但结果看起来非常好。通过Hindborg 的幻灯片可以查看详细信息:





评论