Simon Willison’s Weblog

Subscribe
Atom feed for pypy

9 items tagged “pypy”

2021

Inserting One Billion Rows in SQLite Under a Minute (via) Avinash Sajjanshetty experiments with accelerating writes to a test table in SQLite, using various SQLite pragmas to accelerate inserts followed by a rewrite of Python code to Rust. Also of note: running the exact same code in PyPy saw a 3.5x speed-up!

# 19th July 2021, 12:13 am / pypy, sqlite, rust

Hello, HPy (via) HPy provides a new way to write C extensions for Python in a way that is compatible with multiple Python implementations at once, including PyPy.

# 29th March 2021, 2:40 pm / pypy, python

2017

Try hosting on PyPy by simonw. I had a go at hosting my blog on PyPy. Thanks to the combination of Travis CI, Sentry and Heroku it was pretty easy to give it a go—I had to swap psycopg2 for psycopg2cffi and switch to the currently undocumented pypy3-5.8.0 Heroku runtime (pypy3-5.5.0 is only compatible with Python 3.3, which Django 2.0 does not support). I ran it in production for a few minutes and didn’t get any Sentry errors but did end up using more Heroku dyno memory than I’m comfortable with—see the graph I posted in a comment. I’m going to stick with CPython 3.6 for the moment. Amusingly I did almost all of the work on this on my phone! Travis CI means it’s easy to create and test a branch through GitHub’s web UI, and deploying a tested branch to Heroku is then just a button click.

# 5th November 2017, 7:17 pm / pypy, python, heroku, travis, sentry

PyPy v5.9 Released, Now Supports Pandas, NumPy. NumPy and Pandas now work on PyPy2.7. “Many other modules based on C-API extensions work on PyPy as well.”

# 5th October 2017, 4:58 pm / pandas, pypy, numpy

2010

Introducing the PyPy 1.2 release. It’s been a long time coming, but 1.2 is the first PyPy release to ship with a Just-in-Time compiler! Performance looks pretty impressive.

# 12th March 2010, 11:54 pm / jit, performance, pypy, python

2009

Right now, pypy compiled with JIT can run the whole CPython test suite without crashing, which means we're done with obvious bugs and the only ones waiting for us are really horrible.

Maciej Fijalkowski

# 1st May 2009, 3:04 pm / bugs, jit, jpython, pypy, python, unittests

2007

PyPy 1.0. The fascinating Python implemented in Python project reaches 1.0, and now includes a JIT compiler. It’s still not recommended for general use though.

# 27th March 2007, 11:48 pm / pypy, python

30 second PyPy tutorial. Zyroth on programming.reddit.com shows how to interactively compile a Python function to C using PyPy and benchmark it against the original.

# 18th February 2007, 9:30 pm / pypy, python

2005

[pypy-dev] PyPy released! A full Python implementation written in Python.

# 25th May 2005, 12:52 pm / pypy, python