Physics in Clojure - Colin Smith

Channel:ClojureTV · Length:40:18 · Published:2017-03-31 · Views:12811

Watch on YouTube

Summary

Colin Smith introduces Structure and Interpretation of Classical Mechanics and his Clojure port, sicmutils. He shows how higher-order functions and a symbolic algebra system can represent Lagrangian mechanics.

Why HN recommends it

Recommended as the best introduction to SICM and sicmutils and a showcase of what such symbolic systems can do.

The Strange Loop talk [3] is a good showcase of the power and simplicity of these kind of systems. — HN, 2021

Functional programming · Fundamental physics

Subtitles (excerpt)

hey folks my name is Colin Smith I've come to talk to you about um my experience sort of diving into a textbook named the structure and interpretation of classical mechanics which is sort of an odd successor to the structure and interpretation of computer programs which shares one of the authors uh and details their work using scheme an earlier list variant to explore um classical mechanics and they used it especially to work with the Dynamics of the solar system there's a couple of demos I'm going to try to get to so if you want to click on something you could go to the uh the link at the top there and there's some things you can click on or if you're bored um the the authors of the book have a quote that I want to read to you just because since you guys all bought tickets to come to a functional programming language conference that should resonate with you guys and gals one way to become aware of the Precision required to unambiguously communicate a mathematical idea is to program it for a computer we use a functional style to encourage clear thinking the computer does not tolerate vague descriptions or incomplete constructions now reading structure and interpretation of computer programs sipy as

On Hacker News

Computer Algebra is criminally underused - it has the potential to make math-heavy critical-path code a lot more clear, testable, observable and bug-free by design. I feel I need to mention "Structure and Interpretation of Classical Mechanics" by Wisdom and Sussman, and the accompanying "scmutils" library, which first implemented in Scheme many of the same features, although this Julia library se… — hcarvalhoalves, 2021-03
Thanks, this is a nice port! I worked through SICM using sicmutils as a backup. The MIT Scheme version sometimes "locked up" on my solutions to exercises and sicmutils did not (the Foucault pendulum problem comes to mind). This video is an introduction to SICM and sicmutils: [VIDEO] — ja-85, 2019-04
> static typing helps everywhere I think "Structure and Interpretation of Classical Mechanics" is a good example of the kind of software a dynamically-typed Lisp is superior at, beyond the usual suspects like SQL, R, Python, etc. Here's an example of SICM in Clojure: [LINK] And a talk about it's implementation here: [VIDEO] — erichocean, 2023-12

Related videos