Hacker News new | past | comments | ask | show | jobs | submit login

This looks awesome. I've been looking for something like this, not for math but for animations showing the steps of an algorithm (thing something like a matrix transpose, showing each step by moving the cells as they are moved by the algorithm). Still it seems like a good match since math and this type of algorithm animation seem pretty close.

The main downside to be is the lack of SVG output: I'd have to embed videos whereas I prefer SVG if possible.

Any other contender out there with vector output?




Well I've been on a real Geometric Algebra (aka Clifford Algebra) kick lately, and ran across ganja.js [1]. It's a single no deps file that is...impressive. 120k uncompressed, and with it you can construct any degree algebra (including the more esoteric hyperbolic/parabolic ones), render to canvas, svg or webgl(!). It also includes a clever little DSL parser and interpreter (it overloads the scientific notation to name basis vectors!) that lets you construct more complex things from simple things using various kinds of products.

The author, Steven De Keninck, is quite impressive as well, having got his start in the demoscene some time ago. He has a good video from SIGGRAPH 2019 [2] that explains why this algebra is better than [matrices, tensors, vectors, complex numbers]. Of particular interest (to me anyway) is the 2D projective geometry.

I don't want to oversell it, but ganja is fucking amazing and there is a great deal I want to do with it. For one, I'd like to recapitulate my physics degree with it.

[1] https://github.com/enkimute/ganja.js

[2] https://www.youtube.com/watch?v=tX4H_ctggYo




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: