Had some fun tonight doing gradient descent linear regression from scratch in Kotlin, starting with a simple y = mx + b fitting. Once you get the multivariable calculus, it's stunning and beautiful how little code is required. https://gist.github.com/thomasnield/fbe2e2205233388577e6abe6f5bbe897