ganja.js VS trio

Compare ganja.js vs trio and see what are their differences.

ganja.js

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

trio

Trio – a friendly Python library for async concurrency and I/O (by python-trio)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
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.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
ganja.js trio
8 19
1,492 5,895
- 1.1%
2.5 9.5
4 months ago 4 days ago
JavaScript Python
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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

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

trio

Posts with mentions or reviews of trio. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-09.
  • trio VS awaits - a user suggested alternative
    2 projects | 9 Dec 2023
  • In what ways are channels are better than the traditional await?
    3 projects | /r/golang | 18 May 2023
    Incidentally, the alternative event loop implementation trio in python does not have "gather", you also need channels, and it's a deliberate design choice - there is some discussion about that in this ticket https://github.com/python-trio/trio/issues/2188
  • Polyphony: Fine-Grained Concurrency for Ruby
    3 projects | news.ycombinator.com | 12 May 2023
  • This Week In Python
    5 projects | dev.to | 17 Feb 2023
    trio – a friendly Python library for async concurrency and I/O
  • Python projects with best practices on Github?
    23 projects | /r/Python | 14 Feb 2023
    trio. the best code, the best documentation, awesome community.
  • Trio: Structured Concurrency for Python
    1 project | news.ycombinator.com | 11 Feb 2023
  • The Heisenbug lurking in your async code (Python)
    7 projects | news.ycombinator.com | 11 Feb 2023
    I'll +1 the Trio shoutout [1], but it's worth emphasizing that the core concept of Trio (nurseries) now exists in the stdlib in the form of task groups [2]. The article mentions this very briefly, but it's easy to miss, and I wouldn't describe it as a solution to this bug, anyways. Rather, it's more of a different way of writing multitasking code, which happens to make this class of bug impossible.

    [1] https://github.com/python-trio/trio

    [2] https://docs.python.org/3/library/asyncio-task.html#task-gro...

  • The gotcha of unhandled promise rejections
    5 projects | news.ycombinator.com | 13 Jan 2023
    It's similar to manual memory management.

    Structured concurrency is one approach to solving this problem. In a structured concurrency a promise would not go out of scope unhandled. Not sure how you would add APIs for it though.

    See Python's trio nurseries idea which uses a python context manager.

    https://github.com/python-trio/trio

    I'm working on a syntax for state machines and it could be used as a DSL for promises. It looks similar to a bash pipeline but it matches predicates similar to prolog.

    In theory you could wire up a tree of structured concurrency with this DSL.

    https://github.com/samsquire/ideas4#558-assign-location-mult...

  • Python Asyncio: The Complete Guide
    4 projects | news.ycombinator.com | 10 Nov 2022
    Not complete - doesn't include Task Groups [1]

    In fairness they were only included in asyncio as of Python 3.11, which was released a couple of weeks ago.

    These were an idea originally from Trio [2] where they're called "nurseries" instead of "task groups". My view is that you're better off using Trio, or at least anyio [3] which gives a Trio-like interface to asyncio. One particularly nice thing about Trio (and anyio) is that there's no way to spawn background tasks except to use task groups i.e. there's no analogue of asyncio's create_task() function. That is good because it guarantees that no task is ever left accidentally running in the background and no exception left silently uncaught.

    [1] https://docs.python.org/3/library/asyncio-task.html#task-gro...

    [2] https://github.com/python-trio/trio

    [3] https://anyio.readthedocs.io/en/latest/

  • Anyone here able to help with a python issue?
    1 project | /r/Purdue | 8 Aug 2022

What are some alternatives?

When comparing ganja.js and trio you can also consider the following projects:

manim - A community-maintained Python framework for creating mathematical animations.

uvloop - Ultra fast asyncio event loop.

manim - Animation engine for explanatory math videos

curio - Good Curio!

perspective - A data visualization and analytics component, especially well-suited for large and/or streaming datasets.

asyncio

Stockfish - A free and strong UCI chess engine

Twisted - Event-driven networking engine written in Python.

r2vr - R to Virtual Reality

LDAP3 - a strictly RFC 4510 conforming LDAP V3 pure Python client. The same codebase works with Python 2. Python 3, PyPy and PyPy3

TermKit - Experimental Terminal platform built on WebKit + node.js. Currently only for Mac and Windows, though the prototype works 90% in any WebKit browser.

DearPyGui - Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies