Live data from Hacker News

Py5, a Python version of Processing for your creative coding projects

py5coding.org

11–20 of 34 posts

Re: Py5, a Python version of Processing for your creative coding projects

#13
post #2

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 analogo…

It seems like an axiom that no Python package can be written that does not depend on C/C++/Java doing the real work.

Re: Py5, a Python version of Processing for your creative coding projects

#15
post #12

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...

[dead]

Re: Py5, a Python version of Processing for your creative coding projects

#16
post #6

It took way too many clicks for me to figure out what this project is. And I'm still not entirely sure.

It's a Python wrapper for a popular Java tool.

…which isn't a great explainer if you're not familiar with that Java tool.

Seems like it's an alternative to tk/tkinter.

Re: Py5, a Python version of Processing for your creative coding projects

#17
post #12

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...

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!

Re: Py5, a Python version of Processing for your creative coding projects

#18
post #12

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.

Re: Py5, a Python version of Processing for your creative coding projects

#19
post #13
post #2

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 analogo…

It seems like an axiom that no Python package can be written that does not depend on C/C++/Java doing the real work.

Why would you rewrite something that already exists? It'd be a different story if the library evolved naturally starting with python, which it very much might if it was created today.

Re: Py5, a Python version of Processing for your creative coding projects

#20
post #13
post #2

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 analogo…

It seems like an axiom that no Python package can be written that does not depend on C/C++/Java doing the real work.

Python is successful because everyone is aware that it has relatively terrible performance. As a result, anything remotely heavy is put into performant libraries that use not-python, leaving a nice glue language with fast libraries.

If you have something CPU bound, and it's python code hitting that ceiling, you're probably throwing away 10x performance [1]. That's ok, because anyone that cares about performance doesn't do that (or quickly learns).

[1] https://programming-language-benchmarks.vercel.app/cpp-vs-py...

Post reply on HN