3 ms·
I've finally set my mind to properly learning a new language after Python, Haskell, and typescript. I'm looking into Rust especially because of how I've heard i
by hiAndrewQuinn 3y ago
I've finally set my mind to properly learning a new language after Python, Haskell, and typescript. I'm looking into Rust especially because of how I've heard it interoperates with Python (and also because it's maybe being used in the Linux kernel? Is that correct?).
- PartiallyTyped 3y agoLinux kernel has support for rust userland drivers, and rust interops with python with pyo3.
- maccam94 3y agoNot 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.
- PartiallyTyped 3y agoI am referring to userspace / userland drivers. https://www.kernel.org/doc/html/v4.18/driver-api/uio-howto.html#writing-a-driver-in-userspace https://www.kernel.org/doc/html/v4.18/driver-api/uio-howto.h...
- tremon 3y agoBut 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.
- TylerE 3y agoIsn't this false? Don't certain languages basically need, say, a libc that isn't nessesarily available in kernel space?
- tinco 3y agoRust is an excellent follow up to those languages. It's got many influences from Haskell, but is designed to solve for a very different task that's not yet in your repertoire so you'll learn a ton. And yes the Python interop is excellent.
- hiAndrewQuinn 3y agoI'm sold, thank you. Yes, it felt like a great "missing quadrant" to my generalist skillset.