floss.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
For people who care about, support, and build Free, Libre, and Open Source Software (FLOSS).

Administered by:

Server stats:

691
active users

João S. O. Bueno

PyCon US 2023 videos are online - and the one I was expecting to see is this one by Eric Snow on sub interpreters featuring independent GILs. youtu.be/3ywZjnjeAO4

Spoiler: I am working on a lib that will allow easy to use subinterpreters in Python 3.12

It is already working - I should push the first version to pipy on the coming week.

@gwidion I'd forgotten about this + it looks awesome. Really useful for fun graphics experiments if there is some zero overhead way of moving stuff stuff between interpreters (there's some mmap support that might work).

@64kb that depends on what your "stuff" is - if it is an imutable data structure, there are ways with zero overhead that can be used.

@gwidion I'd want the parent to setup graphics, then the inside would send back commands to output on it (or even be allowed to itself), hopefully doing as little stuff like pickling as possible.
Probably commands along the lines of Cairo/postscript for 2D, though also things like bitmaps or vertices for opengl.

@gwidion me: watching this and remembering that a lot of what Shoebot (+Nodebox and friends) do is run code in a lightly sandboxed python interpreter...

@64kb Shoebot - brings me memories of @rlafuente talking about it more than 10 years ago.
I also remember a few years before a Java person (I think it was nodebox - is that Java?) complaining that the Python execution was slow - when he was doing a separate `eval` for _each_ Python statement (the statements inside a loop) - which would trigger a compile pass for the EVALed string.

@gwidion @rlafuente making Shoebot faster was how I got involved, (and then years of making it more compatible).

If I ever get back on the current rewrite then that should stop us being limited to running only in Cairo which is a barrier to people installing it, as well as its slow (especially now hardware accelerated Cairo is no longer an aspiration).

Building on what @rlafuente and our little community started is always fun, and seems to keep pulling me back :)