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.

Pyston-lite: our Python JIT as an extension module

125 pointsby kmodalmost 3 years ago

8 comments

simonwalmost 3 years ago
I love how easy this is to try out!<p>I use pipenv, so I ran this:<p><pre><code> pipenv shell --python=python3.8 pip install pyston_lite_autoload </code></pre> And it worked: I got a small but material speed improvement from a tiny benchmark I ran against my own project: <a href="https:&#x2F;&#x2F;simonwillison.net&#x2F;2022&#x2F;Jun&#x2F;8&#x2F;pyston-lite&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simonwillison.net&#x2F;2022&#x2F;Jun&#x2F;8&#x2F;pyston-lite&#x2F;</a>
评论 #31672569 未加载
miohtamaalmost 3 years ago
See also upcoming Python 3.11 performance improvements<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31642793" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31642793</a>
评论 #31675568 未加载
vsskanthalmost 3 years ago
Can someone ELI5 how this works as an extension module ? Is it possible to do a similar thing with pypy ?
评论 #31672130 未加载
评论 #31678509 未加载
goodpointalmost 3 years ago
Any comparison with <a href="https:&#x2F;&#x2F;mypyc.readthedocs.io&#x2F;en&#x2F;latest&#x2F;introduction.html" rel="nofollow">https:&#x2F;&#x2F;mypyc.readthedocs.io&#x2F;en&#x2F;latest&#x2F;introduction.html</a> ?
评论 #31680674 未加载
TechSupportJoshalmost 3 years ago
Is there a reason for the use of system() here? <a href="https:&#x2F;&#x2F;github.com&#x2F;pyston&#x2F;pyston&#x2F;blob&#x2F;69b190003f14dfd2f6d276f33a23a3715a405bcc&#x2F;Python&#x2F;aot_ceval_jit.c#L5028" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pyston&#x2F;pyston&#x2F;blob&#x2F;69b190003f14dfd2f6d276...</a><p>Seems easier to use the C functions to do this, rather than rely on system commands.
评论 #31692586 未加载
make3almost 3 years ago
With the large performance increases brought by the more recent versions of Python, it&#x27;s not clear to me that installing this is faster than just upgrading Python. It is more simple though I&#x27;ll give you that. If it also faster with more recent versions?
评论 #31671837 未加载
metadatalmost 3 years ago
Pyston is neat, but I&#x27;m a bit unclear. Why should we invest time and effort into more proprietary shenanigans?
评论 #31671242 未加载
评论 #31671143 未加载
Nasreddin_Hodjaalmost 3 years ago
Why not to just write entire project in cython?
评论 #31679851 未加载
评论 #31677641 未加载
评论 #31692600 未加载