3 ms·
Hey, so fun to see this here! These demos feature work from https://github.com/sicmutils/sicmutils https://github.com/sicmutils/sicmutils and the newly maintain
by sritchie 5y ago
Hey, so fun to see this here! These demos feature work from https://github.com/sicmutils/sicmutils 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 5y agoVery 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 5y agoYes, 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!