Geoffroy Couprie - Parsing safely, from 500MB/S to 2GB/s | Code Mesh LDN 18

preview_player
Показать описание


---

PARSING SAFELY, FROM 500MB/S TO 2GB/S
by Geoffroy Couprie

THIS TALK IN THREE WORDS:
Parser
Combinators
Rust

TALK LEVEL: Intermediate

ABSTRACT
To handle low level data, we now have a few safe languages, and good parsing libraries, to make sure untrusted data will never overstep its bounds. Unfortunately, when we need performance, we will too often resort to handwritten state machines, generally in C, and maybe a little assembly while we're at it.

Thanks to one of the most annoying formats to parse (HTTP), we will see how we can write a naive parser in Rust, and transform it to beat state of the art handwritten C parsers while keeping it as readable and safe as the original one.

---

THE SPEAKER - GEOFFROY COUPRIE
Security engineer

Geoffroy thinks a lot about parsers and protocols, and builds proxies for Clever Cloud. If left unchecked, he starts writing highly technical projects for ridiculous purposes and puns.

---

CODE SYNC & CODE MESH LDN 18
Code Mesh LDN is powered by Code Sync. Code Mesh LDN 18 was sponsored by WhatsApp, Toyota Connected, Erlang Solutions, TEAMango, and aeternity.

CODE SYNC

#CodeMesh #Parser #Combinators #Rust
Рекомендации по теме
Комментарии
Автор

Very good video. Few people care about nanosecond level improvement. But it is important!

chandlerlv