Re:Was Rust Worth It?
by PartiallyTyped on Thursday October 26, 2023 @02:33AM
(#38022405)
Linux kernel has support for rust userland drivers, and rust interops with python with pyo3.
[ Parent
| on HN ]
Not sure what you mean by "userland" drivers here, but support for kernel modules written in rust is actively being developed. It's already being used for kernel drivers like the Asahi Linux GPU driver for M1 Macs.
Re:Was Rust Worth It?
by PartiallyTyped on Thursday October 26, 2023 @03:34AM
(#38022807)
I am referring to userspace / userland drivers.
https://www.kernel.org/doc/html/v4.18/driver-api/uio-howto.h...
But you can write userspace drivers in any language, as long as that language has basic file I/O and mmap() support. There's nothing special about using Rust for userspace drivers.