Move fast and don't break things: High-performance networking in Rust
summary
Pure-Rust experimental network stack that implements zero copy parsing/serialization and aims for no heap allocation by allocating buffers on the stack, uses a Buffer trait plus composer pattern (packet builders and recursive Serializers), and isolates the few necessary unsafe operations in an unsafe marker trait from_bytes plus an unaligned trait. Current implementation can respond to pings only; design proves many invariants at compile time but does not yet provide production benchmarks.
AI-written summary · about
chapters (9)
- 0:00Start
- 3:31A NETWORK PACKET
- 6:16THE BUFFER TRAIT
- 8:18PARSING FROM A BUFFER
- 14:08THE PACKETBUILDER TRAIT
- 14:39SERIALIZING INTO A BUFFER
- 15:02THE SERIALIZER TRAIT
- 26:14SERIALIZING FROM A BUFFER
- 32:16CONCLUSION
related talks
50mHigh Performance Network Programming in Rust
41mCap'n Proto and Rust: Type Systems for Sharing
23mFast and efficient network protocols in Rust
28m"Safety in an Unsafe World"
36mWriting a Zero-Copy Database Parser from the Ground Up
23mRust in Edge Computing: Enhance Performance & Security
04mUsing the Rust Standard Library on High-End MCUs
53mRust: Reach Further!
