~/talk

Object Oriented Orbits: a primer on newtonian physics

Talkat Ruby on Ales 2016 · 2016-03-31..04-01· [creative-coding, web-platform]
slides:none on file

Derives a discrete approximation to Newtonian motion, converts it to Ruby -> HTML5 canvas code that accepts a state and dt and streams frames over a WebSocket bridge, and reports implementation details like using requestAnimationFrame and WebSocketd with frame‑rate hiccups. Computes pairwise gravitational forces, shows randomized and highly symmetric setups, and reproduces a published figure‑eight 3‑body orbit from the literature, noting two‑body is analytic but three‑body requires careful initial conditions and small time steps.

AI-written summary · about

  1. 0:00Intro
  2. 0:15What does it take to simulate orbits?
  3. 0:44Euclid's axioms
  4. 1:38Axiom 5 (The Parallel Postulate)
  5. 2:44Axioms 1 and 2 and vectors
  6. 7:37Vectors in Ruby (algebra)
  7. 10:47Relation between velocity and acceleration
  8. 13:10Newton's Law of Universal Gravitation
  9. 17:10A note about bodies
  10. 18:21Forces on Bodies in Ruby
  11. 19:25the Universe
  12. 20:29the Enumerable Universe
  13. 20:53The main simulation loop
  14. 23:57Shell out to websocketd
  15. 28:05Run simulated binary star system
  16. 35:35The initial conditions
  17. 39:19The git repository metaphor of physics
~/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.