~/talk

The Story of Stylo: Replacing Firefox's CSS engine with Rust

Talkat Rust Belt Rust 2017 · 2017-10-26..10-27· [rust, web-platform]
slides:none on file

Stylo is an 85,000-line Rust style engine that ships into Firefox and replaces a 160,000-line C++ system; the integration uses bi-directional FFI boundaries, bindgen-generated bindings, and a GCC static-analysis plugin to enforce thread-safety. Parallelism uses Rayon and a work-queue cascade; surprises include enum size blowup, arc pointer overhead, heavy vendoring of crates, and lack of fallible allocation on Windows. Results: shipped code, fewer fuzzer bugs, and measurable performance wins.

AI-written summary · about

  1. 0:00Firefox (Gecko)
  2. 0:33Gecko's old style system
  3. 0:52Gecko's new style system (Stylo)
  4. 1:10What is a style system?
  5. 5:10Cascading in parallel
  6. 6:01Awkward history
  7. 7:10Enter Servo
  8. 10:04Integrating Stylo: Rust APIs
  9. 12:03Integrating Stylo: C++ APIs
  10. 14:57FFI choices: Functions
  11. 16:39FFI choices: Types
  12. 17:53Idiomatic FFI from Rust
  13. 21:46Parallel challenges
  14. 22:18Parallel style system hazards
  15. 24:49Pain points: memory usage
  16. 29:13Pain points: compile times
  17. 29:40Pain points: fallible allocation
  18. 31:43A conversation in #servo (cont.)
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.