{"id":44,"date":"2007-12-03T16:02:16","date_gmt":"2007-12-03T22:02:16","guid":{"rendered":"http:\/\/www.philhassey.com\/blog\/2007\/12\/03\/struggling-with-pyrex\/"},"modified":"2007-12-03T16:02:16","modified_gmt":"2007-12-03T22:02:16","slug":"struggling-with-pyrex","status":"publish","type":"post","link":"https:\/\/www.philhassey.com\/blog\/2007\/12\/03\/struggling-with-pyrex\/","title":{"rendered":"Struggling with pyrex"},"content":{"rendered":"<p>In my last blog post, someone said I should check out <a href=\"http:\/\/www.cosc.canterbury.ac.nz\/greg.ewing\/python\/Pyrex\/\">pyrex<\/a>.  <a href=\"http:\/\/www.imitationpickles.org\/tmp\/pyrex.zip\">So I did<\/a>.<\/p>\n<p><a href=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2007\/12\/pyrex-julia.png\" title=\"pyrex-julia.png\"><\/a><\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2007\/12\/pyrex-julia.png\" title=\"pyrex-julia.png\"><img decoding=\"async\" src=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2007\/12\/pyrex-julia.thumbnail.png\" alt=\"pyrex-julia.png\" \/><\/a><\/p>\n<p>Okay .. I must say, I found it extremely difficult to use and rather slow &#8211; 700 ms per frame (my pure C implementation is around 65 ms per frame).  I had quite a bit of trouble figuring out the magic of getting anything to work, a few things seem pretty inconsistent.  Thankfully I found someone (allefant &#8211; thanks) who helped me get some stuff working, but even he was rather baffled by some of the stuff we had to do to get it going.<\/p>\n<p>Unfortunately, even after all our efforts, it was still slow.  pyrex does so many magic things, that even with everything defined out to be C-ish, it still wraps &#8217;em up so we don&#8217;t get the C-speed we want.  I think the largest confusion is that pyrex marries both python and a magic brand of c-python code together in the same place &#8211; making it hard to know what &#8220;context&#8221; you are in at any point.  To be kind, it does have some *really* cool features that Shed-Skin and PyPy\/Rpython don&#8217;t have (such as properties).  But the feeling of inconsistency and confusion I got while working with it just took the fun out of it for me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my last blog post, someone said I should check out pyrex. So I did. Okay .. I must say, I found it extremely difficult to use and rather slow &#8211; 700 ms per frame (my pure C implementation is around 65 ms per frame). I had quite a bit of trouble figuring out the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,2],"tags":[29],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-development","category-python","tag-pyrex"],"_links":{"self":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/44","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=44"}],"version-history":[{"count":0,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}