~/talk

Optimising stable sort in Rust and mostly failing

Talkat EuroRust 2022 · 2022-10-13..10-14· [rust]
slides:none on file

Porting a promising C sort (fluxsort) to Rust yields a concrete story: a copied slice::sort implementation, a battery of tests and Criterion benchmarks with fixed seed and rand, and many concrete failures — off‑by‑one and type‑conversion bugs, a seed mistake that repeats inputs, and a uniqueness‑preservation panic‑safety issue that causes surprising observable duplicates. Benchmarks report impossibly low counts (about 3 comparisons for 10 random elements), changes land in thousands of lines of code, and the improved sort often fails to keep its promises.

AI-written summary · about

  1. 0:00Optimising stable sort in Rust
  2. 1:26About the speaker
  3. 2:07Initial expectations
  4. 4:14Porting errors
  5. 6:44Testing methodology
  6. 11:42Benchmark correlation
  7. 12:26Benchmark design
  8. 17:47Uniqueness preservation issue
  9. 26:55Conclusion
  10. 27:16Embracing mistakes
  11. 29:02Resources
~/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.