~/talk

How to sort your socks using Javascript

Talkat Amsterdam JSNation Conference 2018 · 2018-06-01..06-02· [javascript]

Explains that JavaScript engines implement different sorts (SpiderMonkey uses merge sort, V8 and Chakra use quicksort), shows tiny JavaScript implementations of insertion/merge/quick (10–31 lines) and benchmarks run on a Mac in Chrome: insertion sort wins for 10–1,000 elements, quicksort overtakes native and stays fastest up to millions (one million crash noted, ten million tested), and stresses stability matters for preserving prior order and that self-hosted JS engine code plus context-switch overhead can make well-written JS sorts faster than native.

AI-written summary · about

  1. 0:00Intro
  2. 0:36Context
  3. 2:16Computational Complexity
  4. 17:45Design strategies
  5. 18:45Divide Conquer
  6. 20:08Quicksort
  7. 21:14Performance
  8. 23:23Benchmark
  9. 25:53Conclusion
~/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.