Succeeding with Full Stack Scala
summary
Claim: full‑stack Scala is practical for a real web product — LearnRaga — using Scala.js + React + Slinky, SBT and webpack to share core code between JVM and JS. Real problems and fixes: FFT on 4k buffers is ~3ms on JVM vs 14ms in naive JS and is reduced to ~4ms with asm.js, immutability creates GC spikes so critical paths use controlled mutability, and selective re-rendering via shouldComponentUpdate preserves 60fps pitch detection. Bundle is ~780KB gzipped; app is in public beta and works.
AI-written summary · about
chapters (24)
- 0:00Start
- 6:18Why React?
- 8:45React Component Model
- 10:39Web apps using Scala.js
- 11:37Tools
- 14:01Stateless Component in Slinky
- 15:02Stateful Component in Slinky
- 16:04External Component in Slinky
- 18:05Real-time Performance Requirements
- 21:24Immutability
- 23:50Solution: Mutability with care
- 24:36Solution: WASM/ASM
- 28:10Using shouldComponentUpdate
- 30:01Running tests on JS
- 30:37JVM/JS Isomorphism
- 32:18Dealing with JVM/JS differences
- 33:05Http Abstraction
- 33:29JVM Implementation
- 33:50File System Abstraction
- 37:41Possible solutions
- 38:32Deployment
- 39:30Separate Server and Client processes
- 39:54Without Source Maps
- 40:59Source Maps in Production
related talks
01h 02mFishbowl @ Functional Conf
04mBen Edwards Interview
09m1000+ Compile-time Errors Later and Running Smoothly in Prod
42mNow what?
46mThoughtful Software Engineering
01h 15mFunctional Mechanical Sympathy
01h 01mSpearheading the future of programming
55mThe Zen of Programming. A personal journey towards writing beautiful code
