Live data from Hacker News

Pygfx

docs.pygfx.org

31–40 of 56 posts

Re: Pygfx

#32

> Pygfx (pronounced “py-graphics”) Major tangent, but am I the only one who bristles at someone telling me how to pronounce an abbreviation they invented? I must have encountered this a few times in brand marketing within the tech world and gotten pissed off at feeling manipulated.

I think that it is pretty important to both be prescriptive about the pronunciation of abbreviations you create, and to explain them if they are non-obvious.

Way back when I first read about nginx, I had absolutely no way to know that folks usually pronounced it "engine-X". Led to an embarrassing conversation where I and a coworker were completely at cross-purposes to one another.

Obviously there are a bunch of abbreviations with disputed pronunciations (gif/jif, SQL/sequel, etc), and since the creators weren't prescriptive about them, we're all free to argue about them for the rest of time...

Re: Pygfx

#33
post #24

> Pygfx (pronounced “py-graphics”) Major tangent, but am I the only one who bristles at someone telling me how to pronounce an abbreviation they invented? I must have encountered this a few times in brand marketing within the tech world and gotten pissed off at feeling manipulated.

You're angry because the author tried to make the library searchable by removing a few letters..? And they didn't even come up with the gfx shorthand for graphics, its admittedly an old one and barely seen nowadays... But it's always been the sister to sfx/sound effects

It's also likely a reference to the rust library underlying this whole stack (gfx-rs)

Re: Pygfx

#34
post #3

Am I the only one who is irked by by ads on Read the Docs pages?

We used the free tier for a couple of years before a user mentioned the ads. We had no idea our docs were surrounded by ads as no one on the team had ever tried it without ublock origin... We upgraded to the paid plan after that :)

Re: Pygfx

#35
post #31

As this is using wgpu, it will be interesting if in the future they get it to run in the browser (Python already does, with Pyodide). There are some tickets about it: https://github.com/pygfx/pygfx/issues/650 https://github.com/pygfx/wgpu-py/issues/407

It's definitely still our intention to make it run in the browser. We're not actively working on that yet, but we've recently been able to remove some hurdles on that path, in particular the issue related to Webgpu being async.

Re: Pygfx

#36
post #5

this looks similar to VisPy ( https://vispy.org/ ), are there any major differences?

Pygfx uses webgpu while VisPy uses OpenGL.

This is indeed one of the major differences. Many of the problems that are plaguing Vispy are related to OpenGL. The use of wgpu solves many of them.

Also, wgpu forces you to prepare visualizations in pipeline objects, which at drawtime require just a few calls. In OpenGL there is way more work for each object being visualized at drawtime. This overhead is particularly bad on Python. So this particular advantage of wgpu is extra advantageous for Python.

Re: Pygfx

#37

Suppose I'm using PySide6 and starting to use QRhi[1]. Is there a way to compare the portability and speed of pygfx (as within PySide6) with QRhi? [1] https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QRhiWidget...

From what I understand, QRhi has a very different purpose then Pygfx, so I'm not sure how to answer this question.

Re: Pygfx

#38
post #3

Am I the only one who is irked by by ads on Read the Docs pages?

Let’s put it this way: I would consider myself eligible to be irked by ads on Read the Docs pages if I paid whoever maintains the project. If they bother you enough, absolutely no one’s going to frown if you estimate how much they would be making on ads from traffic volume yearly, email the maintainer and suggest to pay that in return for turning off the ads for a year. ( Some people might frown if you just block the…

I wish. The revenue from the ads goes to readthedocs, AFAIK nothing is paid to the maintainers of the project.

That said, readthedocs is a pretty nice platform to host your docs in a simple way. Plus users are not tracked. So personally I don't mind so much, but I'm going to have a look at the paid plan to remove ads for our users :)

Re: Pygfx

#39
post #5

this looks similar to VisPy ( https://vispy.org/ ), are there any major differences?

Apart from being based on wgpu, Pygfx also has a better design IMO. Korijn deserves the credit for this. It's inspired by ThreeJS, based on the idea to keep things modular.

We deliberately don't try to create an API that allows you to write visualizations with as few lines as possible. We focus on a flexible generic API instead, even if it's sometimes a bit verbose.

We leave it up to others to create higher level (domain specific) APIs. Fastplotlib is one example: https://github.com/fastplotlib/fastplotlib

Re: Pygfx

#40
If someone is looking for a renderer that also has tools for game development in Python. Panda3D is another good choice. It has a task and event system along with multiplayer and physics.
Post reply on HN