291 points · by privong · 3y ago · 100 comments
I'd really like to see a "spiritual successor" to Structure and Interpretation of Classical Mechanics--something that can take off and achieve a life of its own.
SICM is open-source, and many people have implemented their own versions of parts of it, but I would love to see a vibrant and active community develop around such a beautiful computer algebra / computer-physics system.
SICM goes far beyond simple Newtonian mechanics, implementing calculus, Lagrangian and Hamiltonian mechanics, and differential geometry, and probably a whole lot more that you just have to spelunk into the source code to discover.
(Here's a book about the differential geometry implementation in scmutils: https://mitpress.mit.edu/9780262019347/functional-differenti... as seen in HN: https://news.ycombinator.com/item?id=7884551 )
My impression is that it can be a very frustrating way to learn mechanics if you don't have much interest in functional programming.
I cut my teeth on SICP before going into physics, so I was perhaps the exact target audience.
I also see Scheme as an improvement over its successor languages.
Thanks to https://2.maria.cloud, everything in SICM and FDG works in the browser as well: https://2.maria.cloud/gist/d3c76ee5e9eaf6b3367949f43873e8b2
But I am also quite interested in learning more about the "under the hood" workings and software craftsmanship of scmutils. The textbook _uses_ scmutils to explore classical mechanics.
But it does not delve into the implementation details of scmutils itself, which interest me.
I did find this.
"Working with APL for Physics Research - Kostas Blekos - Dyalog '17" https://www.youtube.com/watch?v=pWtvRlCdX00
Would be interested in reading a more detailed account.
Sadly for simple realization for example the twin paradox without acceleration (3 astronauts handing over clock info instead of using acelearation). It is not there. And doing graphic … and simple wedge. Sadly.
May be someone here can highlight some sites for this and that.
For chapter 14 I wonder whether a Jupiter notebook (which can do Tex if using Matplotlib … have not tested it as I used texshop and screen capture from Matplotlib instead).
Obviously total functional programming is a problem.
But the GP greatly simplifies electrodynamics and removing the need to track handedness in your basis is very helpful in my experience.
Beyond the practical value you'll also discover the delightful beauty with which you can express things in Haskell, and these sparks of joy could give you a new motivation to grow and appreciate deeper, beautiful ways of coding and thinking.
At the least, Haskell is much faster than Python, the language itself is not that complicated (learning a whole new ecosystem is a different story), FP might lend itself better to translating physics into code, and some elements of it carry over to other languages, for example, type classes and Rust’s traits.
Python mostly hits an optimal point for my needs though and I didn't have to read 50 articles trying to explain what a Monad was. Scripting languages just click a lot better for me (less ceremony). There are some weird languages I like such as APL. APL is also very mathy, but there's essentially no ceremony (just some funny symbols that are easy enough to learn).
Why?
I've never worked this through to a full conclusion, but you could even write it in a way that would let you get symbolic differentiation out of it too.