ganja.js
Altair
ganja.js | Altair | |
---|---|---|
8 | 43 | |
1,492 | 8,927 | |
- | 0.8% | |
2.5 | 9.0 | |
4 months ago | 8 days ago | |
JavaScript | Python | |
MIT License | BSD 3-clause "New" or "Revised" 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.
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
Altair
-
Ask HN: What's the best charting library for customer-facing dashboards?
I like Vega-Lite: https://vega.github.io/vega-lite/
It’s built by folks from the same lab as D3, but designed as “a higher-level visual specification language on top of D3” [https://vega.github.io/vega/about/vega-and-d3/]
My favorite way to prototype a dashboard is to use Streamlit to lay things out and serve it and then use Altair [https://altair-viz.github.io/] to generate the Vega-Lite plots in Python. Then if you need to move to something besides Python to productionize, you can produce the same Vega-Lite definitions using the framework of your choice.
- FLaNK AI Weekly 18 March 2024
- FLaNK AI for 11 March 2024
-
Vega-Altair: Declarative Visualization in Python
Feel free to open an issue to let us know which parts of the documentation you find obscure and if you have suggestions for how to improve them. We did a larger overhaul a few months back and are always open to feedback on how to improve it further! https://altair-viz.github.io/
(disclaimer: I'm a co-maintainer of Altair)
-
Gnuplotlib: Non-Painful Plotting for NumPy
Vega-Altair is pretty great as well. It uses a grammar of graphics that’s slightly different from ggplot, but has most of the same advantages.
https://altair-viz.github.io/
-
Mastering Matplotlib: A Step-by-Step Tutorial for Beginners
Altair - Declarative statistical visualization library for Python.
-
Top 10 growing data visualization libraries in Python in 2023
Github: Altair
- What python library you are using for interactive visualisation?(other than plotly)
- Libs para gráficos
-
If you had to pick a library from another language (Rust, JS, etc.) that isn’t currently available in Python and have it instantly converted into Python for you to use, what would it be?
Yeah, that's one of the main reasons I like altair. It has 10M downloads per month and the newest Git update is from two days ago.
What are some alternatives?
manim - A community-maintained Python framework for creating mathematical animations.
plotly - The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
manim - Animation engine for explanatory math videos
bokeh - Interactive Data Visualization in the browser, from Python
perspective - A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
seaborn - Statistical data visualization in Python
Stockfish - A free and strong UCI chess engine
ggplot - ggplot port for python
r2vr - R to Virtual Reality
plotnine - A Grammar of Graphics for Python
TermKit - Experimental Terminal platform built on WebKit + node.js. Currently only for Mac and Windows, though the prototype works 90% in any WebKit browser.
matplotlib - matplotlib: plotting with Python