<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Restricted tinypy to C++ compiler</title>
	<atom:link href="http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/</link>
	<description>game dev blog</description>
	<lastBuildDate>Fri, 06 Jan 2012 23:00:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: gautier</title>
		<link>http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/comment-page-1/#comment-22192</link>
		<dc:creator>gautier</dc:creator>
		<pubDate>Tue, 08 Dec 2009 16:19:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=233#comment-22192</guid>
		<description>OMG OMG I was thinking about doing exactly this !!</description>
		<content:encoded><![CDATA[<p>OMG OMG I was thinking about doing exactly this !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shared Items &#8211; December 6, 2009 &#124; booyaa dot org</title>
		<link>http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/comment-page-1/#comment-22189</link>
		<dc:creator>Shared Items &#8211; December 6, 2009 &#124; booyaa dot org</dc:creator>
		<pubDate>Sun, 06 Dec 2009 06:02:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=233#comment-22189</guid>
		<description>[...] Restricted tinypy to C++ compiler [...]</description>
		<content:encoded><![CDATA[<p>[...] Restricted tinypy to C++ compiler [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil hassey</title>
		<link>http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/comment-page-1/#comment-22187</link>
		<dc:creator>phil hassey</dc:creator>
		<pubDate>Fri, 04 Dec 2009 17:51:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=233#comment-22187</guid>
		<description>@Ryan - yeah, it generates classes that can be used in C++ :)  Check out the svn and go into examples and run ./build .. Check out the pygame.hh and pygame.cc that are produced.

(You might need to do an ln ../builtins.h builtins.h to get it to work)</description>
		<content:encoded><![CDATA[<p>@Ryan &#8211; yeah, it generates classes that can be used in C++ <img src='http://www.philhassey.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Check out the svn and go into examples and run ./build .. Check out the pygame.hh and pygame.cc that are produced.</p>
<p>(You might need to do an ln ../builtins.h builtins.h to get it to work)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Schneider</title>
		<link>http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/comment-page-1/#comment-22186</link>
		<dc:creator>Ryan Schneider</dc:creator>
		<pubDate>Fri, 04 Dec 2009 17:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=233#comment-22186</guid>
		<description>Does it support creating C++ classes consumable within C++?  That is, can I define a Python class and then refer to the C++ized class from outside of Python, or does it just do functions?

I&#039;ve been thinking about prototyping an iPhone game I&#039;d like to build in pygame, and it&#039;d be really cool if I could reuse my game logic module in the actual game.</description>
		<content:encoded><![CDATA[<p>Does it support creating C++ classes consumable within C++?  That is, can I define a Python class and then refer to the C++ized class from outside of Python, or does it just do functions?</p>
<p>I&#8217;ve been thinking about prototyping an iPhone game I&#8217;d like to build in pygame, and it&#8217;d be really cool if I could reuse my game logic module in the actual game.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philhassey</title>
		<link>http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/comment-page-1/#comment-22184</link>
		<dc:creator>philhassey</dc:creator>
		<pubDate>Thu, 03 Dec 2009 19:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=233#comment-22184</guid>
		<description>@mark - that&#039;s quite true about memory allocations.  With the julia.py example (included in svn right now) you can see that I create a single &quot;pos&quot; object for the pixel position to be passed to the set_at() method.

I did this because I found that creating a new list for each pixel was really slowing things down.  By re-using the same list, I got a major speedup.</description>
		<content:encoded><![CDATA[<p>@mark &#8211; that&#8217;s quite true about memory allocations.  With the julia.py example (included in svn right now) you can see that I create a single &#8220;pos&#8221; object for the pixel position to be passed to the set_at() method.</p>
<p>I did this because I found that creating a new list for each pixel was really slowing things down.  By re-using the same list, I got a major speedup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark dufour</title>
		<link>http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/comment-page-1/#comment-22183</link>
		<dc:creator>mark dufour</dc:creator>
		<pubDate>Thu, 03 Dec 2009 18:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=233#comment-22183</guid>
		<description>looking at the shedskin test set, I&#039;d say the performance difference is more like 1-100x, and depends very much on what you&#039;re doing. the cpython builtins and memory subsytem are rather efficient. so if you&#039;re using strings a lot, or sets, and/or many other small objects, chances are a (straightforward) translation to C++ is actually not that much faster and sometimes even slower. but of course usually there is a good speedup, especially if you avoid things that really slow C++ down (usually memory allocations).</description>
		<content:encoded><![CDATA[<p>looking at the shedskin test set, I&#8217;d say the performance difference is more like 1-100x, and depends very much on what you&#8217;re doing. the cpython builtins and memory subsytem are rather efficient. so if you&#8217;re using strings a lot, or sets, and/or many other small objects, chances are a (straightforward) translation to C++ is actually not that much faster and sometimes even slower. but of course usually there is a good speedup, especially if you avoid things that really slow C++ down (usually memory allocations).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philhassey</title>
		<link>http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/comment-page-1/#comment-22181</link>
		<dc:creator>philhassey</dc:creator>
		<pubDate>Thu, 03 Dec 2009 17:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=233#comment-22181</guid>
		<description>@GWF: C++ is like 4-40x faster than Cpython which is about 2x faster than tinypy.</description>
		<content:encoded><![CDATA[<p>@GWF: C++ is like 4-40x faster than Cpython which is about 2x faster than tinypy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GWF</title>
		<link>http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/comment-page-1/#comment-22180</link>
		<dc:creator>GWF</dc:creator>
		<pubDate>Thu, 03 Dec 2009 16:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=233#comment-22180</guid>
		<description>This looks very fun and interesting.  Do you have any sense of the performance between cpython, tinypy, and the generated C++?</description>
		<content:encoded><![CDATA[<p>This looks very fun and interesting.  Do you have any sense of the performance between cpython, tinypy, and the generated C++?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rockins</title>
		<link>http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/comment-page-1/#comment-22179</link>
		<dc:creator>rockins</dc:creator>
		<pubDate>Thu, 03 Dec 2009 11:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=233#comment-22179</guid>
		<description>Owesome, Phil.</description>
		<content:encoded><![CDATA[<p>Owesome, Phil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ginta</title>
		<link>http://www.philhassey.com/blog/2009/12/01/restricted-tinypy-to-c-compiler/comment-page-1/#comment-22178</link>
		<dc:creator>Ginta</dc:creator>
		<pubDate>Wed, 02 Dec 2009 21:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=233#comment-22178</guid>
		<description>@Donny: You might tae a look at pyjs.org. It does something like this for javascript.</description>
		<content:encoded><![CDATA[<p>@Donny: You might tae a look at pyjs.org. It does something like this for javascript.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

