From brywilharris at gmail.com Mon Mar 1 09:40:52 2021 From: brywilharris at gmail.com (Bryan Harris) Date: Mon, 1 Mar 2021 09:40:52 -0500 Subject: [CentralOH] Threading materials? In-Reply-To: References: Message-ID: I also would like any good material on threading in Python. It's been a few years since I messed with multithreading in Python, and I'd be very interested in how things are progressing. When I first looked into this, we still had a GIL meaning that standard Python was effectively single threaded. I have used pypy to get around this limitation (and boy did it ever speed things up) but I wonder how much of this goodness has made its way back into the stock interpreter? When I was working on this, Python 3 was a "new thing" (and had been for years, something like ipv6) so it's been a while. There was a lot of promising activity, but it was early days. Please copy me if you don't post it on the list? Thanks! Bryan Bryan Harris brywilharris at gmail.com On Sat, Feb 27, 2021 at 9:52 AM Catherine Devlin wrote: > > Hi, COHPy! Can somebody convey my thanks to Jon Bennett for his great threading presentation? It helped my understanding quite a bit. > > I'd love to reuse it at one of Dayton PyFri events, if his code is available. > > If his contact info and/or materials were already posted, sorry I missed it - I didn't see it in the Gather chat or on the mailing list. > > Thanks! > > -- > - Catherine > http://catherinedevlin.blogspot.com > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > https://mail.python.org/mailman/listinfo/centraloh From jon at jondbennett.com Wed Mar 3 12:00:08 2021 From: jon at jondbennett.com (Jon Bennett) Date: Wed, 3 Mar 2021 12:00:08 -0500 Subject: [CentralOH] Threading Materials Message-ID: All, The code for my threading presentation is available at: https://gitlab.com/jondbennett/python-threading-presentation -- Jon Bennett ============================================ We are stripped bare by the curse of plenty. -- Winston Churchill From deeppunster at fastmail.com Fri Mar 5 02:33:54 2021 From: deeppunster at fastmail.com (Travis Risner) Date: Fri, 05 Mar 2021 02:33:54 -0500 Subject: [CentralOH] Print Data in Columns Python Program Message-ID: Hi folks, In this week?s DoJo we discussed how to print information in columns (among other topics). Attached is the python program we reviewed. If you have questions about it, please feel free to ask either here on the list or at next week?s DoJo. Cheers, Travis -- Travis Risner -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PrintColumns.py Type: text/x-python-script Size: 1804 bytes Desc: not available URL: From brian.costlow at gmail.com Tue Mar 9 19:38:08 2021 From: brian.costlow at gmail.com (Brian Costlow) Date: Tue, 9 Mar 2021 19:38:08 -0500 Subject: [CentralOH] Threading materials? In-Reply-To: References: Message-ID: Python still has the GIL, but so does PyPy. https://doc.pypy.org/en/latest/faq.html#does-pypy-have-a-gil-why PyPy is faster than CPython for pure Python code in general, which probably accounts for the speed increase in threaded Python code. On Mon, Mar 1, 2021 at 9:41 AM Bryan Harris wrote: > I also would like any good material on threading in Python. It's been > a few years since I messed with multithreading in Python, and I'd be > very interested in how things are progressing. When I first looked > into this, we still had a GIL meaning that standard Python was > effectively single threaded. I have used pypy to get around this > limitation (and boy did it ever speed things up) but I wonder how much > of this goodness has made its way back into the stock interpreter? > When I was working on this, Python 3 was a "new thing" (and had been > for years, something like ipv6) so it's been a while. There was a lot > of promising activity, but it was early days. Please copy me if you > don't post it on the list? > > Thanks! > Bryan > > Bryan Harris > brywilharris at gmail.com > > On Sat, Feb 27, 2021 at 9:52 AM Catherine Devlin > wrote: > > > > Hi, COHPy! Can somebody convey my thanks to Jon Bennett for his great > threading presentation? It helped my understanding quite a bit. > > > > I'd love to reuse it at one of Dayton PyFri events, if his code is > available. > > > > If his contact info and/or materials were already posted, sorry I missed > it - I didn't see it in the Gather chat or on the mailing list. > > > > Thanks! > > > > -- > > - Catherine > > http://catherinedevlin.blogspot.com > > _______________________________________________ > > CentralOH mailing list > > CentralOH at python.org > > https://mail.python.org/mailman/listinfo/centraloh > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > https://mail.python.org/mailman/listinfo/centraloh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brywilharris at gmail.com Tue Mar 9 20:39:50 2021 From: brywilharris at gmail.com (Bryan Harris) Date: Tue, 9 Mar 2021 20:39:50 -0500 Subject: [CentralOH] Threading materials? In-Reply-To: References: Message-ID: Yeah, I looked it up too. My mistake. On Tue, Mar 9, 2021 at 7:38 PM Brian Costlow wrote: > > Python still has the GIL, but so does PyPy. > > https://doc.pypy.org/en/latest/faq.html#does-pypy-have-a-gil-why > > PyPy is faster than CPython for pure Python code in general, which probably accounts for the speed increase in threaded Python code. > > On Mon, Mar 1, 2021 at 9:41 AM Bryan Harris wrote: >> >> I also would like any good material on threading in Python. It's been >> a few years since I messed with multithreading in Python, and I'd be >> very interested in how things are progressing. When I first looked >> into this, we still had a GIL meaning that standard Python was >> effectively single threaded. I have used pypy to get around this >> limitation (and boy did it ever speed things up) but I wonder how much >> of this goodness has made its way back into the stock interpreter? >> When I was working on this, Python 3 was a "new thing" (and had been >> for years, something like ipv6) so it's been a while. There was a lot >> of promising activity, but it was early days. Please copy me if you >> don't post it on the list? >> >> Thanks! >> Bryan >> >> Bryan Harris >> brywilharris at gmail.com >> >> On Sat, Feb 27, 2021 at 9:52 AM Catherine Devlin >> wrote: >> > >> > Hi, COHPy! Can somebody convey my thanks to Jon Bennett for his great threading presentation? It helped my understanding quite a bit. >> > >> > I'd love to reuse it at one of Dayton PyFri events, if his code is available. >> > >> > If his contact info and/or materials were already posted, sorry I missed it - I didn't see it in the Gather chat or on the mailing list. >> > >> > Thanks! >> > >> > -- >> > - Catherine >> > http://catherinedevlin.blogspot.com >> > _______________________________________________ >> > CentralOH mailing list >> > CentralOH at python.org >> > https://mail.python.org/mailman/listinfo/centraloh >> _______________________________________________ >> CentralOH mailing list >> CentralOH at python.org >> https://mail.python.org/mailman/listinfo/centraloh > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > https://mail.python.org/mailman/listinfo/centraloh From brywilharris at gmail.com Tue Mar 9 21:38:21 2021 From: brywilharris at gmail.com (Bryan Harris) Date: Tue, 9 Mar 2021 21:38:21 -0500 Subject: [CentralOH] Threading materials? In-Reply-To: References: Message-ID: When you have to plot time on a log scale to compare... https://static1.squarespace.com/static/513689a6e4b0988e47d91a0f/t/51394299e4b0d066f2366eae/1362707097710/Euler+Project.ppt.pdf You're right I wasn't looking at the GIL specifically. I had the impression pypy and stackless didn't have the GIL at the time, but it was just screaming faster. Bryan Harris brywilharris at gmail.com On Tue, Mar 9, 2021 at 8:39 PM Bryan Harris wrote: > > Yeah, I looked it up too. My mistake. > > On Tue, Mar 9, 2021 at 7:38 PM Brian Costlow wrote: > > > > Python still has the GIL, but so does PyPy. > > > > https://doc.pypy.org/en/latest/faq.html#does-pypy-have-a-gil-why > > > > PyPy is faster than CPython for pure Python code in general, which probably accounts for the speed increase in threaded Python code. > > > > On Mon, Mar 1, 2021 at 9:41 AM Bryan Harris wrote: > >> > >> I also would like any good material on threading in Python. It's been > >> a few years since I messed with multithreading in Python, and I'd be > >> very interested in how things are progressing. When I first looked > >> into this, we still had a GIL meaning that standard Python was > >> effectively single threaded. I have used pypy to get around this > >> limitation (and boy did it ever speed things up) but I wonder how much > >> of this goodness has made its way back into the stock interpreter? > >> When I was working on this, Python 3 was a "new thing" (and had been > >> for years, something like ipv6) so it's been a while. There was a lot > >> of promising activity, but it was early days. Please copy me if you > >> don't post it on the list? > >> > >> Thanks! > >> Bryan > >> > >> Bryan Harris > >> brywilharris at gmail.com > >> > >> On Sat, Feb 27, 2021 at 9:52 AM Catherine Devlin > >> wrote: > >> > > >> > Hi, COHPy! Can somebody convey my thanks to Jon Bennett for his great threading presentation? It helped my understanding quite a bit. > >> > > >> > I'd love to reuse it at one of Dayton PyFri events, if his code is available. > >> > > >> > If his contact info and/or materials were already posted, sorry I missed it - I didn't see it in the Gather chat or on the mailing list. > >> > > >> > Thanks! > >> > > >> > -- > >> > - Catherine > >> > http://catherinedevlin.blogspot.com > >> > _______________________________________________ > >> > CentralOH mailing list > >> > CentralOH at python.org > >> > https://mail.python.org/mailman/listinfo/centraloh > >> _______________________________________________ > >> CentralOH mailing list > >> CentralOH at python.org > >> https://mail.python.org/mailman/listinfo/centraloh > > > > _______________________________________________ > > CentralOH mailing list > > CentralOH at python.org > > https://mail.python.org/mailman/listinfo/centraloh