~/talk

Functional Composition of the Universe

Talkat ScalaCon November 2021 · 2021-11-02..11-05· [creative-coding, scala]
links:none on file
slides:none on file

A live Scala.js demo compiles to the browser and composes small pure functions into rotating stars, orbiting planets and satellites drawn on a canvas; scala.js real-time canvas simulation uses implicits and typeclass-style helpers to map rotate and orbit functions over collections. A mass slider changes gravity so the Earth either tightens its ellipse or escapes entirely, and nested composition builds galaxies around a black hole; function composition builds orbit/rotation functions and mass slider shows escape vs capture threshold. The code runs and the composed scene animates in the page.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:26Talk objectives explained
  3. 4:01Defining functions in math and CS
  4. 5:46What is functional composition
  5. 7:10Setting up the Scala.js demo
  6. 10:02Understanding the universe and movement
  7. 12:53Drawing the solar system
  8. 16:47Forces behind celestial motion
  9. 17:51Adjusting mass and gravity effects
  10. 19:14Adding planets to the system
  11. 21:53Including satellites like the moon
  12. 23:18Galaxies and black holes
  13. 24:21Building a galaxy with composition
  14. 26:11Positioning objects in the universe
  15. 27:58Final demo of the dog in space
  16. 28:19Conclusion and Q&A invitation
~/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.