{"id":42,"date":"2007-11-30T00:21:01","date_gmt":"2007-11-30T06:21:01","guid":{"rendered":"http:\/\/www.philhassey.com\/blog\/2007\/11\/30\/attacking-pypy\/"},"modified":"2007-11-30T00:22:46","modified_gmt":"2007-11-30T06:22:46","slug":"attacking-pypy","status":"publish","type":"post","link":"https:\/\/www.philhassey.com\/blog\/2007\/11\/30\/attacking-pypy\/","title":{"rendered":"Attacking PyPy"},"content":{"rendered":"<p>Hey, more fractal fun tonight as I attack PyPy!  I must admit, this effort was more challenging &#8211; PyPy is pretty big and scary, but I found the folks in #pypy to be quite helpful.  exarkun helped me quite a bit in working out the details.   (Apparently PyPy doesn&#8217;t use ctypes anymore, it uses rffi .. which is sparsely documented.)  Anyway with exarkun&#8217;s help I got a crude SDL wrapper put together!<\/p>\n<p align=\"center\"><a href=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2007\/11\/pypy-mandel2.png\" title=\"pypy-mandel2.png\"><img decoding=\"async\" src=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2007\/11\/pypy-mandel2.thumbnail.png\" alt=\"pypy-mandel2.png\" \/><\/a><\/p>\n<p align=\"left\">Initially I just implemented my julia demo again, but I figured it would make for a boring blog entry to have the same pictures two days in a row.  As it turns out, the julia was about 30% faster in PyPy than in shed-skin.  Both shed-skin and PyPy appear to have similar limitations.  shed-skin&#8217;s error messages are less cryptic than PyPy&#8217;s.  Both FFI&#8217;s were somewhat challenging to work with, though I think I prefer shed-skin&#8217;s.<\/p>\n<p align=\"left\">If you want to give it a whirl, download <a href=\"http:\/\/codespeak.net\/pypy\/dist\/pypy\/doc\/news.html\">PyPy<\/a> and <a href=\"http:\/\/www.imitationpickles.org\/tmp\/mandelpypy.zip\">my junk<\/a>.  The NOTES.txt file lists the command I used to build the executable.  Sorry if the mouse interface is a bit lousy, but it was the best I could do in 2 minutes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey, more fractal fun tonight as I attack PyPy! I must admit, this effort was more challenging &#8211; PyPy is pretty big and scary, but I found the folks in #pypy to be quite helpful. exarkun helped me quite a bit in working out the details. (Apparently PyPy doesn&#8217;t use ctypes anymore, it uses rffi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,6,19,2],"tags":[126,28,26,27],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-crazy","category-development","category-gamedev","category-python","tag-c","tag-fractals","tag-mandelbrot","tag-pypy"],"_links":{"self":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}