~/talk

Faster JavaScript with Category Theory

Talkat JSConf EU 2012 · 2012-10-06..10-07· [javascript, frontend-architecture]
slides:none on file

Claims that category theory yields concrete wins: mapping raw HTML-element functions into jQuery methods gives loop fusion, turning two jQuery loops into one and cutting overhead, measured roughly 10–15% speedup on common chains and up to 20% on string-parsing cases like removeAttr; an append escape hatch produces much larger gains in tight loops. Implements a small, modular AMD library (Wheeled) that exposes the underlying DOM manipulators, uses querySelector/Sizzle, lives on GitHub, and passes the jQuery test suite.

AI-written summary · about

  1. 0:00Intro
  2. 1:00Personal Information
  3. 1:13John Bender
  4. 1:26Motivation
  5. 2:31Performance
  6. 2:53What is jQuery
  7. 3:19jQuery Internals
  8. 3:56jQuery Methods
  9. 5:15Category Theory
  10. 6:56Identity Law
  11. 7:12Composition Law
  12. 7:52HTML
  13. 9:24Identity
  14. 9:37Compose
  15. 11:36How does this work
  16. 12:20Example
  17. 13:15Functor
  18. 14:36Objects
  19. 16:28WHA
  20. 19:57Why you care
  21. 20:39Rewrapping
  22. 21:15Fusion
  23. 22:28Remove Attribute
  24. 23:51Simplify Manipulation
  25. 24:46Performance Benefit
  26. 25:00Caveat
  27. 25:46Escape Hatch
  28. 27:47GitHub
  29. 29:21Modular
  30. 29:42Radical modularity
  31. 29:57minification
  32. 30:20Category Theory jQuery
~/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.