~/talk

Building a reactive multi user document editor in ScalaJS

Talkat Scala Days Berlin 2018 · 2018-05-14..05-17· [frontend-architecture]
name:Jan Ypma
links:none on file
slides:none on file

Describes a working reactive, multi-user invoice editor implemented with Scala.js and Outwatch that streams compact event-sourced edits (protobuf over WebSocket) instead of shipping whole XML documents; backend composes an initial JSON state and the client applies incremental edits, letting two browsers show near-real-time sync. Handles large UBL XMLs by storing enums as integers to cut size, benchmarks show server-side replay of 500 events in ~10 ms while client deserialization is slower, so heavy work stays server-side.

AI-written summary · about

  1. 0:00Introduction
  2. 1:20Semantics
  3. 4:23Challenges
  4. 5:55Rethink
  5. 8:55XML vs JSON
  6. 11:30Architecture
  7. 15:40Data structure
  8. 17:59Type safety
  9. 20:13Google Web Toolkit
  10. 22:05OutWatch
  11. 23:55Demo
  12. 28:00Eclipse
  13. 35:35Performance
~/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.