<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1024937100240932334</id><updated>2024-10-05T05:12:02.030+01:00</updated><category term="trondheim"/><category term="schwagmaster"/><category term="python"/><category term="scrum"/><category term="scrummaster"/><category term="agile methods"/><category term="ntnu"/><category term="machine learning"/><category term="search"/><category term="hadoop"/><category term="mapreduce"/><category term="parallel"/><category term="performance"/><category term="research"/><category term="rpython"/><category term="stackless python"/><category term="classification"/><category term="concurrency"/><category term="conference"/><category term="phd"/><category term="programming"/><category term="pypy"/><category term="software engineering"/><category term="startups"/><category term="arctic"/><category term="atbrox"/><category term="benchmark"/><category term="cinpy"/><category term="cloud"/><category term="domain-specific languages"/><category term="energy"/><category term="erlang"/><category term="fuel cells"/><category term="google"/><category term="greenlets"/><category term="hardware"/><category term="health"/><category term="mobile"/><category term="norway"/><category term="scrum scrummaster"/><category term="simulation"/><category term="svm"/><category term="tasklets"/><category term="tdd"/><category term="time management"/><category term="academia"/><category term="academic"/><category term="agile"/><category term="ai"/><category term="ajax"/><category term="antlr"/><category term="appengine"/><category term="aquaculture"/><category term="arc"/><category term="assembler"/><category term="astronomy"/><category term="aure"/><category term="bdd"/><category term="bicycle"/><category term="big data"/><category term="biodiversity"/><category term="biology"/><category term="blogging"/><category term="books"/><category term="c#"/><category term="c++"/><category term="cartoon"/><category term="cfp"/><category term="climate"/><category term="cloud computing"/><category term="coffee"/><category term="competition"/><category term="compile"/><category term="compiler"/><category term="computer science"/><category term="computers"/><category term="confounding"/><category term="crawling"/><category term="decremental"/><category term="doctest"/><category term="dparser"/><category term="dragvoll"/><category term="echo chamber"/><category term="entrepreneurial"/><category term="environmental technology"/><category term="estimates"/><category term="eventlet"/><category term="f#"/><category term="facebook"/><category term="fortran"/><category term="future"/><category term="gcc"/><category term="gpu"/><category term="grails"/><category term="grid"/><category term="gsm"/><category term="gtd"/><category term="gwt"/><category term="history"/><category term="hydrogen"/><category term="hyperplane"/><category term="ict"/><category term="idi"/><category term="image processing"/><category term="incremental"/><category term="indexing"/><category term="innovation"/><category term="invention"/><category term="japan"/><category term="javascript"/><category term="json"/><category term="json-rpc"/><category term="kyoto"/><category term="lake biwa"/><category term="libsvm"/><category term="lift"/><category term="linkeddata"/><category term="lisp"/><category term="mamma mia"/><category term="markov chain monte carlo"/><category term="mcmc"/><category term="measurements"/><category term="mobile agents"/><category term="monte"/><category term="mpi"/><category term="nanotech"/><category term="navel gazing"/><category term="neural networks"/><category term="nobel laureate"/><category term="nobel prize"/><category term="noise"/><category term="numbers"/><category term="online"/><category term="orange"/><category term="parallelization"/><category term="physics"/><category term="privacy"/><category term="productivity"/><category term="programming competition"/><category term="programming languages"/><category term="pyml"/><category term="ranking"/><category term="regression"/><category term="retrospect"/><category term="schrum"/><category term="schwag"/><category term="science"/><category term="search engines"/><category term="search informationretrieval selfindexing"/><category term="semanticweb"/><category term="shedskin"/><category term="software testing"/><category term="sorting"/><category term="stanford"/><category term="statistics"/><category term="stochastic"/><category term="supercomputing"/><category term="support vector machines"/><category term="syllables"/><category term="tcc"/><category term="tech.lead"/><category term="technology"/><category term="theory"/><category term="threads"/><category term="traction"/><category term="transparancy"/><category term="tustna"/><category term="tv"/><category term="waterfall"/><category term="webpy"/><category term="ycombinator"/><title type='text'>Amund Tveit&#39;s Blog</title><subtitle type='html'>See also &lt;a href=&quot;http://twitter.com/atveit&quot;&gt;http://twitter.com/atveit&lt;/a&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://amundblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>93</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-5136994988556813101</id><published>2014-05-05T08:10:00.003+01:00</published><updated>2014-05-05T08:12:24.279+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="big data"/><category scheme="http://www.blogger.com/atom/ns#" term="mobile"/><category scheme="http://www.blogger.com/atom/ns#" term="privacy"/><category scheme="http://www.blogger.com/atom/ns#" term="search"/><title type='text'>My recent Mobile and Search Related Blog Posts</title><content type='html'>I&#39;ve recently written a few blog posts at the &lt;a href=&quot;http://memkite.com&quot;&gt;Memkite Blog&lt;/a&gt; and &lt;a href=&quot;http://blog.amundtveit.com&quot;&gt;blog.amundtveit.com&lt;/a&gt;
&lt;p&gt;
&lt;h2&gt;1. Privacy Efficiency - Measuring and Improving&lt;/h2&gt;
&lt;a href=&quot;http://blog.amundtveit.com/2014/05/privacy-efficiency-measuring-and-improving/&quot;&gt;
&lt;img src=&quot;http://blog.amundtveit.com/wp-content/uploads/2014/05/privacyefficiency-e1399121960486.png&quot; alt=&quot;Privacy Efficiency&quot;&gt;&lt;br&gt;
Privacy Efficiency - Measuring and Improving&lt;/a&gt; - About quantifying and measuring the value of privacy, inspired by how energy efficiency is measured.
&lt;/p&gt;

&lt;p&gt;
&lt;h2&gt;2. Mobile Eats the Cloud&lt;/h2&gt;
&lt;a href=&quot;http://memkite.com/2014/04/22/mobile-eats-the-cloud/&quot; title=&quot;Mobile Eats the Cloud&quot;&gt;
&lt;img src=&quot;http://memkite.com/wp-content/uploads/2014/04/mobileeatsthecloud-e1398168824130.png&quot; alt=&quot;Mobile Eats the Cloud&quot; width=&quot;200&quot;/&gt;&lt;br&gt;
Mobile Eats the Cloud&lt;/a&gt; - About how powerful mobile devices are becoming (wrt storage and cpu), and how that can change things. It is written as an answer to Chris Dixon&#39;s blog post about lack of innovation in Mobile.
&lt;/p&gt;

&lt;p&gt;
&lt;h2&gt;3. Trondheim - the Unknown Mobile Tech Capital of the Nordics&lt;/h2&gt;
&lt;a href=&quot;http://memkite.com/2014/04/28/trondheim-the-unknown-mobile-tech-capital-of-the-nordics/&quot;&gt;
&lt;img src=&quot;http://memkite.com/wp-content/uploads/2014/04/trondheimriver-e1398705984138-640x424.jpg&quot; width=&quot;200&quot;&gt; &lt;br&gt;
Trondheim - The Unknown Mobile Tech Capital of the Nordics&lt;/a&gt; - About how Trondheim mobile tech impacts billions of people daily
&lt;/p&gt;

