<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://united-coders.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>united-coders.com - number cruncher</title>
 <link>http://united-coders.com/taxonomy/term/109/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Number crunching with javascript - a tutorial</title>
 <link>http://united-coders.com/christian-harms/number-crunching-with-javascript-a-tutorial</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;This article will describe how to build a more complex javascript application. I chose to build a number cruncher for finding sociable numbers. There are many idle browser out there and the new Worker-thread object (available in modern browsers) offers the complete power of all cpu cores. In the first part I will describe how to inherit javascript objects with the optimization steps and discuss the usage of a profiler. The second part will improve the performance with using Web Worker in threads for greater computing power and how to handle it.&lt;/p&gt;
&lt;h1&gt;introduction&lt;/h1&gt;
&lt;p&gt;Did you heard of perfect numbers? No? A number is perfect if the number is equal to the sum all proper positive divisors. The old greek mathematics found the following examples (or try out the &lt;a href=&quot;/christian-harms/number-crunching-and-optimization-steps-with-javascript?page=0,2#demo&quot; title=&quot;Scroll down for the demo&quot;&gt;demo&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;The 6 has as positive divisors 1, 2 and 3 and the sum is 6.&lt;span class=&quot;read-more&quot;&gt;&lt;a href=&quot;/christian-harms/number-crunching-with-javascript-a-tutorial&quot;&gt;&lt;strong&gt;Read more&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;!--
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:trackback=&quot;http://madskills.com/public/xml/rss/module/trackback/&quot;&gt;
&lt;rdf:Description rdf:about=&quot;http://united-coders.com/christian-harms/number-crunching-with-javascript-a-tutorial&quot; dc:identifier=&quot;http://united-coders.com/christian-harms/number-crunching-with-javascript-a-tutorial&quot; dc:title=&quot;Number crunching with javascript - a tutorial&quot; trackback:ping=&quot;http://united-coders.com/trackback/47&quot; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
&lt;div class=&#039;sexybookmarks-default-9682&#039;&gt;&lt;/div&gt;</description>
 <comments>http://united-coders.com/christian-harms/number-crunching-with-javascript-a-tutorial#comments</comments>
 <category domain="http://united-coders.com/category/tags/javascript">javascript</category>
 <category domain="http://united-coders.com/category/tags/number-cruncher">number cruncher</category>
 <category domain="http://united-coders.com/category/tags/tutorial">tutorial</category>
 <category domain="http://united-coders.com/category/tags/worker">worker</category>
 <pubDate>Fri, 05 Feb 2010 00:01:39 +0000</pubDate>
 <dc:creator>Christian Harms</dc:creator>
 <guid isPermaLink="false">47 at http://united-coders.com</guid>
</item>
</channel>
</rss>


