Hourglass

by jens
See Code Download Embed
A quick and dirty experiment about what it takes to build your own naive little physics engine and particle system from scratch in Snap!

Alexander Repenning issued this challenge at SIGCSE2021 to all CS1 programming languages to start a discussion about "affordances". Turns out yeah, you can to it without a whole lot of code or architecture in Snap!, but it also kinda isn't the world's greatest simulation.

While I don't know anything about education and am cluesless why simulating grains of sand inside an hourglass would be a powerful idea I'm personally much more interested in mathematical concepts such as lambda calculus, recursion and linear algebra than in physics sims, but then again, I don't know anything about Mathematics, either :-D

Anyway, this was fun, and if it makes you smile a little we all get something out of it. Maybe I should name it "bubbling foam glass", haha.

Created March 29, 2021

Last updated March 30, 2021

Published March 29, 2021