4 ms·
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
by sritchie 5y ago
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/programming-2022/blob/main/src/physics.clj https://github.com/sritchie/programming-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 https://github.com/ChristopherChudzicki/mathbox-react
[1] https://www.math3d.org/ https://www.math3d.org/
- TacticalCoder 5y agoThanks for the answer, I'll look at the code!