Results 73 comments of Alistair Buxton

I just completely rewrote mp.py to use a pipe per worker instead of a single pair of shared queues. This makes the code much simpler and removes pitfalls 1 and...

I think I've only used `itertools.tee` once anywhere in the program. I do merge streams (sort of) in service.py, but it should be done according to very specific rules (which...

Go a proper fix for the blocking pipes: use threads. This allows everything to continue (slowly) even if the pipe blocks in both directions, as the reader thread will eventually...

Please do. I ended up rewriting my code with ZMQ. Not sure if that was before or after we discussed it. It is slightly more portable but still has many...

New code is at the same link: https://github.com/ali1234/vhs-teletext/blob/master/teletext/mp.py The API is the same. It just uses ZMQ sockets instead of multiprocessing shared memory objects.

Best to paste the code from the third and final link, because the original one I shared was half finished and doesn't work. And those pastebins will expire in a...

Tested on Xubuntu 22.04 host - same result.

What did you do differently that allowed you to reproduce it when you couldn't before?

Note that it is possible for an edge and a line to share no vertices, and also to only partially overlap, and still be required to match, as in this...