TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

500 Python Interpreters

173 pointsby SAHChandler9 months ago

10 comments

jiggunjer9 months ago
So this means modules like concurrent.futures can create a thread pool object (as opposed to processpool) and run in parallel?<p>Or is the functionality as of 3.13 still limited to low level python embedding applications?
评论 #41409191 未加载
curious_cat_1639 months ago
&gt; &quot;No matter what happens there is going to be a lock occurring. No two PyThreadStates can execute Python bytecode at the same time. However, they can execute multiple C calls at the same time which is why for long running pure C operations extension and embedding developers are encouraged to release the GIL temporarily.&quot;<p>Very exciting! I wonder what the first set of motivating applications are and what kind of performance gains are they expecting.
评论 #41414963 未加载
vintagedave9 months ago
&gt; &#x2F;&#x2F; 500 interpreter states<p>&gt; static constexpr auto MAXIMUM_STATES = 463;<p>There is a joke here that I’m missing. Does anyone understand what it is?
评论 #41406434 未加载
jacob0199 months ago
When they say per interpreter GIL in PEP 684, is that per thread? I wasn&#x27;t aware of multiple interpreters in one process.
评论 #41405454 未加载
评论 #41405563 未加载
quasarj9 months ago
Is 463 some joke I&#x27;m not getting?
评论 #41407160 未加载
评论 #41407203 未加载
funny_falcon9 months ago
Unfortunately, pocketpy moved to global reference to vm recently while changing implementation from C++ to C. Weird decision.
elnatro9 months ago
Does this mean that even the Python 3.13 version is around the corner we have to expect some issues when running threads on a program?<p>Maybe I’m slow today, but are the author complaining (rightfully so) about the buggy no-gil implementation?<p>Should we wait until the feature is more stable before implementing new libraries? I was thinking on making use of it in new libraries I plan to develop.<p>What are the most blatant use case to test this feature?<p>PD: So many questions, I know, sorry everybody!
评论 #41407737 未加载
layer89 months ago
I was hoping for it to be an HTTP status code.
surfingdino9 months ago
I&#x27;m lo0king forward to it, but debugging this stuff is going to be another level of hard.
zahlman9 months ago
You posted this 11 days ago and it&#x27;s been posted by two other people in the interim. (Why is this version of the post more popular?)
评论 #41404726 未加载
评论 #41404753 未加载