reanimate
ganja.js
Our great sponsors
reanimate | ganja.js | |
---|---|---|
14 | 8 | |
1,102 | 1,492 | |
0.5% | - | |
0.0 | 2.5 | |
4 months ago | 3 months ago | |
Haskell | JavaScript | |
LicenseRef-PublicDomain | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
reanimate
- Old blog of Matt Henderson, beautiful math animations
-
Interactive animations
Reanimate sounds almost ideal, with its support for LaTeX. But unfortunately, it is all rendered in batch, not providing for any interactivity.
- Reanimate: Build declarative animations with SVG and Haskell
-
Reanimate: Haskell library for building declarative animations from SVG graphics
Is this the discussion you're referring to? https://github.com/reanimate/reanimate/discussions/210
It's actually pretty interesting to read. The author makes a not totally unreasonable argument as for why it uses unsafePerformIO.
Now what I'm really curious about is why the very first example on the site I clicked into the source code for, a simple 59-line example, is using unsafePerformIO. That actually worries me more because it suggests that as a user I might have to use unsafePerformIO. https://github.com/reanimate/reanimate/blob/d4d3898831edb4aa...
-
Suggestions for "dashboard" graphics libraries?
Not really dashboard library, but reanimate is a good library for this kind of stuff.
-
How was your study routine to become good at haskell?
Some other "applications" (if you're not interested in compilers) might be writing shell scripts: https://hackage.haskell.org/package/turtle Or animating stuff: https://github.com/reanimate/reanimate and https://hackage.haskell.org/package/gloss
-
Looking for SVG library recommendations
That aside, it seems that svg-tree doesn’t support filter elements, so I recommend reanimate-svg. You can join the Discord server for Reanimate and ask for help. Good luck.
-
Manim – Python library for creating mathematical animations
See also reanimate, a very similar Haskell library: https://reanimate.github.io/
-
Advanced programming exercises/apps recommendations to code
This is very niche, but something I've wanted to do for a while is to generate some cool physics example on the surface of a sphere with https://hackage.haskell.org/package/hamilton, and display it with https://reanimate.github.io/ (using https://hackage.haskell.org/package/linear for the projection)
-
[Newcomer] Status of AI, graphics programming and performance in Haskell?
Hi u/Target_Organic, I wich you a warm welcome! Haskell is often very satisfying to work with, it has a sense of beauty in it. Regarding your questions: 1. I never had big problems about performance. However, I personally place more emphasis about correctness, simplicity and readability of my programs. Performance tuning comes after. 2. For graphic libraries, I know diagrams, Reanimate and Haskell-chart. Since you seems interested by mathematical approach to graphics, I think you will find happiness there. 3. I'm not sure about the AI field. Other, more practical languages such as Python seems to have taken the lead. What is sure for me, that Machine Learning/NN would be nicely describe in Haskell with solid foundations.
ganja.js
-
The Montreal Problem: Why Programming Languages Need a Style Czar
Some people's brains just work this way. Here's an example of a somewhat popular and regularly maintained library written in a similar style: https://github.com/enkimute/ganja.js/blob/6e97cb45d780cd7c66...
Once your learn to recognise the commonalities, you'll see examples everywhere. The most extreme and stereotypical version is the billboards written by some homeless people. You can probably picture it already in your mind's eye: A wall of very dense text with little whitespace or structure, and a mix of fonts and colours seemingly at random.
I had a brilliant mathematician friend who wrote like this. He would squeeze and entire semester's worth of study notes into a single sheet of paper, on one side. It was impenetrable gibberish to everyone else, but the colours and 2D positioning let him build a mental mind-map.
For people like this, if you reformat their code even a tiny bit, their mental map is invalidated, and they lose track of it completely and become upset. I discovered this (the hard way) when applying automatic code formatting tools to the codebases I mentioned previously.
Personally, I find this type of thing to be absolutely fascinating, because it's the intersection of many fields of study, and hence is under-studied. There's elements of pedagogy, psychology, literacy, compute science, etc...
It's an open question how we can get large groups of neurodiverse humans to collaborate on a codebase when they don't even "read" or "think" in compatible ways!
-
[Media] I finished my first rust project: a path tracer
I was watching bivector videos and how it could be a viable replacement for matrix algebra in video games and I have been very impressed by the intuitiveness and consistency of the equations. There is this ganja.js for demonstrating the graphics and has a rust generated code https://github.com/enkimute/ganja.js/tree/master/codegen/rust I'm too naive to understand the implementation, but I'm glad a library like ultraviolet is here to start paving the use of Geometric Algebra in computer graphics.
- Ask HN: What are some examples of elegant software?
-
Manim: An animation engine for explanatory math videos
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 2019 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
-
Ganja.js: Geometric Algebra Generator for JavaScript
Great documentation!
- Ganja.js: Geometric Algebra Generator for JavaScript, C++, C#, Rust, Python
What are some alternatives?
manim - Animation engine for explanatory math videos
manim - A community-maintained Python framework for creating mathematical animations.
brick - A declarative Unix terminal UI library written in Haskell
plot-light - A lightweight plotting library, exporting to SVG
perspective - A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
OpenGL - Haskell bindings to OpenGL
Stockfish - A free and strong UCI chess engine
Vulkan - Haskell bindings to Vulkan (see https://www.khronos.org/vulkan)
r2vr - R to Virtual Reality
TermKit - Experimental Terminal platform built on WebKit + node.js. Currently only for Mac and Windows, though the prototype works 90% in any WebKit browser.