[HN Gopher] Physics in Clojure: Elliptical Paths
       ___________________________________________________________________
        
       Physics in Clojure: Elliptical Paths
        
       Author : tosh
       Score  : 93 points
       Date   : 2022-03-14 11:36 UTC (1 days ago)
        
 (HTM) web link (twitter.com)
 (TXT) w3m dump (twitter.com)
        
       | sritchie wrote:
       | Hey, so fun to see this here! These demos feature work from
       | https://github.com/sicmutils/sicmutils and the newly maintained-
       | by-me Mathbox library.
       | 
       | I'm around and happy to answer any questions about the library,
       | future plans, etc.
        
         | TacticalCoder wrote:
         | Very cool!
         | 
         | So SICMUtils takes care of the physics and Mathbox of the
         | drawing?
         | 
         | Also: do you have a (github?) link directly to the source code
         | of your examples?
        
           | sritchie wrote:
           | Yes, for these examples SICMUtils is handling the state
           | updates and gives new coordinates to Mathbox to render.
           | 
           | The library works in both JS and the JVM, so I was able to
           | generate an unevaluated code form for the equations of motion
           | (simplified, optimized!), which clerk sends over the wire for
           | the JS build of sicmutils to run.
           | 
           | Here is the code for that demo: https://github.com/sritchie/p
           | rogramming-2022/blob/main/src/p...
           | 
           | The api is settling, of course this, so this current version
           | is all quite playful! I will add instructions on how to get
           | this building when I'm back at the keyboard.
           | 
           | Another way this will all get more powerful is via the in-
           | progress mathbox-react[0] project. When that's settled we can
           | send a data structure representing a full scene across the
           | wire, and build stuff like math3d[1] , but with the full
           | power of Clojure augmenting the UI equation editor. Dreamy
           | stuff!
           | 
           | [0] https://github.com/ChristopherChudzicki/mathbox-react
           | 
           | [1] https://www.math3d.org/
        
             | TacticalCoder wrote:
             | Thanks for the answer, I'll look at the code!
        
       ___________________________________________________________________
       (page generated 2022-03-15 23:01 UTC)