by dswalter · 8y ago · 0 comments
This is a rough approximation of a quote he gave during the talk:
"What makes Rust different is not that you can write high-performance, bare-metal code. People use C and C++ to do that all the time. What makes Rust different is that when you write that code, it is safe, clean, and easy to use, and you are confident in its correctness."
If even Google is using Rust for performance-critical development, that seems pretty promising to me.
https://fuchsia.googlesource.com/garnet/+/master/go/src/nets...
https://github.com/fuchsia-mirror?language=go
I'm pretty sure Go is the dominant language for networking in Fuchsia and not Rust.
Ideally, under a capability-based OS, you can just have a unikernel that directly loads user-supplied(!) modules in a bytecode format where instructions have capability-checking as an intrinsic; and then, after performing static analysis on those modules to guarantee that they don’t do anything crazy, the kernel module loader can JIT them into native code that doesn’t need to do the capability checks. Basically like if the entire userland consisted of ePBF programs—but with higher-level exposed semantics that allow for rich access to kernel structures, rather than just their handles.
Plus, you also get the benefit of safe sharing of higher-level data abstractions. A “native” userland process has to make syscalls using, at most, registers containing pointers to strings or fixed-size non-polymorphic structs. A capability-based userland module, meanwhile, could interact with the kernel even through reads and writes to a shared-memory tree or hashmap.
Essentially, with capabilities, you get all the benefits of every program having the same low-overhead access to the kernel that a kernel driver does, with none of the drawbacks of having to guard against corrupting the kernel’s state.
(Only partly a joke.)
Too bad the odds are 10000:1 that I get stuck doing Java/Go instead.
There's also the story of the Google+ UI lead who though he'd be working on another Google product, then got reassigned before he was even hired into G+ and hated his entire 9mo having never even met with Vic the VP driving G+.
Does that still happen?
Fuschia/Rust is about the only thing I'd do at Google.
[1]: https://www.youtube.com/channel/UCptxtVyJkQAJZcFwBbIDZcg