Scala.js: Safety and Sanity in the Wild West of Web development
summary
Scala.js compiles full Scala to JavaScript, produces a 95 KB optimized bundle from a ~550 KB fast build, and runs about as fast as raw JS. Demos show a Sierpinski canvas, a typed DOM autocomplete using ScalaTags, hygienic CSS that generates unique class names, and a client/server file browser that uses upickle and a shared API trait with compile-time checks so AJAX returns typed Scala values. Compilation warms up to ~1s; community totals ~1M LOC with a few 10–20k LOC projects in production.
AI-written summary · about
chapters (10)
- 0:00Introduction to ScalaJS
- 0:25What is ScalaJS?
- 2:32Live coding: Project setup
- 9:06Building UI with ScalaJS
- 14:20Interactive web development
- 20:14Comparing frontend technologies
- 25:55Type-safe CSS and styling
- 32:07Ajax and API calls
- 40:07Client-server synchronization
- 48:06Q&A and concluding thoughts
related talks
31mSCALAJS - WEB WITHOUT PAIN OF JAVASCRIPT
40mFull Stack Scala
31mHow I learned to stop worrying and love the frontend
49mScala js: getting the best of JavaScript and Scala
31mSCALA FROM B TO F - BACKEND DEVELOPER ON FRONTEND
57mThe Magic Recipe of Scala.js: a Cross‑Platform Language
29mFull Stack Scala Web Application.
39mCompiling Scala js to WebAssembly
