I don't get it, I thought this was a port of Processing to Python, but then the installation instruction says:
> If you have Java 17 installed on your computer, you can install py5 using pip:
So it still depends on Java? Is this like a Python wrapper for Processing?
UPDATE: Got the explanation. From another page on the website:
> Py5 is a creative coding framework for Python 3.9+. Its use and functionality is analogous to the widely used Processing framework. It is a Python version of Processing.
> Internally py5 uses Processing’s core libraries, which are written in Java, while providing the end user with a (mostly) seamless Python programming experience.
Emphasis is mine. The wording in the first paragraph (which is the same as on the project's home page) seems ambiguous to me. Reading it I would really not expect a Java dependency.
Why must every educational python library insist on teaching kids with global variables? I know parameters aren't easy for novices, but it feels like it's missing a lot of the value when we don't attempt to teach them...
Because it's perfectly fine for 100 line programs. Beginners don't need to write extensible code that will be maintained for 30 years on business critical systems. You start by learning what a fuckin for loop does.
True, but having a single scope is more intuitive at first for people who don't have a good grasp of what a function is and are still trying to understand programming. Also processing/p5 kind of focuses on the speed and accessibility of getting an idea going, for which a game-loop and a single func scope are quite powerful!
the javascript version of processing is called p5js. According to the creator the 5 comes from "the original domain of processing was proce55ing.net, so people used to sometimes refer to processing as proce55ing or P5 or p5 for short. they still do sometimes. p5.js is a reference to that."
I would assume that drawing performance is slower because it’s doing FFI from CPython to the JVM, but that you may be able to get speedup if your bottleneck is something that can leverage numpy.
p4bl0|1 year ago
> If you have Java 17 installed on your computer, you can install py5 using pip:
So it still depends on Java? Is this like a Python wrapper for Processing?
UPDATE: Got the explanation. From another page on the website:
> Py5 is a creative coding framework for Python 3.9+. Its use and functionality is analogous to the widely used Processing framework. It is a Python version of Processing.
> Internally py5 uses Processing’s core libraries, which are written in Java, while providing the end user with a (mostly) seamless Python programming experience.
Emphasis is mine. The wording in the first paragraph (which is the same as on the project's home page) seems ambiguous to me. Reading it I would really not expect a Java dependency.
animal_spirits|1 year ago
kdlafan|1 year ago
acbart|1 year ago
bongodongobob|1 year ago
bityard|1 year ago
nnnnico|1 year ago
canadianfella|1 year ago
[deleted]
Aerroon|1 year ago
linsomniac|1 year ago
knighthack|1 year ago
skywhopper|1 year ago
animal_spirits|1 year ago
https://github.com/processing/p5.js/issues/2443
rorytbyrne|1 year ago
It's especially annoying when I click the link to Y and it just says "This repository contains the source code for Y".
bongodongobob|1 year ago
senkora|1 year ago
gdevenyi|1 year ago
dotancohen|1 year ago
ConanRus|1 year ago
[deleted]