u/jswrennin r/rust • Recommends
On “Rust: The joy of safe zero-copy parsers”
A friend of mine designed Fuchsia's zero-copy networking parsers, and gave a talk about the approach here: link to this video
If you're interested in this sort of thing, we're working on bringing as much of it to `crates.io` as possible. Check out `zerocopy`, which provides a dogmatically sound* abstraction over reinterpreting bytes as data (and visa versa).
Next, we will be working on getting the higher-level abstractions for structuring these parsers up on crates.io, too. These are already open source (within the Fuchsia codebase), but there's lots of work to do to have them ready for general use. If all goes well, Rust users are soon going to have a mature, safe, and efficient suite of networking…