Live coding "Ray Tracing in One Weekend" but using Rust instead of C++. In this video I complain for half an hour about the ceremony associated with operator overloading in Rust, then compare and contrast to other languages (OCaml and Scala), and finally get back to Rust to implement a basic 3D scene.
00:00:00 - Intro
00:00:48 - Structure of the video
00:02:06 - Recap of episode 1
00:08:29 - Vector addition
00:12:06 - Owned vs borrowed
00:17:37 - Operator autoref/autoderef issue
00:19:47 - 4 impls of Add
00:23:11 - 4 impls of Sub
00:24:56 - Mul impls
00:28:40 - Div impls
00:30:38 - Vec3 remaining helpers
00:34:31 - Operators in OCaml and Scala
00:41:20 - Rays
00:55:01 - ray_color
00:58:21 - Next up
00:59:31 - Outro
Autoref/autoderef in operators: https://lang-team.rust-lang.org/desig...