-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Matrix Math for p5js #5210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
Thanks @matiasvlevi can you please answer the first question in the template: How would this new feature help increase access to p5.js? |
It would help increase access for beginners. |
If this sounds like an interesting addition to p5js, I would have no problem being assigned to this task. |
there is p5.Matrix but I guess it's a helper class for webgl: https://github.com/processing/p5.js/blob/main/src/webgl/p5.Matrix.js to me it's difficult to justify the accessibility - I think there are other math libraries that can be used with p5.js for this purpose. I would suggest to make it not directly into the core but as an extension either from scratch or as a binding to another library like math.js and see what happens from there. |
Thanks @matiasvlevi. We are not seeing a further explanation of how this issue expands access, so I will close this issue for now. If you can add: 1) a more detailed access statement and 2) more info responding to @micuat's suggest to the feature request, please feel welcome to reopen it. Thank you! |
Expanding access? I am curious as to how a piece of code could be of help to a minority such as people of color or marginalized genders. Why would marginalized people need something more from a JavaScript library? Why can we assume that X type of people needs Y type of assistance? Code is just code, you learn from it, and you teach with it, minorities have nothing to do with it. Keep this issue closed, I don't understand where your vision is coming from. Don't get me wrong, I enjoy p5js, but the vision just seems overly obsessed with "woke" issues that barely apply to a learning setting. |
Hi @matiasvlevi, One of the p5 community's initiatives for doing so is to make it easier for people with disabilities to use and create software. Some examples of a piece of code that do this are the The p5.community also acknowledges that there are many kinds of contribution, besides just code, that can expand access. An example is internationalization. It's pretty clear that having good language translations is essential in a learning setting. For young learners outside of the United States — even for speakers of comparatively common languages like French or Spanish — it's a lot to ask that they first be fluent in English before they can learn to code. But because English is so overwhelmingly ubiquitous on the Internet, software developers rarely take into account the needs of non-English speakers — effectively treating them like an irrelevant minority, and perpetuating the problem. So, above are a couple of possible responses to your question. To better understand the community's vision for how p5.js can expand access to an ever-wider group of learners, including people from marginalized backgrounds, I encourage you to check out the talks from the recent p5.js Access Day 2022 conference, which just went online. Personally, I think the inclusive vision of p5.js is an incredibly smart strategy for cultivating a massive user base, since, compared to the entire world — able-bodied, English-speaking, cis-gendered white guys like me are the actual minority. Regarding this specific issue of Matrix Math, I think the challenge posed by Micuat was reasonable. It would be helpful to see some examples of "user-friendly bindings" for a Matrix library. What would that look like in practice (in contrast to the internal p5.Matrix codebase, or the similar-sounding p5 addon library Número)? What would be some specific examples of creative things (e.g. mini-demo nuggets) that would be made possible with such a library, and would illustrate its value? As often happens with open-source software tools for the arts, a great way to make this case is to create an external library for p5.js. By the way, as a side note — I see that you're the author of Dann.js? There's a ton of interest in neural networks in this community. I think Dann.js would be a great candidate for a thin wrapper that could make it accessible as an external addon library. It looks like the only thing you'd really need would be some p5-based examples and starter projects — another key way of supporting access — and you'd get lots of users. Best, |
@golanlevin My trimester ends soon, Ill be back with an interesting external addon library. |
How would this new feature help increase access to p5.js?
Most appropriate sub-area of p5.js?
New feature details:
We should have a way to describe Matrices in a similar way
p5.Vector
describe vectors. Currently p5js does not contain a way to describe Matrices with a set of simple user-friendly bindings. Operations such as Matrix multiplication would be useful for various applications. Adding such a feature to p5js would be a great way ta make it more accessible to beginners.The text was updated successfully, but these errors were encountered: