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.

PyPy 1.6 Released - Full Python 2.7.1 Implementation

244 pointsby jparisealmost 14 years ago

6 comments

lliiffeealmost 14 years ago
Can I take advantage of this thread to ask the HN crowd a technical question? Some time ago, I implemented an automatic differentiation tool. Using operator overloading on a special "autodouble" type the tool would trace the execution of a block of numerical code. Then, some calculus would automatically happen, and it would output and compile fast c-code that would compute the original function and derivatives in pure c. This was great, except the c-code that was output was freaking gigantic (like hundreds or thousands of megabytes) albeit very simple, and so the c compiler would take <i>forever</i> to run. Sigh.<p>My question is: could I leverage pypy somehow to avoid this? Can I output RPython? Can I output whatever RPython is compiled down to instead? Can I do this with no more than, say, a 3x penalty compared to c?<p>(I apologize for asking a question only marginally related to the particular article here...)
评论 #2901659 未加载
评论 #2902765 未加载
评论 #2912636 未加载
评论 #2901676 未加载
评论 #2901672 未加载
voyvfalmost 14 years ago
&#62; has beta level support for loading CPython C extensions.<p>Is this via ctypes, or "real" support in much the same as how CPython would behave?<p>I ask because this is one of the features that I've been waiting (impatiently) for - I've run some Flask projects using PyPy and gunicorn, and <i>love</i> how fast it goes, but really want to be able to use the rest of my codebase, which unfortunately does rely on some C (and Cython) extensions. (:
评论 #2900462 未加载
评论 #2900463 未加载
sylvinusalmost 14 years ago
I'm always blown away by the consistent performance gains they reach with each new version. Congrats!
kristofferRalmost 14 years ago
In general I'm very happy with my choice of Ruby/Rails instead of Python/Django, but PyPy is one of the few things I envy Python developers for.<p>I wish something similar could be developed for Ruby.
评论 #2900574 未加载
评论 #2901210 未加载
评论 #2900471 未加载
评论 #2900468 未加载
评论 #2900453 未加载
sho_hnalmost 14 years ago
I'm still bummed at being stuck with the dilemma of having to chose between CPython 3.x and PyPy. PyPy with Py3k support would rock.
socraticalmost 14 years ago
Are there production users of PyPy?<p>I feel like PyPy has always been the most academically interesting Python implementation. But has it taken away mindshare from CPython?
评论 #2902026 未加载