ganja.js

:triangular_ruler: Javascript Geometric Algebra Generator for Javascript, c++, c#, rust, python. (with operator overloading and algebraic literals) - (by enkimute)

Ganja.js Alternatives

Similar projects and alternatives to ganja.js

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better ganja.js alternative or higher similarity.

ganja.js reviews and mentions

Posts with mentions or reviews of ganja.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-15.
  • The Montreal Problem: Why Programming Languages Need a Style Czar
    3 projects | news.ycombinator.com | 15 Mar 2024
    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
    2 projects | /r/rust | 11 Jul 2022
    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?
    22 projects | news.ycombinator.com | 2 May 2022
  • Manim: An animation engine for explanatory math videos
    10 projects | news.ycombinator.com | 20 Aug 2021
    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
    1 project | /r/ProgrammingLanguages | 18 Feb 2021
    2 projects | /r/node | 16 Jan 2021
    Great documentation!
  • Ganja.js: Geometric Algebra Generator for JavaScript, C++, C#, Rust, Python
    1 project | /r/programming | 16 Jan 2021
  • A note from our sponsor - SurveyJS
    surveyjs.io | 25 Apr 2024
    With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js. Learn more →

Stats

Basic ganja.js repo stats
8
1,492
2.5
3 months ago

enkimute/ganja.js is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of ganja.js is JavaScript.


Sponsored
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com