~/talk

Building a lock-free STM for OCaml

Talkat OCaml 2023 · on Saturday, 2023-09-09· [concurrency]
links:none on file
links:none on file
links:none on file
links:none on file
links:none on file
slides:none on file

kcas implements a lock-free software transactional memory for OCaml built on a multi-word compare-and-set primitive, with composable transactions, scheduler-friendly modular blocking and a companion library of lock-free data structures. It adds domain-local services (eg domain-local wait service and timeout) so blocking and timeouts work across effect-based and plain domain runtimes. Benchmarks show the kcas queue sometimes outperforms a Michael-Scott lock-free queue and the kcas hash table scales past two domains; overhead exists but performance is practical.

AI-written summary · about

  1. 0:00Introduction
  2. 0:13Transactional Memory
  3. 1:09KCAS
  4. 1:50KCAS Overview
  5. 2:03KCAS Transactions
  6. 5:46Location State
  7. 7:08Transaction Overview
  8. 11:07Blocking and Timeouts
  9. 15:13Tradeoff
  10. 17:34Performance
  11. 20:24Hardware support
~/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.