~/talk

Using vectors in Java [...]

Talkat GeeCON 2024 · 2024-05-15..05-17· [java, embedded-and-hardware]
links:none on file
slides:none on file

Explains why power limits create dark silicon and shows how the Java Vector API maps to CPU vector registers, giving a concrete example: a cosine‑similarity JMH benchmark using fused multiply‑add and reductions that runs about ~20× speedup versus scalar code. Covers species (register shapes), masked loads and shuffles, columnar layout needs, memory‑bound limits, and that reductions and tail handling are expensive. Notes real adopters (Llama 2 inference, AstraDB and Cassandra vector search) and the JVM caveat: deoptimization can allocate huge objects until value types land.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 2:39State of the art loops
  3. 5:16Moore's law and dark silicon
  4. 14:08Vector registers explained
  5. 19:48Hello world with vectors
  6. 26:55Vector embeddings and dot product
  7. 37:45Benchmarking vector vs scalar
  8. 40:21Data layout for vectorization
  9. 45:43Vector register operations
  10. 53:00Performance caveats and future
~/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.