~/talk

Simple Tcp Chat With Simple Native Client

Talkat Scala Italy 2023 · on Saturday, 2023-11-11· [scala, embedded-and-hardware]
links:none on file
slides:none on file

Builds a real concurrent TCP chat: a JVM server and a Scala Native CLI client that share one binary protocol compiled once and used on both platforms. Uses the Typelevel stack: fs2 streams, scodec codecs and fs2-codec plus sbt cross-projects to share the protocol code. Server keeps a username→socket map and broadcasts messages; it uses fs2.io.Network.server and an uncons/pool-based handshake to require a username before handling messages. A deployed demo exists and mostly works live.

AI-written summary · about

  1. 0:00Introduction and disclaimers
  2. 1:06Debunking Scala myths
  3. 3:35Project setup and protocol design
  4. 5:24SCC library overview
  5. 8:58Binary protocol with SCC
  6. 13:16MessageSocket abstraction
  7. 16:09TCP chat server implementation
  8. 22:08Stateful client handling
  9. 33:26Scala Native client setup
  10. 37:42Live demo and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.