Best regards,
Amund</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/5136994988556813101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/5136994988556813101'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2014/05/my-recent-mobile-and-search-related.html' title='My recent Mobile and Search Related Blog Posts'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-3136242993244942601</id><published>2012-03-29T09:26:00.002+01:00</published><updated>2013-03-21T14:01:36.452+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="startups"/><category scheme="http://www.blogger.com/atom/ns#" term="syllables"/><category scheme="http://www.blogger.com/atom/ns#" term="traction"/><category scheme="http://www.blogger.com/atom/ns#" term="ycombinator"/><title type='text'>Syllable-based forecast of best performing yc-startups from March 2012 batch</title><content type='html'>&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;As previously written in&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://atbrox.com/2010/09/08/predicting-startup-performance-with-syllables/&quot; style=&quot;background-color: white; color: #6699cc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-decoration: none;&quot;&gt;predicting startup performance with syllables&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&amp;nbsp;those with few syllables - typically 1 or 2 - in their name is likely to perform the best (there are of course notable exceptions, a relatively recent one being &lt;a href=&quot;http://pinterest.com/&quot;&gt;pinterest.com&lt;/a&gt;&amp;nbsp;and instagram.com). I also wrote a &lt;a href=&quot;http://amundblog.blogspot.com/2011/08/syllable-based-forecast-of-best.html&quot;&gt;prediction of the fall 2011 ycombinator batch (including rough validation of hypothesis in the first posting)&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;The lists below include the current alexa rank (as a rough estimate of traffic and traction), consider that a starting point, and then growth from here can be validated later. The hypothesis is that the average growth for the top list will be significantly higher than for the bottom list.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;b&gt;note to self:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;i&gt;&amp;nbsp;it would be interesting to later test hypotheses around well-known english words (e.g. pair and ark) vs &quot;functional names&quot; (e.g. 99dresses) vs &quot;syntetic/wordsmith names&quot; (e.g. dealupa). Other tests would be ratio of vovels to non-vovels and impact on traffic/traction.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;b&gt;A-list - Predicted best performers from the ycombinator 2012 batch&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;a href=&quot;http://www.ark.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Ark&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp; - 1 syllable - 255,810 (alexa traffic rank)&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://getchute.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Chute&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;- 1 syllable - 3,799,189&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.crowdtilt.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Crowdtilt&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;-&amp;nbsp;2 syllables - 161,411&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://iamexec.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Exec&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;- 2 syllables - 3,623,916&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://flutter.io/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Flutter&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 611,535 (domain: flutter.io)&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.flypadapp.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Flypad&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 23,111,805&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://kytephone.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Kyte&lt;/a&gt;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 669,753&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://givespark.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Givespark&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 4,900,872&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.hackpad.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Hackpad&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 201,595&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://minefold.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Minefold&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 783,034&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://midnox.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Midnox&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 3,152,778&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.trypair.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Pair&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 10,045&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.plangrid.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;PlanGrid&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 887,681&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.popset.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Popset&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 429,324 (big in japan)&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.screenleap.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Screenleap&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;185,485&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.sendhub.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;SendHub&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 190,276&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://tikl.mobi/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;TiKL&lt;/a&gt;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;2 syllables - 23,917,339&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;b&gt;B-list - The rest of the startups from the batch (&amp;gt; 2 syllables)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.42floors.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;42Floors&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;- 197,479 (alexa rank)&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.99dresses.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;99dresses&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 606,730&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://anyvivo.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;AnyVivo&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- no &amp;nbsp;data&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://carsabi.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Carsabi&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 212,484&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://coderwall.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Coderwall&lt;/a&gt;&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 90,456&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.thedailymuse.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Daily Muse&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 4,320,906&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://dealupa.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Dealupa&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;- 411,214&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://everyart.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;EveryArt&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 289,105&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://familyleaf.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;FamilyLeaf&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 606,730&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.hireart.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;HireArt&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 217,183&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.lvl6.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Lvl6&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 2,612,633&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.matterport.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Matterport&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 1,749,590&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.medigram.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Medigram&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 2,427,117&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://pervices.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Per Vices&lt;/a&gt;&amp;nbsp;-&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;3,274,070&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://priceonomics.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Priceonomics&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 100,322&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.shoptiques.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Shoptiques&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 256,195&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://socialcam.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Socialcam&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 46,235&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://sonalight.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Sonalight&lt;/a&gt;&amp;nbsp;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 1,832,186&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.yourmechanic.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Your Mechanic&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 3,650,942&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://zillabyte.com/&quot; style=&quot;-webkit-text-size-adjust: none; background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6ca41d; font-family: Georgia, serif; font-size: 14px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Zillabyte&lt;/a&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;- 1,089,060&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-size-adjust: none; background-color: white; color: #58595b; font-family: Georgia, serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;b&gt;&lt;i&gt;disclaimer:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 20px;&quot;&gt;This method only counts syllables in the name and is not scientifically validated, so no reason to be offended if your startup doesn&#39;t make the A-list. There might also be&amp;nbsp;erroneous&amp;nbsp;counts in syllables , please let me know if you find one.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/3136242993244942601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/3136242993244942601'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2012/03/syllable-based-forecast-of-best.html' title='Syllable-based forecast of best performing yc-startups from March 2012 batch'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-619051855801000013</id><published>2011-08-24T07:45:00.001+01:00</published><updated>2011-08-24T11:52:01.730+01:00</updated><title type='text'>Syllable-based forecast of best performing yc-startups from latest batch</title><content type='html'>As previously written in &lt;a href=&quot;http://atbrox.com/2010/09/08/predicting-startup-performance-with-syllables/&quot;&gt;predicting startup performance with syllables&lt;/a&gt; those with few syllables - typically 1 or 2 - in their name is likely to perform the best. Here is a quick prediction based on t&lt;a href=&quot;http://allthingsd.com/20110823/y-combinator-unloads-massive-new-batch-of-start-ups/&quot;&gt;he yc startups from the latest batch&lt;/a&gt; just published:   &lt;b&gt;1 and 2-syllables (most likely to be high performers according to the few-syllable prediction)&lt;/b&gt;  &lt;ul&gt;
&lt;li&gt;MixRank (2), alexa-rank: 43,724&lt;/li&gt;
&lt;li&gt;Picplum (2), alexa-rank: 700,278&lt;/li&gt;
&lt;li&gt;Depteye (2), alexa-rank: no data&lt;/li&gt;
&lt;li&gt;Envolve (2), alexa-rank: 52,418&lt;/li&gt;
&lt;li&gt;Quartzy (2), alexa-rank: 785,102&lt;/li&gt;
&lt;li&gt;Snapjoy (2), alexa-rank: 450,142&lt;/li&gt;
&lt;li&gt;Opez (2), alexa-rank: 719,612&lt;/li&gt;
&lt;li&gt;Stypi (2), alexa-rank: 531,965&lt;/li&gt;
&lt;li&gt;ZigFu (2), alexa-rank: 21,914,936&lt;/li&gt;
&lt;li&gt;Parse (1), alexa-rank: 564,829&lt;/li&gt;
&lt;li&gt;Verbling (2, alexa-rank: 237,636&lt;/li&gt;
&lt;li&gt;Vidyard (2), alexa-rank: 508,951&lt;/li&gt;
&lt;li&gt;Tagstand (2), alexa-rank:  812,669&lt;/li&gt;
&lt;li&gt;Kicksend (2, alexa-rank: 326,583&lt;/li&gt;
&lt;li&gt;Can&#39;tWait(2), alexa-rank: 786,213&lt;/li&gt;
&lt;/ul&gt;
I am sure the rest of the yc batch startups are just fine, but not according to syllable-based prediction, the ones I have in mind are: &lt;ul&gt;
&lt;li&gt;Aisle50 (3), alexa-rank: 1,106,951&lt;/li&gt;
&lt;li&gt;Launchpad Toys (3), alexa-rank: 1,425,628&lt;/li&gt;
&lt;li&gt;Interviewstreet (3), alexa-rank: 135,296&lt;/li&gt;
&lt;li&gt;DoubleRecall (4), alexa-rank: 799,538&lt;/li&gt;
&lt;li&gt;Munch on Me (3), alexa-rank: 130,234&lt;/li&gt;
&lt;li&gt;PageLever (3), alexa-rank: 55,462&lt;/li&gt;
&lt;li&gt;MarketBrief (3), alexa-rank: 467,943&lt;/li&gt;
&lt;li&gt;MobileWorks (3), alexa-rank: 315,150&lt;/li&gt;
&lt;li&gt;Vimessa (3), alexa-rank: 314,150&lt;/li&gt;
&lt;li&gt;Codeacademy (3), alexa-rank: 61,582&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;b&gt;How did it go with the last prediction round?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Unfortunately I only added the ones I though would be best performing according to syllable-count (and not the rest for comparison) for the yc summer 2010 batch, but here is how the low syllable count &amp;nbsp;did:&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;AdGrok (acquired by Twitter)&lt;/li&gt;
&lt;li&gt;Brushes (winner Apple design award 2010)&lt;/li&gt;
&lt;li&gt;FanVibe (acquired by beRecruited)&lt;/li&gt;
&lt;li&gt;Gantto (customers: Fujitsu, Lucasfilm++, &amp;nbsp;investor:500startups)&lt;/li&gt;
&lt;li&gt;GazeHawk (investor: 500startups)&lt;/li&gt;
&lt;li&gt;HipMunk (most successful startup from that yc batch?)&lt;/li&gt;
&lt;li&gt;OhLife (not sure how they have done)&lt;/li&gt;
&lt;li&gt;TeeVox (not sure how they have done)&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

Whether this beats throwing darts (random selection) is yet to be tested.

&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;i&gt;&lt;b&gt;Disclaimer&lt;/b&gt;: If I&#39;ve counted number of syllables wrong for some of the startups (have never heard pronounciation of the startup names) please ping me.&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
 &lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/619051855801000013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/619051855801000013'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2011/08/syllable-based-forecast-of-best.html' title='Syllable-based forecast of best performing yc-startups from latest batch'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-7025642470545540910</id><published>2011-08-12T11:49:00.001+01:00</published><updated>2011-08-12T11:49:07.958+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cfp"/><category scheme="http://www.blogger.com/atom/ns#" term="linkeddata"/><category scheme="http://www.blogger.com/atom/ns#" term="search"/><category scheme="http://www.blogger.com/atom/ns#" term="semanticweb"/><title type='text'>slowly back in the academic publishing game</title><content type='html'>a&lt;a href=&quot;http://amundtveit.info/eventseer/&quot;&gt; very long time ago&lt;/a&gt; I created a list of conference Call for Papers (CFP) I wanted to follow (as a fresh PhD student), this grew into a &lt;a href=&quot;http://eventseer.net/&quot;&gt;service of its own&lt;/a&gt; (and development shifted from me to another &lt;a href=&quot;http://no.linkedin.com/in/thomasbroxrost&quot;&gt;developer&lt;/a&gt;), and has been used by researchers both directly as a service and later as a part of &lt;a href=&quot;http://en.wikipedia.org/wiki/Linked_Data&quot;&gt;linked data&lt;/a&gt; (semantic web) input, and I just became a &lt;a href=&quot;http://amundtveit.info/publications/&quot;&gt;sidekick on a poster about linked data and call for papers from that service&lt;/a&gt;. Hope to get the time to publish more in academic forums (in addition to &lt;a href=&quot;http://atbrox.com/about/articles/&quot;&gt;blog posts&lt;/a&gt;) later this year, perhaps about Atbrox search technology and (forthcoming) services.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/7025642470545540910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/7025642470545540910'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2011/08/slowly-back-in-academic-publishing-game.html' title='slowly back in the academic publishing game'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-2711329639471972180</id><published>2011-06-15T07:22:00.001+01:00</published><updated>2011-06-15T07:23:49.400+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hadoop"/><category scheme="http://www.blogger.com/atom/ns#" term="mapreduce"/><category scheme="http://www.blogger.com/atom/ns#" term="search"/><title type='text'>Mapreduce Algorithms and Search</title><content type='html'>My latest postings on the Atbrox blog:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2011/05/16/mapreduce-hadoop-algorithms-in-academic-papers-4th-update-may-2011/&quot;&gt;Mapreduce and Hadoop papers in Academic Papers - 4th update&lt;/a&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;35 new papers and 2 new categories added - social networking and astronomy&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2011/04/09/mapreduce-in-search/&quot;&gt;Mapreduce in Search&lt;/a&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;Guest Lecture in Search Technology at Department of Computer Science, University of Oslo&lt;/li&gt;
&lt;/ul&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/2711329639471972180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/2711329639471972180'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2011/06/mapreduce-algorithms-and-search.html' title='Mapreduce Algorithms and Search'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-4799876680335639197</id><published>2011-02-28T18:09:00.000+01:00</published><updated>2011-02-28T18:09:29.082+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="atbrox"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="f#"/><category scheme="http://www.blogger.com/atom/ns#" term="hadoop"/><category scheme="http://www.blogger.com/atom/ns#" term="mapreduce"/><title type='text'>Overview of my postings on the Atbrox blog August 2010-Feb 2011</title><content type='html'>I write most of my blog postings at my startup&#39;s - &lt;a href=&quot;http://atbrox.com/about/&quot;&gt;Atbrox&lt;/a&gt; - blog. Here is an overview of postings from August 2010 - February 2011:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2011/02/16/atbrox-spin-off-launches-new-media-search-engine/&quot;&gt;Atbrox spin-off launches new media search engine&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2011/02/07/an-example-of-using-f-and-c-netmono-with-amazons-elastic-mapreduce-hadoop/&quot;&gt;An example of using F# and C# (.net/mono) with Amazon&#39;s Elastic Mapreduce (Hadoop)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2011/01/06/2nd-international-workshop-on-mapreduce-and-its-applications/&quot;&gt;2nd International Workshop on Mapreduce and its applications&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2010/09/08/predicting-startup-performance-with-syllables/&quot;&gt;Predicting startup performance with Syllables&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2010/08/31/recommended-mapreduce-workshop/&quot;&gt;Recommended Mapreduce Workshop&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;Best regards,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Amund&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/4799876680335639197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/4799876680335639197'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2011/02/overview-of-my-postings-on-atbrox-blog.html' title='Overview of my postings on the Atbrox blog August 2010-Feb 2011'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-7093544228464227732</id><published>2010-08-26T07:06:00.001+01:00</published><updated>2010-09-16T11:58:58.687+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cloud computing"/><category scheme="http://www.blogger.com/atom/ns#" term="gpu"/><category scheme="http://www.blogger.com/atom/ns#" term="hadoop"/><category scheme="http://www.blogger.com/atom/ns#" term="mapreduce"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="supercomputing"/><title type='text'>Overview of my postings on the Atbrox blog (May 2010 - Aug 2010)</title><content type='html'>As previously mentioned I currently write most of my blog postings over on &lt;a href=&quot;http://atbrox.com&quot;&gt;Atbrox&lt;/a&gt; (my startup company)&lt;br /&gt;
&lt;br /&gt;
Here are the latest postings:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2010/08/20/word-count-with-mapreduce-on-a-gpu-a-python-example/&quot;&gt;Word Count with Mapreduce on a GPU - A Python Example&lt;/a&gt;&lt;br /&gt;
&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2010/05/25/statistics-about-hadoop-and-mapreduce-algorithm-papers/&quot;&gt;Statistics about Hadoop and Mapreduce Algorithm Papers&lt;/a&gt;&lt;br /&gt;
&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2010/05/24/towards-cloud-supercomputing/&quot;&gt;Towards Cloud Supercomputing&lt;/a&gt;&lt;br /&gt;
&lt;/ul&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/7093544228464227732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/7093544228464227732'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2010/08/overview-of-my-postings-on-atbrox-blog.html' title='Overview of my postings on the Atbrox blog (May 2010 - Aug 2010)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-9170617812041686476</id><published>2010-05-30T08:33:00.003+01:00</published><updated>2010-05-30T12:17:26.101+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="crawling"/><category scheme="http://www.blogger.com/atom/ns#" term="future"/><category scheme="http://www.blogger.com/atom/ns#" term="indexing"/><category scheme="http://www.blogger.com/atom/ns#" term="search"/><title type='text'>Evaluation of Search Predictions made in May 2000</title><content type='html'>In May 2000 I wrote &lt;a href=&quot;http://amundtveit.info/publications/2000/iir.php&quot;&gt;A few thoughts about the future of Internet Information Retrieval&lt;/a&gt; (i.e. search), but how did it actually go? I&#39;ve tried to evaluate them in this posting, with the original prediction in &lt;i&gt;italic font&lt;/i&gt; followed by the evaluation.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1a) Prediction - Specialized Services within Search&lt;/strong&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
It seems likely that the specialization in the Internet Information Retrieval (IIR) business will continue. Internet information crawling, pre-processing, indexing, searching and presentation requires different types of technologies and know-how, this might create opportunities for new companies specializing in only one step of the IIR &quot;food chain&quot;. One possibility could be that companies doing crawling will do offer extracts of relevant data on request, e.g. a search engine specializing in winter sports could get only relevant data extracted from several regional crawler companies. In other words, the IIR &quot;food chain&quot; might increase in length.&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1b) Evaluation&lt;/strong&gt;&lt;br /&gt;
Specalization of search services happened to some degree, but had relatively small impact. Examples of such services include fetching/crawl-related services (e.g. &lt;a href=&quot;http://atbrox.com/2009/11/04/preliminary-experiences-crawling-with-80legs/&quot;&gt;80legs&lt;/a&gt;). But the services with biggest impact are the free (e.g. &lt;a href=&quot;http://code.google.com/apis/ajaxsearch/&quot;&gt;Google Ajax Search API&lt;/a&gt; and &lt;a href=&quot;http://www.bing.com/developers&quot;&gt;Bing APIs&lt;/a&gt;) and commercial search APIs (e.g. &lt;a href=&quot;http://developer.yahoo.com/search/boss/&quot;&gt;Yahoo Boss&lt;/a&gt; and &lt;a href=&quot;http://www.wolframalpha.com/developers.html&quot;&gt;Wolfram Alpha API&lt;/a&gt;), all in common that they offer the last step, i.e. search - so implicitly covering all steps. Noteworthy happenings in the related direction is cloud computing and increasing number of large data sets (e.g. &lt;a href=&quot;http://infochimps.org/&quot;&gt;infochimps collection&lt;/a&gt;, &lt;a href=&quot;http://wiki.dbpedia.org/Datasets&quot;&gt;DBPedia&lt;/a&gt; and &lt;a href=&quot;http://bixolabs.com/2009/11/01/announcing-the-public-terabyte-dataset-project/&quot;&gt;the Public Terabyte (crawl) dataset&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;2a) Prediction about Potential New Search Players&lt;/strong&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
As the importance of Internet Information Retrieval grows, players that have been concentrating on the lower end of the Internet &quot;food chain&quot;, i.e. major bandwidth providers (e.g. &lt;a href=&quot;http://en.wikipedia.org/wiki/MCI_Inc.&quot;&gt;MCI&lt;/a&gt; or &lt;a href=&quot;http://www.bt.com&quot;&gt;British Telecom&lt;/a&gt;) and network software/hardware vendors (e.g. &lt;a href=&quot;http://www.3com.com&quot;&gt;3COM &lt;/a&gt;or &lt;a href=&quot;http://www.cisco.com&quot;&gt;Cisco&lt;/a&gt;) might want to enter the market as providers of partially indexed data to search engines and topic hierarchies.&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;2b) Evaluation&lt;/strong&gt;&lt;br /&gt;
This didn&#39;t happen at all to my knowledge.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;3a) Prediction about Potential New Search Technologies&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;&lt;br /&gt;
With the increased growth of the amount of data on the Internet, new technologies for doing distributed indexing/search of data will probably occur. This is particularly interesting if processing and indexing of multimedia data (e.g. sound, pictures and video) becomes popular. Processing of multimedia data is considerably more CPU intensive than processing of textual data. Example of such processing could be automatic detection of objects (e.g. a car) in video frames.&lt;br /&gt;
&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;3b) Evaluation&lt;/strong&gt;&lt;br /&gt;
(Massively) distributed indexing in the &quot;SETI@home-style&quot; didn&#39;t happen at large scale, though there are a few examples pursuing distributed indexing/search, e.g. &lt;a href=&quot;http://www.majestic12.co.uk/about.php&quot;&gt;the Majestic project&lt;/a&gt;. The in retrospective obvious processing of multimedia data is happening (but not trivial problems to solve).&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br /&gt;
If I am kind - 0.5 on prediction 1, 0 on prediction 2 and 0.5 on prediction 2 ~ 33.33% correct?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/9170617812041686476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/9170617812041686476'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2010/05/evaluation-of-search-predictions-made.html' title='Evaluation of Search Predictions made in May 2000'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-9152133615076892453</id><published>2010-05-13T23:24:00.000+01:00</published><updated>2010-05-13T23:24:32.878+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hadoop"/><category scheme="http://www.blogger.com/atom/ns#" term="machine learning"/><category scheme="http://www.blogger.com/atom/ns#" term="mapreduce"/><category scheme="http://www.blogger.com/atom/ns#" term="ranking"/><category scheme="http://www.blogger.com/atom/ns#" term="search"/><title type='text'>Overview of my postings on the Atbrox blog (Nov 2009-May 2010)</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;As mentioned in a previous posting I mainly write on&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://atbrox.com/about/&quot; style=&quot;color: #666666;&quot;&gt;Atbrox&#39;s&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;blog (and not here), in case you haven&#39;t&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&amp;nbsp;seen them, here is an overview of my postings since November 2009 &amp;nbsp;and so far in May 2010:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;b&gt;Search&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;ul style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://atbrox.com/2010/02/28/initial-thoughts-on-yahoos-ranking-challenge/&quot;&gt;Initial Thoughts on Yahoo&#39;s Ranking Challenge&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;b&gt;Hadoop and Mapreduce&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://atbrox.com/2010/05/08/mapreduce-hadoop-algorithms-in-academic-papers-may-2010-update/&quot;&gt;Mapreduce &amp;amp; Hadoop Algorithms in Academic Papers (3rd Update)&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://atbrox.com/2010/02/08/parallel-machine-learning-for-hadoopmapreduce-a-python-example/&quot;&gt;Parallel Machine Learning for Hadoop/Mapreduce - a Python Example&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://atbrox.com/2010/02/17/hadoop/&quot;&gt;So, what is Hadoop?&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2009/11/14/atbrox-customer-case-study-scalable-language-processing-with-elastic-mapreduce-hadoop/&quot;&gt;Atbrox Customer Case Study - Scalable Language Processing with Elastic Mapreduce&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;(for even earlier postings on Atbrox check out &lt;a href=&quot;http://amundblog.blogspot.com/2009/11/my-latest-postings-on-atbrox-related-to.html&quot;&gt;this overview&lt;/a&gt;)&lt;/span&gt;&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/9152133615076892453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/9152133615076892453'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2010/05/overview-of-my-postings-on-atbrox-blog.html' title='Overview of my postings on the Atbrox blog (Nov 2009-May 2010)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-3959832335747507669</id><published>2010-01-24T22:03:00.000+01:00</published><updated>2010-01-24T22:03:26.780+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="search informationretrieval selfindexing"/><title type='text'>My recent reads in Information Retrieval - Indexing</title><content type='html'>&lt;div style=&quot;height: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Information Retrieval (IR) - better known as Search - is probably the most exciting research field I know of, the reasons that makes IR exciting are:&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;solvability &lt;/b&gt;- it can probably never be solved perfectly, but always be improved&lt;/li&gt;
&lt;li&gt;&lt;b&gt;coverage &lt;/b&gt;- it spans all areas of computer science and touches many other sciences (e.g. statistics)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;importance &lt;/b&gt;- it is the most important research area related to supporting human decisions? (~AI)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;difficulty&amp;nbsp;&lt;/b&gt;- it is extremely hard to do well&lt;/li&gt;
&lt;li&gt;&lt;b&gt;applicability &lt;/b&gt;- it can be used practically anywhere (anytime).&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;b&gt;Where to start learning about information retrieval?&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Before jumping into research papers I suggest reading a book about IR, either:&lt;br /&gt;
&lt;a href=&quot;http://www.amazon.com/Search-Engines-Information-Retrieval-Practice/dp/0136072240?ie=UTF8&amp;amp;tag=amuw-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969&quot; target=&quot;_blank&quot;&gt;Search Engines: Information Retrieval in Practice&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=amuw-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0136072240&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt; (2009) or&lt;br /&gt;
&lt;a href=&quot;http://www.amazon.com/Introduction-Information-Retrieval-Christopher-Manning/dp/0521865719?ie=UTF8&amp;amp;tag=amuw-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969&quot; target=&quot;_blank&quot;&gt;Introduction to Information Retrieval&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=amuw-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0521865719&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt; (2008)&lt;br /&gt;
They are both good and relatively similar books written by a mix of authors from search industry and academic IR research (note: &lt;i&gt;I personally prefer the newest one&lt;/i&gt;).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;My recent reads in Information Retrieval?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Indexing - algorithms and datastructures for self-indexing&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Self-indexing is&amp;nbsp;where (lossless) compression meets indexing, and is an alternative to the classic inverted index. Self-indices has some nice characteristics wrt compression, performance and query-flexibility. Indexing-research-rockstar &lt;a href=&quot;http://www.dcc.uchile.cl/~gnavarro/publ.html&quot;&gt;Gonzalo Navarro&lt;/a&gt; even called it&amp;nbsp;&lt;a href=&quot;http://www.stringology.org/event/2009/psc09p01_presentation.pdf&quot;&gt;the Miracle of Self-indexing&lt;/a&gt;&amp;nbsp;(2009).&lt;br /&gt;
2 key papers in the field are:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.4.1585&amp;amp;rep=rep1&amp;amp;type=pdf&quot;&gt;Opportunistic Data Structures with Application&lt;/a&gt;s (2000)&lt;/li&gt;

&lt;ul&gt;&lt;li&gt;Introduced the FM-index&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;a href=&quot;http://portal.acm.org/citation.cfm?id=644108.644250&quot;&gt;High-order entropy-compressed text indexes&lt;/a&gt; (2003)&lt;/li&gt;

&lt;ul&gt;&lt;li&gt;Introduced the Wavelet Index Tree&lt;/li&gt;
&lt;/ul&gt;
&lt;/ol&gt;Check out &lt;a href=&quot;http://www.dcc.uchile.cl/~gnavarro/publ.html&quot;&gt;Navarro&#39;s&lt;/a&gt; survey paper&amp;nbsp;&lt;a href=&quot;http://www.dcc.uchile.cl/~gnavarro/ps/acmcs06.pdf&quot;&gt;Compressed Full-Text Indexes&lt;/a&gt;&amp;nbsp;(2007) for a good overview of self-indexing.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Have a nice read :)&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/3959832335747507669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/3959832335747507669'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2010/01/my-recent-reads-in-information.html' title='My recent reads in Information Retrieval - Indexing'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-3347061328874199726</id><published>2009-11-24T09:12:00.001+01:00</published><updated>2009-11-24T09:14:50.529+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="atbrox"/><category scheme="http://www.blogger.com/atom/ns#" term="hadoop"/><category scheme="http://www.blogger.com/atom/ns#" term="mapreduce"/><category scheme="http://www.blogger.com/atom/ns#" term="search"/><title type='text'>My latest postings (on Atbrox) related to Hadoop/Mapreduce &amp; Search</title><content type='html'>As mentioned in a previous posting I mainly write on &lt;a href=&quot;http://atbrox.com/about/&quot;&gt;Atbrox&#39;s&lt;/a&gt; blog, here are my postings in October and (so far in) November.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Search&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2009/11/04/preliminary-experiences-crawling-with-80legs/&quot;&gt;Preliminary Experiences Crawling with 80legs&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2009/10/27/unstructuredsearchforsimpledb/&quot;&gt;Unstructured Search for Amazon’s SimpleDB&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Hadoop and Mapreduce&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2009/11/11/how-to-combine-elastic-mapreducehadoop-with-other-amazon-web-services/&quot;&gt;How to Combine Elastic Mapreduce/Hadoop with other Amazon Web Services&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2009/10/07/how-to-use-c-compiled-python-for-amazons-elastic-mapreduce-hadoop/&quot;&gt;How to use C++ Compiled Python for Amazon’s Elastic Mapreduce (Hadoop)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2009/10/01/mapreduce-and-hadoop-academic-papers/&quot;&gt;Mapreduce &amp;amp; Hadoop Algorithms in Academic Papers&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2009/10/03/hadoop-world-2009-notes-from-application-session/&quot;&gt;Hadoop World NYC - notes from application session&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://atbrox.com/2009/10/02/hadoop-world-2009-some-notes-from-morning-session/&quot;&gt;Hadoop World NYC - notes from morning session&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/3347061328874199726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/3347061328874199726'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2009/11/my-latest-postings-on-atbrox-related-to.html' title='My latest postings (on Atbrox) related to Hadoop/Mapreduce &amp; Search'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-210358024055023955</id><published>2009-10-07T11:47:00.000+01:00</published><updated>2009-10-07T11:47:08.233+01:00</updated><title type='text'>From now on mainly blogging on Atbrox.com&#39;s blog</title><content type='html'>&lt;a href=&quot;http://atbrox.com/&quot;&gt;Atbrox &lt;/a&gt;is my new startup company (I left Google 1 month ago after 4 exciting years).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/210358024055023955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/210358024055023955'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2009/10/from-now-on-mainly-blogging-on.html' title='From now on mainly blogging on Atbrox.com&#39;s blog'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-7328959644058281143</id><published>2009-03-08T23:24:00.011+01:00</published><updated>2009-03-09T00:16:35.178+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cinpy"/><category scheme="http://www.blogger.com/atom/ns#" term="cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="mobile agents"/><category scheme="http://www.blogger.com/atom/ns#" term="parallel"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Snakes on a Cloud</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold; &quot;&gt;.. or Mobile Agents with Python&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;What are mobile agents?&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;i&gt;&quot;A mobile agent is a process that can transport its state from one environment to another, &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#3333FF;&quot;&gt;with its data&lt;/span&gt; intact, and be capable of performing appropriately in the new environment&quot;&lt;/i&gt;, source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Mobile_agent&quot;&gt;Wikipedia&lt;/a&gt;.&lt;div&gt;&lt;br /&gt;&lt;b&gt;Why Mobile Agents .. or how to deal with Data Gravity&lt;/b&gt;&lt;br /&gt;The phrase &lt;i&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#3333FF;&quot;&gt;&quot;with its data&quot;&lt;/span&gt;&lt;/i&gt; most likely refers to the agent&#39;s state data (and not all types of data), since one of the nicest properties of mobile agents is that they can move to where potentially huge amounts of data is. By plotting the curve &quot;data gravity&quot; - i.e. a rough estimate of how long time it takes to empty/fill/process a hard drive over a network connection -  hard disk size divided by (typical) ethernet network speed over the last 20 years - the motivation for moving code to data (and not vice versa) is clearly increasing, making mobile agents a potentially interesting approach.&lt;div&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkcOdTixtEnSwHg-jarOlUv33MDqZ-2-4MOyRP-FwhI5EgBmjwUhdgQKeEA2tQKAJVTB4icqwjmruhqpzyKexSxCBWmmn_GgIGwBOs0yW1utgirqRpVGNvU42JDxsOmQt19csMk6niV7dO/s400/datagravity.png&quot; style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5310950092219056034&quot; /&gt;&lt;figure here=&quot;&quot;&gt;&lt;br /&gt;&lt;/figure&gt;&lt;div&gt;&lt;figure here=&quot;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;Mobile Agent Runtime Environment&lt;/span&gt;&lt;/b&gt;&lt;/figure&gt;&lt;/div&gt;&lt;div&gt;&lt;figure here=&quot;&quot;&gt;A basic requirement for a mobile agent runtime environment is the ability to receive and run the agent&#39;s code, e.g. typically  support one/several of the following (with Python-related examples):&lt;br /&gt;i) receive and run binary code&lt;br /&gt;python example: receive python compiled to binary with Shedskin and g++&lt;br /&gt;ii) receive and compile source code and run it&lt;br /&gt;python example: receive c source code and compile/integrate it with Python using Cinpy, or use Shedskin/g++ on received Python code&lt;br /&gt;iii) receive and run interpreter on source code&lt;br /&gt;python example: receive python code and interpret using the eval() method.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;Bandwidth&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;If the mobile agents move around a bit, you probably want their representation as compact as possible to reduce bandwidth requirements, i.e. prefer agents represented in (small amounts of) source code - alternative ii) or iii) - over (larger amounts of) binary code - alternative i).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;Processing&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;compiled code (or just-in-time compiled code) is usually more efficient than interpreted code (interpreted code can perhaps be seen as analog to the &lt;i&gt;&quot;gas guzzling cars&quot;&lt;/i&gt; of computing wrt resource utilization, fortunately there are tools to deal with that), so alternative ii) is probably preferred over iii), and with the cinpy case compilation overhead is negligible (a few milliseconds to compile and make a short C method ready to be called from Python), which matter if you have a large amount of distributed mobile agents. Pareto principle also matters for mobile agents, so a mix (80-99% of code) in interpreted Python and the things that really need to perform in C (quickly compiled with cinpy)  might be a common mix.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example of Cinpy-wrapped C function in python&lt;br /&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#006600;&quot;&gt;fibc=cinpy.defc(&lt;br /&gt;&quot;fib&quot;,&lt;br /&gt;ctypes.CFUNCTYPE(ctypes.c_int,ctypes.c_int),&lt;br /&gt;&quot;&quot;&quot;&lt;br /&gt;int fib(int x) {&lt;br /&gt;  if (x&lt;=1) return 1;       return fib(x-1)+fib(x-2);     }     &quot;&quot;&quot;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;Security&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;In case mobile agents move around on the cloud it is nice to know that the agent you receive is from a known source (yourself), this can e.g. be done using &lt;a href=&quot;http://www.freenet.org.nz/ezPyCrypto/&quot;&gt;ezPyCrypto&lt;/a&gt;&#39;s &lt;a href=&quot;http://www.freenet.org.nz/ezPyCrypto/detail/public/ezPyCrypto.key-class.html#signString&quot;&gt;signString&lt;/a&gt;() to sign the agent source and then use &lt;a href=&quot;http://www.freenet.org.nz/ezPyCrypto/detail/public/ezPyCrypto.key-class.html#verifyString&quot;&gt;verifyString&lt;/a&gt;() methods on the signed agent source code together with its signature to check the origin of the agent (assuming the signer&#39;s public key is available on the receiving end).&lt;/figure&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;disclaimer&lt;/i&gt;&lt;/b&gt;&lt;i&gt;: this posting (and all others on this blog) only represents my personal views.&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/7328959644058281143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/7328959644058281143'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2009/03/snakes-on-cloud.html' title='Snakes on a Cloud'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkcOdTixtEnSwHg-jarOlUv33MDqZ-2-4MOyRP-FwhI5EgBmjwUhdgQKeEA2tQKAJVTB4icqwjmruhqpzyKexSxCBWmmn_GgIGwBOs0yW1utgirqRpVGNvU42JDxsOmQt19csMk6niV7dO/s72-c/datagravity.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-2634175588260165534</id><published>2008-12-27T01:23:00.013+01:00</published><updated>2009-03-14T13:13:06.430+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="appengine"/><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="gwt"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="json"/><category scheme="http://www.blogger.com/atom/ns#" term="json-rpc"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="webpy"/><title type='text'>Ajax with Python - Combining PyJS and Appengine with json-rpc</title><content type='html'>I recently (re)discovered &lt;a href=&quot;http://pyjs.org/&quot;&gt;pyjs &lt;/a&gt;&amp;nbsp;- also called Pyjamas - which &amp;nbsp;is a tool to support development of (client-side) Ajax applications with Python, it does that by compiling Python code to Javascript (Pyjamas is inspired by&amp;nbsp;&lt;a href=&quot;http://code.google.com/webtoolkit/&quot;&gt;GWT &lt;/a&gt;&amp;nbsp;- which supports writing Ajax applications in Java).&lt;br /&gt;
&lt;br /&gt;
pyjs&#39; kitchensink comes with a &lt;a href=&quot;http://en.wikipedia.org/wiki/JSON-RPC&quot;&gt;JSON-RPC&lt;/a&gt; example, this posting shows how to use Appengine to serve as a JSON-RPC server for the pyjs json-rpc example.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;(Rough) Steps&lt;/span&gt;:&lt;br /&gt;
1) download&amp;nbsp;&lt;a href=&quot;http://code.google.com/appengine/downloads.html&quot;&gt;appengine SDK&lt;/a&gt; and create an &lt;a href=&quot;http://appengine.google.com/&quot;&gt;appengine application&lt;/a&gt;&amp;nbsp;(in the dashboard)&lt;br /&gt;
2) download&amp;nbsp;&lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=239074&quot;&gt;pyjs&amp;nbsp;&lt;/a&gt;&lt;br /&gt;
3) Replace pyjs example/jsonrpc/JSONRPCExample.py with this code&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;from ui import RootPanel, TextArea, Label, Button, HTML, VerticalPanel, HorizontalPanel, ListBox&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;from JSONService import JSONProxy&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;class JSONRPCExample:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;def onModuleLoad(self):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.TEXT_WAITING = &quot;Waiting for response...&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.TEXT_ERROR = &quot;Server Error&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.remote_py = UpperServicePython()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.status=Label()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.text_area = TextArea()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.text_area.setText(r&quot;Please uppercase this string&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.text_area.setCharacterWidth(80)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.text_area.setVisibleLines(8)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.button_py = Button(&quot;Send to Python Service&quot;, self)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buttons = HorizontalPanel()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buttons.add(self.button_py)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buttons.setSpacing(8)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;info = r&#39;This example demonstrates the calling of appengine upper(case) method with &lt;a href=&quot;http://draft.blogger.com/%22http://json-rpc.org//%22&quot;&gt;JSON-RPC&lt;/a&gt; from javascript (i.e. Python code compiled with pyjs to javascript).&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;panel = VerticalPanel()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;panel.add(HTML(info))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;panel.add(self.text_area)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;panel.add(buttons)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;panel.add(self.status)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RootPanel().add(panel)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;def onClick(self, sender):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.status.setText(self.TEXT_WAITING)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;text = self.text_area.getText()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if self.remote_py.upper(self.text_area.getText(), self) &amp;lt; 0:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.status.setText(self.TEXT_ERROR)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;def onRemoteResponse(self, response, request_info):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.status.setText(response)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;def onRemoteError(self, code, message, request_info):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.status.setText(&quot;Server Error or Invalid Response: ERROR &quot; + code + &quot; - &quot; + message)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;class UpperServicePython(JSONProxy):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;def __init__(self):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;JSONProxy.__init__(self, &quot;/json&quot;, [&quot;upper&quot;])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;4) Use the following code for the appengine app&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;from google.appengine.ext import webapp&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;from google.appengine.ext.webapp.util import run_wsgi_app&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;import logging&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;from django.utils import simplejson&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;class JSONHandler(webapp.RequestHandler):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;def json_upper(self,args):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return [args[0].upper()]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;def post(self):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;args = simplejson.loads(self.request.body)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;json_func = getattr(self, &#39;json_%s&#39; % args[u&quot;method&quot;])&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;json_params = args[u&quot;params&quot;]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;json_method_id = args[u&quot;id&quot;]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;result = json_func(json_params)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;# reuse args to send result back&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;args.pop(u&quot;method&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;args[&quot;result&quot;] = result[0]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;args[&quot;error&quot;] = None # IMPORTANT!!&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;self.response.headers[&#39;Content-Type&#39;] = &#39;application/json&#39;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;self.response.set_status(200)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;self.response.out.write(simplejson.dumps(args))&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;application = webapp.WSGIApplication(&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [(&#39;/json&#39;, JSONHandler)],&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; debug=True)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;def main():&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;run_wsgi_app(application)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;if __name__ == &quot;__main__&quot;:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;main()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;5) compile pyjs code in 3) and create static dir in appengine app to store compiled code (i.e in app.yaml)&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;6) use dev_appserver.py to test locally or appcfg.py to deploy on appengine&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;7) a testable version is on&amp;nbsp;&lt;a href=&quot;https://testulf3.appspot.com/static/JSONRPCExample.html&quot;&gt;https://testulf3.appspot.com/static/JSONRPCExample.html&lt;/a&gt;&amp;nbsp;.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Facebook application&lt;/span&gt;&lt;br /&gt;
By using &lt;a href=&quot;http://googlewebtoolkit.blogspot.com/2008/12/put-your-gwt-app-on-facebook-in-10.html&quot;&gt;this recipe&lt;/a&gt;&amp;nbsp;it was easy to create a facebook app of the example in this posting - check it out at&amp;nbsp;&lt;a href=&quot;http://apps.facebook.com/testulf/&quot;&gt;http://apps.facebook.com/testulf/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Alternative backend - using webpy&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;This shows how to use&amp;nbsp;&lt;a href=&quot;http://webpy.org/&quot;&gt;webpy&lt;/a&gt;&amp;nbsp;as backend, just put the javascript/html resulting from pyjs compile into the static/ directory. Very similar as the previous approach, with the code in blue being the main diff (i.e. webpy specific)&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;import web&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;import json&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;urls = (&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&#39;/json&#39;, &#39;jsonhandler&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;app = web.application(urls, globals())&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;class jsonhandler:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp;def json_upper(self,args):&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return [args[0].upper()]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp;def json_markdown(self,args):&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return [args[0].lower()]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp;def POST(self):&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;args = json.loads(web.data())&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;json_func = getattr(self, &#39;json_%s&#39; % args[u&quot;method&quot;])&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;json_params = args[u&quot;params&quot;]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;json_method_id = args[u&quot;id&quot;]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;result = json_func(json_params)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;# reuse args to send result back&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;args.pop(u&quot;method&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;args[&quot;result&quot;] = result[0]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;args[&quot;error&quot;] = None # IMPORTANT!!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;web.header(&quot;Content-Type&quot;,&quot;text/html; charset=utf-8&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return json.dumps(args)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;if __name__ == &quot;__main__&quot;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp;app.run()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/2634175588260165534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/2634175588260165534'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/12/ajax-with-python-combining-pyjs-and.html' title='Ajax with Python - Combining PyJS and Appengine with json-rpc'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-832288441960450034</id><published>2008-12-17T18:32:00.011+01:00</published><updated>2009-01-01T16:39:14.988+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mamma mia"/><category scheme="http://www.blogger.com/atom/ns#" term="markov chain monte carlo"/><category scheme="http://www.blogger.com/atom/ns#" term="mcmc"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="simulation"/><title type='text'>Simulating Mamma Mia under the xmas tree (with Python)</title><content type='html'>&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://ia.media-imdb.com/images/M/MV5BMTIzMDI3NDI5MF5BMl5BanBnXkFtZTcwMzczOTEwMg@@._V1._SX100_SY136_.jpg&quot; style=&quot;float: right; height: 136px; margin-bottom: 10px; margin-left: 10px; margin-right: 0px; margin-top: 0px; width: 100px;&quot; /&gt;Norway has a population of ~4.7 million, and &quot;Mamma Mia!&quot; has during a few weeks been sold in ~600 thousand DVD/Blueray copies (&amp;gt; 12% of the population, i.e. breaking every sales record, perhaps with the exception of Sissel Kyrkjebø&#39;s Christmas Carol album which has sold a total of &lt;a href=&quot;http://en.wikipedia.org/wiki/Sissel_Kyrkjeb%C3%B8#1986_-_1994:_Rise_to_prominence_at_home&quot;&gt;~900 thousand copies&lt;/a&gt;&amp;nbsp;in the same population, but that was over a period of 21 years). &amp;nbsp;In the UK it has sold &lt;a href=&quot;http://news.sky.com/skynews/Home/UK-News/Mamma-Mia-Is-UK-Best-Selling-DVD-Ever-Beating-Titantic/Article/200901115196115?lid=ARTICLE_15196115_MammaMia!IsUKBest-SellingDVDEver,BeatingTitantic&amp;amp;lpos=searchresults&quot;&gt;more than 5 million&lt;/a&gt; (in a population of 59 million, i.e. &amp;gt;8% of the population).&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
Well, to the point. Guesstimating that there will be ~2 million xmas trees in Norway, one can assume that many of the trees will have (much) more than one &quot;Mamma Mia!&quot; dvd/blueray underneath it*, &amp;nbsp;the question is how many?&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Simulating &lt;/span&gt;Mamma Mia under the xmas tree&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;.. Before you start recapping probability theory, combinatorics, birthday paradox, multiplication of improbabilities and whatnot, how about finding an alternative solution using&amp;nbsp;&lt;span style=&quot;font-style: italic;&quot;&gt;simulation&lt;/span&gt;?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;A simple simulation model could be to assume that for every Mamma Mia dvd/blueray copy there is a lottery where all trees participate, &amp;nbsp;and then finally (or incrementally) count how many copies each tree won.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
A friend wrote a nice Python script to simulate this:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;import random&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;NUM_XMAS_TREES = 2000000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;NUM_MAMMA_MIAS = 600000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;tree_supplies = {}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;for mamma_mia in range(NUM_MAMMA_MIAS):&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;winner_tree = random.randint(0, NUM_XMAS_TREES)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;tree_supplies[winner_tree] = tree_supplies.get(winner_tree,0) + 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;tree_stats = {}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;for tree in tree_supplies:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;tree_stats[tree_supplies[tree]] = tree_stats.get(tree_supplies[tree], 0) + 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;print tree_stats&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Results:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;$ for k in `seq 1 10`; do echo -n &quot;$k &quot; ; python mammamia.py; done&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;1 {1: 443564, 2: 67181, 3: 6618, 4: 510, &lt;span style=&quot;color: cyan;&quot;&gt;5&lt;/span&gt;: 36}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;2 {1: 444497, 2: 66811, 3: 6543, 4: 520, 5: 32, &lt;span style=&quot;color: cyan;&quot;&gt;6&lt;/span&gt;: 2}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;3 {1: 444796, 2: 66376, 3: 6738, 4: 510, 5: 36, &lt;span style=&quot;color: cyan;&quot;&gt;6&lt;/span&gt;: 3}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;4 {1: 444499, 2: 66750, 3: 6652, 4: 469, 5: 30, 6: 2, &lt;span style=&quot;color: red;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: yellow;&quot;&gt;: 1}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;5 {1: 444347, 2: 66717, 3: 6697, 4: 494, 5: 28, &lt;span style=&quot;color: cyan;&quot;&gt;6&lt;/span&gt;: 2}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;6 {1: 444511, 2: 66389, 3: 6763, 4: 551, 5: 40, &lt;span style=&quot;color: cyan;&quot;&gt;6&lt;/span&gt;: 3}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;7 {1: 443914, 2: 66755, 3: 6785, 4: 511, 5: 33, &lt;span style=&quot;color: cyan;&quot;&gt;6&lt;/span&gt;: 2}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;8 {1: 444747, 2: 66558, 3: 6667, 4: 484, &lt;span style=&quot;color: cyan;&quot;&gt;5&lt;/span&gt;: 40}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;9 {1: 444553, 2: 66703, 3: 6631, 4: 497, &lt;span style=&quot;color: cyan;&quot;&gt;5&lt;/span&gt;: 32}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;10 {1: 443903, 2: 66853, 3: 6774, 4: 487, 5: 23, &lt;span style=&quot;color: cyan;&quot;&gt;6&lt;/span&gt;: 1}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 12px;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Conclusion&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
So we see that in run 4 there was one xmas tree that according to the simulation model got &lt;span style=&quot;color: red;&quot;&gt;7&lt;/span&gt;(!) Mamma Mia DVD/Bluerays underneath it, but the overall simulation shows that &lt;span style=&quot;color: cyan;&quot;&gt;5&lt;/span&gt; or &lt;span style=&quot;color: cyan;&quot;&gt;6&lt;/span&gt;&amp;nbsp;(at most) is probably more likely (assuming the model is right).&lt;br /&gt;
&lt;br /&gt;
Regarding the simulation model, it is probably way too simplistic, i.e. not taking into account people buying mamma mia for themselves (or not as xmas gifts), a likely skewness in terms of number of gifts per christmas tree, interaction between buyers, etc. But it can with relatively simple manners be extended with code to make it more realistic. Check out &lt;a href=&quot;http://en.wikipedia.org/wiki/Markov_chain_Monte_Carlo&quot;&gt;Markov Chain Monte Carlo&lt;/a&gt; simulation for more info on how to create more realistic simulation models.&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/832288441960450034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/832288441960450034'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/12/simulating-mamma-mia-under-xmas-tree.html' title='Simulating Mamma Mia under the xmas tree (with Python)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-9184407444873126794</id><published>2008-12-03T20:23:00.006+01:00</published><updated>2008-12-06T07:54:29.934+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cinpy"/><category scheme="http://www.blogger.com/atom/ns#" term="compile"/><category scheme="http://www.blogger.com/atom/ns#" term="gcc"/><category scheme="http://www.blogger.com/atom/ns#" term="performance"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="tcc"/><title type='text'>cinpy - or C in Python</title><content type='html'>&lt;a href=&quot;http://www.cs.tut.fi/~ask/cinpy/&quot;&gt;cinpy&lt;/a&gt;&amp;nbsp;is a tool where you can write C code in your Python code (with the help of ctypes - included in modern Python versions). When you execute your python program the C code is compiled on the fly using Tiny C Compiler (TCC).&lt;br /&gt;
&lt;div&gt;&lt;/div&gt;&lt;div&gt;In this posting I will describe:&lt;/div&gt;&lt;div&gt;1) installation and testing cinpy&lt;/div&gt;&lt;div&gt;2) a simple benchmark (c-in-py vs python)&lt;/div&gt;&lt;div&gt;3) compare performance with gcc (c-in-py vs gcc)&lt;/div&gt;&lt;div&gt;4) measure cinpy (on-the-fly) compilation time&lt;/div&gt;&lt;div&gt;5) how to dynamically change cinpy methods&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;1. How to install and try cinpy (note: also found in cinpy/tcc README files)&lt;/span&gt;&lt;br /&gt;
1) &lt;a href=&quot;http://download.savannah.nongnu.org/releases/tinycc/tcc-0.9.24.tar.bz2&quot;&gt;download&lt;/a&gt;, uncompress and compile TCC&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;./configure&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;make&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;make install&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;gcc -shared -Wl,-soname,libtcc.so -o libtcc.so libtcc.o&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
2) download, uncompress and try cinpy&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;cp ../tcc*/*.so .&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;python cinpy_test.py &amp;nbsp;# you may have to comment out or install &lt;a href=&quot;http://psyco.sourceforge.net/&quot;&gt;psyco&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;2. Sample performance results (on a x86 linux box):&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;python cinpy_test.py&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Calculating fib(30)...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;fibc : 1346269 time: 0.03495 s&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;fibpy: 1346269 time: 2.27871 s&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Calculating for(1000000)...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;forc : 1000000 time: 0.00342 s&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;forpy: 1000000 time: 0.32119 s&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Using cinpy for fibc (Fibonacci) method was ~65 times faster than fibpy, and and cinpy for forc (loop) was ~93 times faster than forpy, not bad&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;3. How does cinpy (compiled with tcc) compare to gcc performance?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Copying the C fib() method and calling it with main program&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;$ time fibgcc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;fib(30) = 1346269&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;real &amp;nbsp; &amp;nbsp;0m0.016s&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;user &amp;nbsp; &amp;nbsp;0m0.020s&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;sys &amp;nbsp; &amp;nbsp; 0m0.000s&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 16px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;GCC gives roughly twice as fast code as cinpy/tcc (0.034/0.016).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: &#39;Times New Roman&#39;; font-size: 16px; font-weight: bold;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: 16px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;4. How long time does it take for tcc to on-the-fly compile cinpy methods?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#!/usr/bin/env python&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 13px; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# cinpy_compile_performance.py&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import ctypes&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import cinpy&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import time&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;t=time.time&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;t0 = t()&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;fibc=cinpy.defc(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &quot;fib&quot;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; ctypes.CFUNCTYPE(ctypes.c_int,ctypes.c_int),&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; int fib(int x) {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (x&amp;lt;=1) return 1;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; return fib(x-1)+fib(x-2);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;t1 = t()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;print &quot;Calculating fib(30)...&quot;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sc,rv_fibc,ec=t(),fibc(30),t()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;print &quot;fibc :&quot;,rv_fibc,&quot;time: %6.5f s&quot; % (ec-sc)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;print &quot;compilation time = %6.5f s&quot; % (t1-t0)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;python cinpy_compile_performance.py&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Calculating fib(30)...&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;fibc: 1346269 time: 0.03346 s&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;compilation time: 0.00333 s&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;So compilation (and linking) time is about 3.3ms, which is reasonably good, not a lot of overhead! (note: TCC is benchmarked to compile, assemble and link 67MB of code in 2.27s)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
5. &quot;Hot-swap&quot; replacement of cinpy code?&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Let us assume you have a system with a &quot;pareto&quot; situation, i.e. 80-99% of the code doesn&#39;t need be fast (written in Python), but 1-20% need to be really high performance (and written in C using cinpy), and that you need to frequently change the high performing code, can that be done? Examples of such a system could be mobile (software) agents.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Sure, all you need to do is wrap your cinpy definition as a string and run exec on it, like this:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
origmethod=&quot;&quot;&quot;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;fibc=cinpy.defc(&quot;fib&quot;,ctypes.CFUNCTYPE(ctypes.c_int,ctypes.c_int),&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;&#39;&#39;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int fib(int x) {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (x&amp;lt;=1) return 1;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return fib(x-1)+fib(x-2);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;&#39;&#39;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;# add an offset to the Fibonacci method&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;alternatemethod = origmethod.replace(&quot;+&quot;, &quot;+998+&quot;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;print alternatemethod&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;# alternatemethod has replaces origmethod with exec(alternatemethod)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;print fibc(2) # = 1000&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;/div&gt;Conclusion:&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;cinpy ain&#39;t bad.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-style: italic; font-weight: bold;&quot;&gt;Remark:&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;depending on the problem you are solving (e.g. if it is primarily network IO bound and not CPU bound) , becoming 1-2 orders of magnitude faster (cinpy vs pure python) is probably fast enough (CPU wise), the doubling from GCC may not matter (since network IO wise Python performs quite alright, e.g. with &lt;a href=&quot;http://twistedmatrix.com/trac/&quot;&gt;Twisted&lt;/a&gt;&amp;nbsp;).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/9184407444873126794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/9184407444873126794'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/12/cinpy-or-c-in-python.html' title='cinpy - or C in Python'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-1789763046071759146</id><published>2008-11-29T09:38:00.008+01:00</published><updated>2008-12-06T08:06:14.954+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="assembler"/><category scheme="http://www.blogger.com/atom/ns#" term="c++"/><category scheme="http://www.blogger.com/atom/ns#" term="fortran"/><category scheme="http://www.blogger.com/atom/ns#" term="parallelization"/><category scheme="http://www.blogger.com/atom/ns#" term="performance"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Tools for Accelerating Python</title><content type='html'>If you need to speed up your Python program there are several possible approaches, with varying degree of effort needed, here is (probably not complete) overview:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Rewrite your Python code by &lt;a href=&quot;http://en.wikipedia.org/wiki/Parallel_computing&quot;&gt;parallelizing&lt;/a&gt; or optimizing/replacing/tuning algorithm(s), e.g. using: &lt;a href=&quot;http://www.michael-noll.com/wiki/Writing_An_Hadoop_MapReduce_Program_In_Python&quot;&gt;&lt;/a&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.michael-noll.com/wiki/Writing_An_Hadoop_MapReduce_Program_In_Python&quot;&gt;Hadoop&lt;/a&gt; or &lt;a href=&quot;http://discoproject.org/&quot;&gt;Disco&lt;/a&gt;&lt;a href=&quot;http://www.parallelpython.com/&quot;&gt;&lt;/a&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Open source implementations of &lt;a href=&quot;http://labs.google.com/papers/mapreduce.html&quot;&gt;MapReduce&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.parallelpython.com/&quot;&gt;Parallel Python&lt;/a&gt; &lt;a href=&quot;http://mpi4py.scipy.org/&quot;&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://mpi4py.scipy.org/&quot;&gt;Message Passing Interface (MPI)&lt;/a&gt;&lt;a href=&quot;http://www.parawiki.org/index.php/Python/BSP&quot;&gt;&lt;/a&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Frequently used for numerical programming&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.parawiki.org/index.php/Python/BSP&quot;&gt;Bulk Synchronous Parallel (BSP)&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://rpyc.wikidot.com/&quot;&gt;RPyC&lt;/a&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;RPC for Distributed/Parallel Programming&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://twistedmatrix.com/trac/&quot;&gt;Twisted&lt;/a&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Network libraries for Distributed/Parallel Programming&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.python.org/doc/2.5.2/lib/module-profile.html&quot;&gt;Profiling Tools&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Threading or &lt;a href=&quot;http://amundblog.blogspot.com/2008/10/example-of-microsimulation-with.html&quot;&gt;Microthreads (Stackless)&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Use a tool that can speed up your code more or less unchanged&lt;br /&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://psyco.sourceforge.net/&quot;&gt;Psyco&lt;/a&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Just in time compiler, note: this is probably the easiest approach to try&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/&quot;&gt;Pyrex&lt;/a&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Write and compile Python with a flavor of C data structures&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://cython.org/&quot;&gt;Cython&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://pyjs.org/&quot;&gt;PyJs&lt;/a&gt; &lt;/li&gt;&lt;ul&gt;&lt;li&gt;Compile (large subset of) Python to Javascript, note: probably more interesting for client development (ajax) than server side.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://amundblog.blogspot.com/2008/01/rpython-gclb-benchmark-recursive.html&quot;&gt;Rpython&lt;/a&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Compile (large subset of) Python to native code, note: part of PyPy project&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://code.google.com/p/pystream/&quot;&gt;PyStream&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.txcorp.com/products/GPULib/&quot;&gt;GPULib&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://sourceforge.net/projects/shedskin/&quot;&gt;Shedskin &lt;/a&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Compile (large subset of) Python to C++, &lt;a href=&quot;http://ianozsvald.com/2008/11/17/making-python-math-196-faster-with-shedskin/&quot;&gt;some benchmarks&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;Replace (parts of) your Python code with another language&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.swig.org/&quot;&gt;Simplified Wrapper and Interface Generator (SWIG)&lt;/a&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Use C/C++ from Python&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://cens.ioc.ee/projects/f2py2e/&quot;&gt;Fortran to Python Interface Generator (F2PY)&lt;/a&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Use Fortran from Python&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://mdevan.nfshost.com/llvm-py/&quot;&gt;llvm-py&lt;/a&gt; &lt;/li&gt;&lt;ul&gt;&lt;li&gt;Code and Compile to Assembler for running on Low-Level Virtual Machine&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.corepy.org/&quot;&gt;CorePy&lt;/a&gt; &lt;/li&gt;&lt;ul&gt;&lt;li&gt;Write Assembly Code in Python&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;a href=&quot;http://scipy.org/Weave&quot;&gt;Weave&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://pyinline.sourceforge.net/&quot;&gt;PyInline&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.boost.org/doc/libs/1_37_0/libs/python/doc/index.html&quot;&gt;Boost.Python&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.cs.tut.fi/~ask/cinpy/&quot;&gt;Cinpy&lt;/a&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;C code blended with Python (using &lt;a href=&quot;http://starship.python.net/crew/theller/ctypes/&quot;&gt;ctypes&lt;/a&gt;) and runtime compilation with &lt;a href=&quot;http://tinycc.org/&quot;&gt;tcc&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/1789763046071759146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/1789763046071759146'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/11/tools-for-accelerating-python.html' title='Tools for Accelerating Python'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-6156953348503553271</id><published>2008-10-18T10:01:00.001+01:00</published><updated>2008-10-18T11:04:51.846+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="greenlets"/><category scheme="http://www.blogger.com/atom/ns#" term="grid"/><category scheme="http://www.blogger.com/atom/ns#" term="parallel"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="stackless python"/><category scheme="http://www.blogger.com/atom/ns#" term="tasklets"/><title type='text'>Example of Microsimulation with Stackless Python</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPEtqA3QDWaWiPUWE3pXlMjt7F7R2PYBtuJjqVFCb484jiUK3Hi93tvilq1WkhsI_6Y5DaHRH40s8_VMcUeJl0irJBTceqTsyMcwvK4tbRS93tLmLYzPHAAt3uslsCSLddktuA8RhIktvt/s1600-h/robotmusicalchairs.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNgrgbe7jIwZ1WlqqWv9Szn6hZjviqQLFUnYYNWxIDEAMt5z7Bi7-FaAFKsJ_8Ba84scChI77EIiCHava7KFLEIeax92av7arbFM-klTT-tDhCYZXKSKXCiX11qhElb_U7o1ZHIgy7vU0j/s400-r/robotmusicalchairs.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Stackless Python is roughly Python with support for microthreads (called &lt;a href=&quot;http://www.stackless.com/wiki/Tasklets&quot;&gt;tasklets&lt;/a&gt;). Tasklets communicate with each other by sending messages through&amp;nbsp;&lt;a href=&quot;http://zope.stackless.com/wiki/Channels&quot;&gt;channels&lt;/a&gt;&amp;nbsp;, i.e. similar to &lt;a href=&quot;http://en.wikipedia.org/wiki/Erlang_(programming_language)&quot;&gt;Erlang&lt;/a&gt;, but of course with Python syntax (guess which I prefer :-). &amp;nbsp;Stackless has a sibling called &lt;a href=&quot;http://amundblog.blogspot.com/2008/02/python-is-concurrently-alive-and.html&quot;&gt;Greenlet Python&lt;/a&gt;&amp;nbsp;, which is a library that can be used with traditional Python to get decent mictrothread support.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Scale&lt;/span&gt;&lt;br /&gt;
Tasklets have low overhead (compared to traditional threads) so you can have hundreds of thousands of them simultaneously, and when it gets overly crowded and busy on one machine, you can easily scale up by &lt;span style=&quot;-webkit-text-decorations-in-effect: underline; color: #551a8b; text-decoration: underline;&quot;&gt;pickling&amp;nbsp;&lt;/span&gt;some&amp;nbsp;tasklets and send them to another machine (better known as &lt;a href=&quot;http://en.wikipedia.org/wiki/Mobile_agent&quot;&gt;mobile agents&lt;/a&gt;&amp;nbsp;in computer science). Since tasklets also live Python&#39;s GIL regime, it might be idea to use the processing API to spawn several processes to better utilize multicore machines (and have many tasklets within each process), or use some of &lt;a href=&quot;http://wiki.python.org/moin/ParallelProcessing&quot;&gt;these libraries&lt;/a&gt;&amp;nbsp;.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;API Alignment Challenge&lt;/span&gt;&lt;br /&gt;
In Python 2.6 the process and thread APIs are aligned, but a missing piece would be to align those apis with stackless/tasklet apis. From my perspective a natural order would be process &amp;gt; thread &amp;gt; tasklet, and perhaps adding your favorite piece of the cloud would make sense for the API as well?&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Example - simulation with 100k robots&lt;/span&gt;&lt;br /&gt;
The robots are playing a variant of musical chairs on a rectangular arena, it differs from regular musical chairs since if a chair has been sat on once, it can&#39;t be sat on again. Finding out who won is left as an exercise (hint: it can be found more than 1 place)&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;color: #c00000; font-family: Lucida; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Lucida, &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;random&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;randint&lt;/span&gt;
&lt;span style=&quot;color: #c00000;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;stackless&lt;/span&gt;
&lt;span style=&quot;color: #c00000;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;sys&lt;/span&gt;
&lt;span style=&quot;color: #c00000;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;time&lt;/span&gt;

&lt;span style=&quot;color: #c00000;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;Arena&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
    &lt;span style=&quot;color: #c00000;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;__init__&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;xdim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ydim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;arena&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;None&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ydim&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;range&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;xdim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;]&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;xdim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ydim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;xdim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ydim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;

    &lt;span style=&quot;color: #c00000;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;find_unused_place_for_robot&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;robotname&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;randint&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0080c0;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;xdim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0080c0;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;randint&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0080c0;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ydim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0080c0;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: #c00000;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;not&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;arena&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
            &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;arena&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;robotname&lt;/span&gt;
        &lt;span style=&quot;color: #c00000;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;arena&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;robotname&lt;/span&gt;

&lt;span style=&quot;color: #c00000;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;Robot&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
    &lt;span style=&quot;color: #c00000;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;__init__&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0080c0;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;arena&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;None&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;maxrounds&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0080c0;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;name&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;name&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;arena&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;arena&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;points&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0080c0;&quot;&gt;0&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;maxrounds&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;maxrounds&lt;/span&gt;

        &lt;span style=&quot;color: green;&quot;&gt;# bind Robot&#39;s live method to it&#39;s tasklet&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tasklet&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;stackless&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tasklet&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;live&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;

    &lt;span style=&quot;color: #c00000;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;live&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;rounds&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0080c0;&quot;&gt;0&lt;/span&gt;
        &lt;span style=&quot;color: #c00000;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;rounds&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000c0;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;maxrounds&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
            &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;play&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
            &lt;span style=&quot;color: black;&quot;&gt;rounds&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;color: #0080c0;&quot;&gt;1&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tasklet&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;kill&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;

    &lt;span style=&quot;color: #c00000;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;play&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;# entire play method is atomically executed&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;atomic&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tasklet&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;set_atomic&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;True&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: #c00000;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;arena&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;find_unused_place_for_robot&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
            &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;points&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;color: #0080c0;&quot;&gt;1&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tasklet&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;set_atomic&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;atomic&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;

&lt;span style=&quot;color: #c00000;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;RobotArenaSimulator&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
    &lt;span style=&quot;color: #c00000;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;__init__&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;num_robots&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;xdim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ydim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;maxrounds&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;maxrounds&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;maxrounds&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;arena&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;Arena&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;xdim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ydim&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;robots&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Robot&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;arena&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;maxrounds&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
                       &lt;span style=&quot;color: #c00000;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;id&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;range&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0080c0;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;num_robots&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #0080c0;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: Lucida, &#39;Courier New&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000c0;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;run_preemptive&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;nopreempt_steps&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0080c0;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
        &lt;span style=&quot;color: black;&quot;&gt;tstart&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;clock&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: #c00000;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;stackless&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;getruncount&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #0080c0;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
            &lt;span style=&quot;color: green;&quot;&gt;# run() takes out the tasklet after nopreempt_steps&lt;/span&gt;
            &lt;span style=&quot;color: black;&quot;&gt;t&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;stackless&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;run&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;nopreempt_steps&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
            &lt;span style=&quot;color: green;&quot;&gt;# so need to add the tasklet to scheduler again&lt;/span&gt;
            &lt;span style=&quot;color: #c00000;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;t&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;t&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;insert&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: #c00000;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;clock&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tstart&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;

&lt;span style=&quot;color: #c00000;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;__name__&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #004080;&quot;&gt;&quot;__main__&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;:&lt;/span&gt;
    &lt;span style=&quot;color: black;&quot;&gt;tstart&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;clock&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
    &lt;span style=&quot;color: black;&quot;&gt;simulator&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;RobotArenaSimulator&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;num_robots&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0080c0;&quot;&gt;100000&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt;
                                    &lt;span style=&quot;color: black;&quot;&gt;xdim&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0080c0;&quot;&gt;10000&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ydim&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0080c0;&quot;&gt;10000&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;,&lt;/span&gt;
                                    &lt;span style=&quot;color: black;&quot;&gt;maxrounds&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0080c0;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
    &lt;span style=&quot;color: black;&quot;&gt;simulationtime&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;simulator&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;run_preemptive&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
    &lt;span style=&quot;color: #c00000;&quot;&gt;print&lt;/span&gt; &lt;span style=&quot;color: #004080;&quot;&gt;&quot;simulation time was %.2f seconds&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;%&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;simulationtime&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;
    &lt;span style=&quot;color: #c00000;&quot;&gt;print&lt;/span&gt; &lt;span style=&quot;color: #004080;&quot;&gt;&quot;total running time was %.2f seconds&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;%&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;clock&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tstart&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/6156953348503553271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/6156953348503553271'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/10/example-of-microsimulation-with.html' title='Example of Microsimulation with Stackless Python'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNgrgbe7jIwZ1WlqqWv9Szn6hZjviqQLFUnYYNWxIDEAMt5z7Bi7-FaAFKsJ_8Ba84scChI77EIiCHava7KFLEIeax92av7arbFM-klTT-tDhCYZXKSKXCiX11qhElb_U7o1ZHIgy7vU0j/s72-c-r/robotmusicalchairs.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-7304274048201639935</id><published>2008-07-18T08:30:00.016+01:00</published><updated>2008-07-18T12:01:45.830+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="confounding"/><category scheme="http://www.blogger.com/atom/ns#" term="science"/><category scheme="http://www.blogger.com/atom/ns#" term="statistics"/><category scheme="http://www.blogger.com/atom/ns#" term="theory"/><title type='text'>The Rebirth of Confounding and Theory in Science?</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz8WLM4lPdKWg3uslIeG7hLFEBTr501QuN8ZjMPL7pJbhQH0yDjmPlfC3-3DJvbRz-QRVzk8Fs-xCOfsrxp9AZneBJ8L08cX5pBuD-lN1O_OVTra1H7nFaAu7vOFK42vv6PKFFg1XpNVZu/s1600-h/confounding.png&quot;&gt;&lt;img style=&quot;cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz8WLM4lPdKWg3uslIeG7hLFEBTr501QuN8ZjMPL7pJbhQH0yDjmPlfC3-3DJvbRz-QRVzk8Fs-xCOfsrxp9AZneBJ8L08cX5pBuD-lN1O_OVTra1H7nFaAu7vOFK42vv6PKFFg1XpNVZu/s400/confounding.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5224298625422463106&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Wired recently published an interesting article titled: &lt;a href=&quot;http://www.wired.com/science/discoveries/magazine/16-07/pb_theory&quot;&gt;The End of Theory: The Data Deluge Makes the Scientific Method Obsolete&lt;/a&gt;, where they roughly conclude that with enough data and processing correlation is all you need. While interesting I think it misses a few important points.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Confounding variables&lt;/span&gt;&lt;br /&gt;At the end of the article they claimed: &lt;span style=&quot;font-style: italic;&quot;&gt;&quot;Correlation supersedes causation, and science can advance even without coherent models, unified theories, or really any mechanistic explanation at all&quot;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Correlation between two variables can give &lt;span style=&quot;font-style: italic;&quot;&gt;some&lt;/span&gt; information, and with a lot of data and computational horsepower you can find correlation relatively easily, but the danger is if correlation is interpreted as causation (and that can happen).&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Example: Correlation between GDP and Children´s Weight&lt;/span&gt;&lt;br /&gt;An example is the positive correlation between a country´s Gross Domestic Product (GDP) and the weight of its children, if that was interpreted as a causation the cheapest way to increase GDP for a country would be put kids on e.g. a &lt;a href=&quot;http://en.wikipedia.org/wiki/Chankonabe&quot;&gt;Chankonabe&lt;/a&gt; diet (note: I am not saying that is a likely action). The GDP and weight correlation is an example of where a third &lt;a href=&quot;http://en.wikipedia.org/wiki/Confounding_variable&quot;&gt;confounding variable&lt;/a&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;time&lt;/span&gt; was not accounted for.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Example: Correlation between substance X and your health&lt;/span&gt;&lt;br /&gt;In the press you frequently see eating/drinking substance X is good for your health and makes you live longer, in several of those cases I believe correlation is reported and not the confounding variables, i.e. many of these substances are luxury goods and may not be affordable to most of the worlds population, so the confounding variable might be personal economy which is probably correlated with access to vaccines and medical care.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;The value of theory&lt;/span&gt;&lt;br /&gt;My personal hypothesis is that the likelihood of not finding confounding variables increases exponentially with the complexity or level of abstractness of the domain investigated for correlation (e.g. in medicine, farmacology, biology or physics) The useful information is more likely to be found when discovering confounding variables, and the correlation is primarily a signal that says that something exciting is underneath (there can be cases where correlation is sufficiently interesting in itself though). In order to find or propose confounding variables I believe the need for models and theories is still very much needed, probably even more than earlier (but the simplicity or complexity of models is another discussion, I tend to lean towards KISS).&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(204, 0, 0);&quot;&gt;Disclaimer&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;: This posting (and all my others) represent only &lt;/span&gt;&lt;span style=&quot;font-style: italic; color: rgb(204, 0, 0);&quot;&gt;my personal &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;views.&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/7304274048201639935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/7304274048201639935'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/07/rebirth-of-confounding-and-theory-in.html' title='The Rebirth of Confounding and Theory in Science?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz8WLM4lPdKWg3uslIeG7hLFEBTr501QuN8ZjMPL7pJbhQH0yDjmPlfC3-3DJvbRz-QRVzk8Fs-xCOfsrxp9AZneBJ8L08cX5pBuD-lN1O_OVTra1H7nFaAu7vOFK42vv6PKFFg1XpNVZu/s72-c/confounding.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-3773600887078758414</id><published>2008-07-14T10:13:00.002+01:00</published><updated>2008-07-14T18:16:17.228+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="echo chamber"/><category scheme="http://www.blogger.com/atom/ns#" term="navel gazing"/><title type='text'>Annual Echo Chamber</title><content type='html'>Having blogged for a bit more than a year (April 2007), here are some rough stats and opinions of blog entries so far.

Most read entries:
&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://amundblog.blogspot.com/2008/05/pragmatic-classification-with-python.html&quot;&gt;Pragmatic Classification with Python&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://amundblog.blogspot.com/2008/02/python-is-concurrently-alive-and.html&quot;&gt;Greenlet Python is concurrently alive and kicking&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://amundblog.blogspot.com/2008/01/rpython-gclb-benchmark-recursive.html&quot;&gt;RPython GCLB Benchmark - Recursive&lt;/a&gt;  &lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://amundblog.blogspot.com/2008/01/how-to-complete-your-phd.html&quot;&gt;How to complete your PhD&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://amundblog.blogspot.com/2008/01/future-number-of-programming-languages.html&quot;&gt;Future number of programming languages - singularity or infinity?&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;In terms of self-eval (&lt;i&gt;read: navel gazing..&lt;/i&gt;) of entries, the list would look like this:
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://amundblog.blogspot.com/2008/01/increase-automation-of-test-driven.html&quot;&gt;Increase Automation of Test-Driven Development&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://amundblog.blogspot.com/2008/01/phd-subject-in-computer-science.html&quot;&gt;PhD Subject in Computer Science? &lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://amundblog.blogspot.com/2008/04/pragmatic-classification-very-basics.html&quot;&gt;Pragmatic Classification: The very basics&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://amundblog.blogspot.com/2008/06/pragmatic-classification-of-classifiers.html&quot;&gt;Pragmatic Classification of Classifiers&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://amundblog.blogspot.com/2008/01/dining-philosophers-and-quarreling-kids.html&quot;&gt;Dining Philosophers and Quarreling Kids&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;i&gt;As always this blog only expresses my personal opinions. &lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/3773600887078758414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/3773600887078758414'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/07/annual-echo-chamber.html' title='Annual Echo Chamber'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-1966941322250251416</id><published>2008-06-11T21:54:00.006+01:00</published><updated>2008-06-11T23:37:19.670+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="decremental"/><category scheme="http://www.blogger.com/atom/ns#" term="hyperplane"/><category scheme="http://www.blogger.com/atom/ns#" term="incremental"/><category scheme="http://www.blogger.com/atom/ns#" term="machine learning"/><category scheme="http://www.blogger.com/atom/ns#" term="online"/><category scheme="http://www.blogger.com/atom/ns#" term="parallel"/><category scheme="http://www.blogger.com/atom/ns#" term="stochastic"/><category scheme="http://www.blogger.com/atom/ns#" term="svm"/><title type='text'>Pragmatic Classification of Classifiers</title><content type='html'>&lt;span class=&quot;ft1&quot;&gt;recap: In my previous machine learning related postings I have written about the&lt;a href=&quot;http://amundblog.blogspot.com/2008/04/pragmatic-classification-very-basics.html&quot;&gt; basics of classification&lt;/a&gt; and given an overview of &lt;a href=&quot;http://amundblog.blogspot.com/2008/05/pragmatic-classification-with-python.html&quot;&gt;Python tools for classificatio&lt;/a&gt;n (and also &lt;a href=&quot;http://amundblog.blogspot.com/2008/04/machine-learning-theory-dream-team.html&quot;&gt;a machine learning dream team&lt;/a&gt; and &lt;a href=&quot;http://amundblog.blogspot.com/2008/01/increase-automation-of-test-driven.html&quot;&gt;how to increase automation of test-driven development&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;In this posting I will &quot;go meta&quot; and say something about classes and characteristics of classifiers.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNfRm06HkFHGAFV714OzSxfPk0H64-RU6zRDjyZV0s8UE4h0TAKYPQLfBeXW6IXlDUX80tZXitpfcocvux10W3gb3xtN6v64hryB3hCLTON9ca64zST1A0EHMiaVNqwF2xwHW7U9qTms0Z/s1600-h/selectingclassifiers.png&quot;&gt;&lt;img style=&quot;cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNfRm06HkFHGAFV714OzSxfPk0H64-RU6zRDjyZV0s8UE4h0TAKYPQLfBeXW6IXlDUX80tZXitpfcocvux10W3gb3xtN6v64hryB3hCLTON9ca64zST1A0EHMiaVNqwF2xwHW7U9qTms0Z/s400/selectingclassifiers.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5210753612907166274&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Informative vs Discriminative Classifiers&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Informative classifiers&lt;/span&gt; model the densities of classes and select the class that most likely produce the features, in the naive bayes case this modeling involves counting (&lt;a href=&quot;http://jmvidal.cse.sc.edu/talks/bayesianlearning/nbex.xml?style=White&quot;&gt;see here for an example&lt;/a&gt; with &lt;a href=&quot;http://jmvidal.cse.sc.edu/talks/decisiontrees/choosingbest.xml?style=White&quot;&gt;these data&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Discriminative classifiers&lt;/span&gt; have a different approach - they try to model class boundary and membership directly, e.g. in a simple 2-feature dimension case this could mean trying to finding the line that best separates the classes (in &gt;3 feature dimensions case it would be looking for the &lt;a href=&quot;http://en.wikipedia.org/wiki/Hyperplane&quot;&gt;hyperplane&lt;/a&gt; that best separate classes). Examples of discriminative classifiers are support vector machines (SVM) and ridge regression.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Classifier training methods&lt;/span&gt;&lt;br /&gt;Many classifiers are &lt;span style=&quot;font-style: italic;&quot;&gt;batch-based&lt;/span&gt;, that means that they need to have access to all training data at the same time (including historic data in a re-training case). &lt;span style=&quot;font-style: italic;&quot;&gt;Online&lt;/span&gt; classifiers  don&#39;t need all data for every training round, they supporting updating the classifier data incrementally. A related training method is&lt;span style=&quot;font-style: italic;&quot;&gt; decremental trainin&lt;/span&gt;g, which is about dealing with classifier problems where there is &lt;a href=&quot;http://en.wikipedia.org/wiki/Concept_drift&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;concept drift&lt;/span&gt;&lt;/a&gt; (i.e. forgetting out-of-date examples). Other training methods include s&lt;span style=&quot;font-style: italic;&quot;&gt;tochastic training &lt;/span&gt;which is about training using random samples of data.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Linear vs Non-Linear Classifiers&lt;/span&gt;&lt;br /&gt;If you have a situation where one class is inside a circle and the other class is outside the circle (and surrounding the circle), it will be impossible to linearly separate the two classes (with a discriminative classifier), fortunately there are non-linear classifiers that can solve this (typically by transforming the problem into a more computationally heavier problem using a &lt;a href=&quot;http://en.wikipedia.org/wiki/Kernel_trick&quot;&gt;kernel trick&lt;/a&gt;, but at least the new problem is possible to solve).&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Sequential vs Parallel Classifiers&lt;/span&gt;&lt;br /&gt;Sequential classifier algorithms can typically utilize one core, cpu or machine, and parallel classifier algorithms are able to utilize more cores, cpus or machines (e.g. in order to handle more data or get faster results).&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Non-orthogonal Data&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;Non-orthogonality is handled by some classifiers, this can happen when there are repeated occurrences of training data.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Dependencies between features&lt;/span&gt;&lt;br /&gt;Dealing with dependencies between features (e.g. correlations) is handled by some classifiers (this is sometimes a symptom of potential for improvement in feature representation).&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;ft1&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/1966941322250251416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/1966941322250251416'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/06/pragmatic-classification-of-classifiers.html' title='Pragmatic Classification of Classifiers'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNfRm06HkFHGAFV714OzSxfPk0H64-RU6zRDjyZV0s8UE4h0TAKYPQLfBeXW6IXlDUX80tZXitpfcocvux10W3gb3xtN6v64hryB3hCLTON9ca64zST1A0EHMiaVNqwF2xwHW7U9qTms0Z/s72-c/selectingclassifiers.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-5807844202260399392</id><published>2008-05-27T23:56:00.004+01:00</published><updated>2008-05-27T23:59:10.599+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blogging"/><category scheme="http://www.blogger.com/atom/ns#" term="cartoon"/><category scheme="http://www.blogger.com/atom/ns#" term="health"/><category scheme="http://www.blogger.com/atom/ns#" term="scrum"/><category scheme="http://www.blogger.com/atom/ns#" term="scrummaster"/><title type='text'>Blogging is good for you..</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4KI5B8wXOelYOxEiwBYS4ixjDrKXFwS7jVAZm6UBekanHbmSDfwnZXX5HzsFK9cMFWJcNbQYAtkzI9lv1zW6p9y65Toig7hOivH6qlpsqKzT4F1Cb0qbXeRQCVA91ISS4_FhlpTS_UeDF/s1600-h/bloggingishealthy.png&quot;&gt;&lt;img style=&quot;cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4KI5B8wXOelYOxEiwBYS4ixjDrKXFwS7jVAZm6UBekanHbmSDfwnZXX5HzsFK9cMFWJcNbQYAtkzI9lv1zW6p9y65Toig7hOivH6qlpsqKzT4F1Cb0qbXeRQCVA91ISS4_FhlpTS_UeDF/s400/bloggingishealthy.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5205195397559572530&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Source: &lt;a href=&quot;http://www.sciam.com/article.cfm?id=the-healthy-type&quot;&gt;Blogging -- It&#39;s Good for You&lt;/a&gt; (Scientific American)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/5807844202260399392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/5807844202260399392'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/05/blogging-is-good-for-you.html' title='Blogging is good for you..'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4KI5B8wXOelYOxEiwBYS4ixjDrKXFwS7jVAZm6UBekanHbmSDfwnZXX5HzsFK9cMFWJcNbQYAtkzI9lv1zW6p9y65Toig7hOivH6qlpsqKzT4F1Cb0qbXeRQCVA91ISS4_FhlpTS_UeDF/s72-c/bloggingishealthy.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-3104000577752358734</id><published>2008-05-26T19:54:00.003+01:00</published><updated>2008-05-26T19:57:55.358+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="agile methods"/><category scheme="http://www.blogger.com/atom/ns#" term="research"/><category scheme="http://www.blogger.com/atom/ns#" term="scrum"/><category scheme="http://www.blogger.com/atom/ns#" term="waterfall"/><title type='text'>Scrum makes you smarter</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv3vhBSQNRs7pa07gllVWPx2Pi47S-YVEzrhis8gBXIt8dQ-RpWpcVmDuyiHyk06f16NvxyW5sf0F8nNRvXJXmBHF6Vt7-S_bgdCkDHYhU4y31T_YVk5b66MoN6b4AGQdI9bcRJkASY6DE/s1600-h/scrummakesyousmarter.png&quot;&gt;&lt;img style=&quot;cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv3vhBSQNRs7pa07gllVWPx2Pi47S-YVEzrhis8gBXIt8dQ-RpWpcVmDuyiHyk06f16NvxyW5sf0F8nNRvXJXmBHF6Vt7-S_bgdCkDHYhU4y31T_YVk5b66MoN6b4AGQdI9bcRJkASY6DE/s400/scrummakesyousmarter.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5204762061129209874&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Disclaimer:&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt; cartoon presents a free interpretation of &lt;/span&gt;&lt;a href=&quot;http://jeffsutherland.com/scrum/2008/05/scrum-makes-you-smarter.html&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;this&lt;/span&gt;&lt;br /&gt;&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/3104000577752358734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/3104000577752358734'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/05/scrum-makes-you-smarter.html' title='Scrum makes you smarter'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv3vhBSQNRs7pa07gllVWPx2Pi47S-YVEzrhis8gBXIt8dQ-RpWpcVmDuyiHyk06f16NvxyW5sf0F8nNRvXJXmBHF6Vt7-S_bgdCkDHYhU4y31T_YVk5b66MoN6b4AGQdI9bcRJkASY6DE/s72-c/scrummakesyousmarter.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-1314592371714532529</id><published>2008-05-25T21:11:00.008+01:00</published><updated>2008-05-25T22:53:49.391+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="classification"/><category scheme="http://www.blogger.com/atom/ns#" term="libsvm"/><category scheme="http://www.blogger.com/atom/ns#" term="machine learning"/><category scheme="http://www.blogger.com/atom/ns#" term="monte"/><category scheme="http://www.blogger.com/atom/ns#" term="orange"/><category scheme="http://www.blogger.com/atom/ns#" term="pyml"/><category scheme="http://www.blogger.com/atom/ns#" term="svm"/><title type='text'>Pragmatic Classification with Python</title><content type='html'>In my previous posting I wrote about &lt;a href=&quot;http://amundblog.blogspot.com/2008/04/pragmatic-classification-very-basics.html&quot;&gt;classification basics&lt;/a&gt;, this posting will follow up and talk about Python tools for classification and give an example with one of the tools.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;entries&quot;&gt;    &lt;div class=&quot;entry owner&quot; id=&quot;e-b857e59d-ed05-448f-a846-527f893802b9&quot;&gt;  &lt;span style=&quot;font-weight: bold;&quot;&gt;Open Source Python Tools for Classification&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.ailab.si/orange/&quot;&gt;Orange&lt;/a&gt; -  machine learning tool which supports classification (including combining &lt;a href=&quot;http://en.wikipedia.org/wiki/Ensembles_of_Classifiers&quot;&gt;classifiers in ensembles&lt;/a&gt;), &lt;a href=&quot;http://en.wikipedia.org/wiki/Feature_extraction&quot;&gt;feature extraction&lt;/a&gt;,  basic statistical analysis, &lt;a href=&quot;http://en.wikipedia.org/wiki/Regression_analysis&quot;&gt;regression&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Association_rule_learning&quot;&gt;association rules&lt;/a&gt;. It also has &lt;a href=&quot;http://ai.fri.uni-lj.si/aleks/orng/&quot;&gt;an extension module&lt;/a&gt; which supports clustering and additional classifier algorithms. &lt;span style=&quot;font-weight: bold;&quot;&gt;Note&lt;/span&gt;: Orange is probably the Python-based machine learning tool that is most similar to the more famous tool &lt;a href=&quot;http://www.cs.waikato.ac.nz/ml/weka/&quot;&gt;Weka&lt;/a&gt; (which is for Java, or &lt;a href=&quot;http://www.jython.org/Project/index.html&quot;&gt;Jython&lt;/a&gt; for that matter). &lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://montepython.sourceforge.net/&quot;&gt;Monte&lt;/a&gt; - less comprehensive than Orange, written purely in Python (i.e. no &lt;a href=&quot;http://www.swig.org/&quot;&gt;SWIG&lt;/a&gt;ed C++). Looks interesting (has several classifiers algorithms), but the APIs seems to be in an early phase (relatively new tool in version 0.1.0)&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.csie.ntu.edu.tw/%7Ecjlin/libsvm/&quot;&gt;libsvm&lt;/a&gt; - Python API for most popular open source implementation of SVM. &lt;span style=&quot;font-weight: bold;&quot;&gt;Note&lt;/span&gt;: libsvm is also included with Orange and PyML. (I used this tools during my PhD a few years ago)&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://rpy.sourceforge.net/&quot;&gt;RPy&lt;/a&gt; - not exactly a classification tool, but it is quite useful with a statistics tool when you are doing classification (it has a nice plotting capability, not unlike matlabs), check out the &lt;a href=&quot;http://rpy.sourceforge.net/rpy_demo.html&quot;&gt;demo&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://pyml.sourceforge.net/&quot;&gt;PyML&lt;/a&gt; - also less comprehensive than Orange (specialized towards classification and regression, it supports SVM/SMO, ANN and Ridge Regression), but it has a nice API. Example of use: &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;from PyML import multi, svm, datafunc&lt;br /&gt;&lt;em&gt;# read training data, last column has the class&lt;/em&gt;&lt;br /&gt;mydataset = datafunc.SparseDataSet(&#39;iris.data&#39;, labelsColumn = -1)&lt;br /&gt;myclassifier = multi.OneAgainstRest(svm.SVM())&lt;br /&gt;print &quot;cross-validation results&quot;, myclassifier.cv(mydataset)&lt;br /&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;My recommendation is to either go with Orange or with PyML.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;    &lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/1314592371714532529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/1314592371714532529'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/05/pragmatic-classification-with-python.html' title='Pragmatic Classification with Python'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1024937100240932334.post-7461514759039109982</id><published>2008-04-22T20:26:00.010+01:00</published><updated>2008-04-22T22:46:17.994+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="classification"/><category scheme="http://www.blogger.com/atom/ns#" term="machine learning"/><title type='text'>Pragmatic Classification: The very basics</title><content type='html'>&lt;span style=&quot;font-style: italic;&quot;&gt;Classification&lt;/span&gt; is an everyday task, it is about selecting one out of several outcomes based on their &lt;span style=&quot;font-style: italic;&quot;&gt;features.&lt;/span&gt; An example could be recycling of garbage where you select the bin based on the characteristics of the garbage, e.g. paper, metal, plastic or organic.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Classification with computers&lt;/span&gt;&lt;br /&gt;For classification with computers the focus is frequently on the &lt;span style=&quot;font-style: italic;&quot;&gt;classifier&lt;/span&gt; - the function/algorithm that selects the class based on features (note: classifiers usually has to be &lt;span style=&quot;font-style: italic;&quot;&gt;trained&lt;/span&gt; to get fit for fight). Classifiers can be found in many flavors, and quite a few of them have impressive names (phrases with rough, kernel, vector, machine and reasoning aren&#39;t uncommon when naming them).&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;note: &lt;/span&gt;Garbage in leads to Garbage out - as (almost always) - same goes for classification.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;The numerical baseline&lt;/span&gt;&lt;br /&gt;Let us assume you have a data set&lt;span style=&quot;font-style: italic;&quot;&gt; &lt;/span&gt;with 1000 documents that shows to have 4 equally different categories (e.g. math, physics, chemistry and medicine). A simple classifier for a believe-to-be-similar-dataset could be the rule: &lt;span style=&quot;font-style: italic;&quot;&gt;&quot;the class is math&quot;&lt;/span&gt;, which is likely to give a classification accuracy of about 25%. (Another classifier could be to pick a random category for every document). This can be used as a numerical baseline for comparison with when bringing in heavier classification machinery, e.g if you get 19% accuracy with the heavier machinery it probably isn&#39;t very good (or your feature representation isn&#39;t very good) for &lt;span style=&quot;font-style: italic;&quot;&gt;that particular problem&lt;/span&gt;. (Note: heavy classification machinery frequently has plenty of degrees of freedom, so fine tuning them can be a challenge, same goes for feature extraction and representation).&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Combining classifiers&lt;/span&gt;&lt;br /&gt;On the other hand, if the heavy machinery classifier gave 0% accuracy you could &lt;span style=&quot;font-style: italic;&quot;&gt;combine it&lt;/span&gt; with a random classifier to only randomly select from the 3 classes the heavy machinery classifier didn&#39;t suggest.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Question 1: &lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;What is the accuracy with these combined classifiers?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Baseline for unbalanced data sets&lt;/span&gt;&lt;br /&gt;Quite frequently classification problems have to deal with unbalanced data sets, e.g. let us say you were to classify documents about soccer and &lt;a href=&quot;http://en.wikipedia.org/wiki/Casting_%28sport%29&quot;&gt;casting (fishing)&lt;/a&gt;, and your training data set contained about 99.99% soccer and 0.01% about casting, a baseline classifier for a similar dataset could be to say - &quot;the article is about soccer&quot;. This would most likely be a very strong baseline, and probably hard to beat for most heavy machinery classifiers.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Silver bullet classifier and feature extraction method?&lt;br /&gt;&lt;/span&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHFIF1zBZ1nykgUkgmUlx1BYvYw-gGmo1XSjzRPd5wbQvzNNKXdA8GRg4zDO0a4-Z8fcf3JDihbkYCTEnJBeCGU1w-jM-mWFKW0YFCvXLfxX4nTbAPbQUPdOKzNEZKFxtCaufHHBCdbHmI/s1600-h/uglyduckling.png&quot;&gt;&lt;img style=&quot;cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHFIF1zBZ1nykgUkgmUlx1BYvYw-gGmo1XSjzRPd5wbQvzNNKXdA8GRg4zDO0a4-Z8fcf3JDihbkYCTEnJBeCGU1w-jM-mWFKW0YFCvXLfxX4nTbAPbQUPdOKzNEZKFxtCaufHHBCdbHmI/s400/uglyduckling.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5192153762104275650&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Q: My friend says that classifier algorithm X and feature extraction method Y are the best for all problems, is that the case?&lt;br /&gt;A: No, tell him/her to read about the ugly duckling and no free lunch theorems which clearly says that there is no universally best classifier or feature extraction approach.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;note: &lt;/span&gt;Just some of the basics this time, something more concrete next time (I think).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/7461514759039109982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024937100240932334/posts/default/7461514759039109982'/><link rel='alternate' type='text/html' href='http://amundblog.blogspot.com/2008/04/pragmatic-classification-very-basics.html' title='Pragmatic Classification: The very basics'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12610829647945619039</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHFIF1zBZ1nykgUkgmUlx1BYvYw-gGmo1XSjzRPd5wbQvzNNKXdA8GRg4zDO0a4-Z8fcf3JDihbkYCTEnJBeCGU1w-jM-mWFKW0YFCvXLfxX4nTbAPbQUPdOKzNEZKFxtCaufHHBCdbHmI/s72-c/uglyduckling.png" height="72" width="72"/></entry></feed>