<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>hamsBlog &#187; Java</title>
	<atom:link href="http://blog.hamsworld.net/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hamsworld.net</link>
	<description>by Jure Ham</description>
	<lastBuildDate>Sat, 24 Apr 2010 23:53:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The Big Bang Theory Simple Simulation</title>
		<link>http://blog.hamsworld.net/2010/02/12/the-big-bang-theory-simple-simulation/</link>
		<comments>http://blog.hamsworld.net/2010/02/12/the-big-bang-theory-simple-simulation/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 01:38:25 +0000</pubDate>
		<dc:creator>hamax</dc:creator>
				<category><![CDATA[digital world]]></category>
		<category><![CDATA[science world]]></category>
		<category><![CDATA[Big Bang]]></category>
		<category><![CDATA[Gravitation]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[Universe]]></category>

		<guid isPermaLink="false">http://blog.hamsworld.net/?p=279</guid>
		<description><![CDATA[If you want to learn anything about the big bang theory, talk to the scientist. But if you want to have some fun, you can try my simple program.
Here&#8217;s how it works: It starts starts the &#8220;explosion&#8221; and than engages gravity(which is just a theory btw).
In each step the program calculates gravitational acceleration for every [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to learn anything about the <a class="zem_slink" title="Big Bang" rel="wikipedia" href="http://en.wikipedia.org/wiki/Big_Bang">big bang theory</a>, talk to the scientist. But if you want to have some fun, you can try my simple program.</p>
<p>Here&#8217;s how it works: It starts starts the &#8220;explosion&#8221; and than engages <a class="zem_slink" title="Gravitation" rel="wikipedia" href="http://en.wikipedia.org/wiki/Gravitation">gravity</a>(which is just a theory btw).<br />
In each step the program calculates <a class="zem_slink" title="Gravitational acceleration" rel="wikipedia" href="http://en.wikipedia.org/wiki/Gravitational_acceleration">gravitational acceleration</a> for every object in the &#8220;universe&#8221; so don&#8217;t be surprised if you computer is having a hard time dealing with it(suggestions for optimization are much appreciated).</p>
<p><a href="http://blog.hamsworld.net/wp-content/uploads/2010/02/Screenshot-Big-Bang-0.1a.png"><img class="size-medium wp-image-280 alignnone" title="Big Bang 0.1a" src="http://blog.hamsworld.net/wp-content/uploads/2010/02/Screenshot-Big-Bang-0.1a-300x300.png" alt="" width="300" height="300" /></a></p>
<p>For running the program you&#8217;ll need <a class="zem_slink" title="Java (programming language)" rel="homepage" href="http://java.sun.com">java</a> 1.6 installed on your computer. If simple double click won&#8217;t work, you can try run it with the command &#8220;java -jar filename.jar&#8221; from the console(if it still wont work, you can try building it from the source or post a comment).<br />
If you want to adjust the settings use number keys or arrow keys for moving around.</p>
<p><strong>Download new optimized version: <a href="http://files.pujs.net/hamax/big_bang_2.jar">runnable file 0.1b</a> or <a href="http://files.pujs.net/hamax/Universe02.zip">source code 0.1b</a></strong><a href="http://files.pujs.net/hamax/Universe02.zip"></a></p>
<p>(Older version: <a href="http://files.pujs.net/hamax/big_bang_1.jar" target="_self">runnable file 0.1a</a> or <a href="http://files.pujs.net/hamax/Universe01.zip">source 0.1a</a>.)</p>
<p><em>Are you ready for some <a href="http://en.wikipedia.org/wiki/Fine-tuning">fine-tuning</a>? <img src='http://blog.hamsworld.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </em></p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/58760973-12b4-47cc-9d29-2c21d16d43a5/"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=58760973-12b4-47cc-9d29-2c21d16d43a5" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>share</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://blog.hamsworld.net/2010/02/12/the-big-bang-theory-simple-simulation/&amp;title=The+Big+Bang+Theory+Simple+Simulation" title="Add 'The Big Bang Theory Simple Simulation' to digg"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'The Big Bang Theory Simple Simulation' to digg" alt="Add 'The Big Bang Theory Simple Simulation' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://blog.hamsworld.net/2010/02/12/the-big-bang-theory-simple-simulation/&amp;title=The+Big+Bang+Theory+Simple+Simulation" title="Add 'The Big Bang Theory Simple Simulation' to reddit"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'The Big Bang Theory Simple Simulation' to reddit" alt="Add 'The Big Bang Theory Simple Simulation' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://blog.hamsworld.net/2010/02/12/the-big-bang-theory-simple-simulation/&amp;title=The+Big+Bang+Theory+Simple+Simulation" title="Add 'The Big Bang Theory Simple Simulation' to Google Bookmarks"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/google.png" title="Add 'The Big Bang Theory Simple Simulation' to Google Bookmarks" alt="Add 'The Big Bang Theory Simple Simulation' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="https://favorites.live.com/quickadd.aspx?url=http://blog.hamsworld.net/2010/02/12/the-big-bang-theory-simple-simulation/&amp;title=The+Big+Bang+Theory+Simple+Simulation" title="Add 'The Big Bang Theory Simple Simulation' to Live-MSN"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/live.png" title="Add 'The Big Bang Theory Simple Simulation' to Live-MSN" alt="Add 'The Big Bang Theory Simple Simulation' to Live-MSN" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/share.php?u=http://blog.hamsworld.net/2010/02/12/the-big-bang-theory-simple-simulation/&amp;t=The+Big+Bang+Theory+Simple+Simulation" title="Add 'The Big Bang Theory Simple Simulation' to FaceBook"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Add 'The Big Bang Theory Simple Simulation' to FaceBook" alt="Add 'The Big Bang Theory Simple Simulation' to FaceBook" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.myspace.com/Modules/PostTo/Pages/?t=The+Big+Bang+Theory+Simple+Simulation&amp;c=http://blog.hamsworld.net/2010/02/12/the-big-bang-theory-simple-simulation/" title="Add 'The Big Bang Theory Simple Simulation' to MySpace"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/myspace.png" title="Add 'The Big Bang Theory Simple Simulation' to MySpace" alt="Add 'The Big Bang Theory Simple Simulation' to MySpace" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home?status=http://blog.hamsworld.net/2010/02/12/the-big-bang-theory-simple-simulation/" title="Add 'The Big Bang Theory Simple Simulation' to Twitter"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/twitter.png" title="Add 'The Big Bang Theory Simple Simulation' to Twitter" alt="Add 'The Big Bang Theory Simple Simulation' to Twitter" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://friendfeed.com/share/bookmarklet/frame#title={titleff}&amp;url=http://blog.hamsworld.net/2010/02/12/the-big-bang-theory-simple-simulation/" title="Add 'The Big Bang Theory Simple Simulation' to FriendFeed"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/friendfeed.png" title="Add 'The Big Bang Theory Simple Simulation' to FriendFeed" alt="Add 'The Big Bang Theory Simple Simulation' to FriendFeed" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://blog.hamsworld.net/2010/02/12/the-big-bang-theory-simple-simulation/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>The Fastest and the Slowest Programming Language</title>
		<link>http://blog.hamsworld.net/2009/12/04/the-fastest-and-the-slowest-programming-language/</link>
		<comments>http://blog.hamsworld.net/2009/12/04/the-fastest-and-the-slowest-programming-language/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 04:31:17 +0000</pubDate>
		<dc:creator>hamax</dc:creator>
				<category><![CDATA[digital world]]></category>
		<category><![CDATA[science world]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[go]]></category>
		<category><![CDATA[haskell]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming language]]></category>
		<category><![CDATA[prolog]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[scala]]></category>

		<guid isPermaLink="false">http://blog.hamsworld.net/?p=258</guid>
		<description><![CDATA[What can you do when you are to tired to do anything useful but the level of caffeine in your blood is to high for sleeping?
Watching a TV could be a good choice, but who could resist writing a simple Fibonacci recursion in every programming language that you could think of and measuring the calculation [...]]]></description>
			<content:encoded><![CDATA[<p>What can you do when you are to tired to do anything useful but the level of caffeine in your blood is to high for sleeping?</p>
<p>Watching a TV could be a good choice, but who could resist writing a simple <a class="zem_slink" title="Fibonacci" rel="wikipedia" href="http://en.wikipedia.org/wiki/Fibonacci">Fibonacci</a> recursion in every <a class="zem_slink" title="Programming language" rel="wikipedia" href="http://en.wikipedia.org/wiki/Programming_language">programming language</a> that you could think of and measuring the calculation time? I couldn&#8217;t.</p>
<p>So here are the results of my very scientific study for Fibonacci 33</p>
<ol>
<li><a href="http://blog.hamsworld.net/wp-content/uploads/PL/c.txt" target="_blank"><strong>c</strong></a><br />
gcc4.4.1            0.153s</li>
<li><strong><a href="http://blog.hamsworld.net/wp-content/uploads/PL/go.txt" target="_blank">go</a></strong><br />
8g                       0.189s</li>
<li><strong><a href="http://blog.hamsworld.net/wp-content/uploads/PL/java.txt">java</a></strong><br />
1.6.0_15           0.267s</li>
<li><strong><a href="http://blog.hamsworld.net/wp-content/uploads/PL/scala.txt" target="_blank">scala</a></strong><br />
2.7.5                  0.324s</li>
<li>javascript<br />
node.js V8        0.346s</li>
<li><a href="http://blog.hamsworld.net/wp-content/uploads/PL/haskell.txt"><strong>haskell</strong></a><br />
ghc6.10.4         1.675s</li>
<li><strong><a href="http://blog.hamsworld.net/wp-content/uploads/PL/lisp.txt">lisp</a></strong><br />
clisp2.44.1       1.888s</li>
<li><strong><a href="http://blog.hamsworld.net/wp-content/uploads/PL/ruby.txt" target="_blank">ruby<br />
</a></strong>1.8:                     22.614s<br />
1.91:                   2.757s</li>
<li><a href="http://blog.hamsworld.net/wp-content/uploads/PL/python.txt" target="_blank"><strong>python</strong></a><br />
2.6.4:                 4.401s<br />
3.1.1:                  5.545s<br />
cxfreeze4.0.1   5.704s</li>
<li><strong><a href="http://blog.hamsworld.net/wp-content/uploads/PL/php.txt" target="_blank">php</a></strong><br />
5.2.10                10.341s</li>
<li><strong><a href="http://blog.hamsworld.net/wp-content/uploads/PL/prolog.txt">prolog</a></strong><br />
sicstus4.0.2    &gt;10m (didn&#8217;t have patience to wait)<br />
swi5.6.64        Out of local stack</li>
</ol>
<p>I have some more ideas, but caffeine level is dropping fast.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/5727bdf2-df6e-4112-a421-8cad179d895b/"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=5727bdf2-df6e-4112-a421-8cad179d895b" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>share</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://blog.hamsworld.net/2009/12/04/the-fastest-and-the-slowest-programming-language/&amp;title=The+Fastest+and+the+Slowest+Programming+Language" title="Add 'The Fastest and the Slowest Programming Language' to digg"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'The Fastest and the Slowest Programming Language' to digg" alt="Add 'The Fastest and the Slowest Programming Language' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://blog.hamsworld.net/2009/12/04/the-fastest-and-the-slowest-programming-language/&amp;title=The+Fastest+and+the+Slowest+Programming+Language" title="Add 'The Fastest and the Slowest Programming Language' to reddit"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'The Fastest and the Slowest Programming Language' to reddit" alt="Add 'The Fastest and the Slowest Programming Language' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://blog.hamsworld.net/2009/12/04/the-fastest-and-the-slowest-programming-language/&amp;title=The+Fastest+and+the+Slowest+Programming+Language" title="Add 'The Fastest and the Slowest Programming Language' to Google Bookmarks"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/google.png" title="Add 'The Fastest and the Slowest Programming Language' to Google Bookmarks" alt="Add 'The Fastest and the Slowest Programming Language' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="https://favorites.live.com/quickadd.aspx?url=http://blog.hamsworld.net/2009/12/04/the-fastest-and-the-slowest-programming-language/&amp;title=The+Fastest+and+the+Slowest+Programming+Language" title="Add 'The Fastest and the Slowest Programming Language' to Live-MSN"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/live.png" title="Add 'The Fastest and the Slowest Programming Language' to Live-MSN" alt="Add 'The Fastest and the Slowest Programming Language' to Live-MSN" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/share.php?u=http://blog.hamsworld.net/2009/12/04/the-fastest-and-the-slowest-programming-language/&amp;t=The+Fastest+and+the+Slowest+Programming+Language" title="Add 'The Fastest and the Slowest Programming Language' to FaceBook"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Add 'The Fastest and the Slowest Programming Language' to FaceBook" alt="Add 'The Fastest and the Slowest Programming Language' to FaceBook" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.myspace.com/Modules/PostTo/Pages/?t=The+Fastest+and+the+Slowest+Programming+Language&amp;c=http://blog.hamsworld.net/2009/12/04/the-fastest-and-the-slowest-programming-language/" title="Add 'The Fastest and the Slowest Programming Language' to MySpace"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/myspace.png" title="Add 'The Fastest and the Slowest Programming Language' to MySpace" alt="Add 'The Fastest and the Slowest Programming Language' to MySpace" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home?status=http://blog.hamsworld.net/2009/12/04/the-fastest-and-the-slowest-programming-language/" title="Add 'The Fastest and the Slowest Programming Language' to Twitter"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/twitter.png" title="Add 'The Fastest and the Slowest Programming Language' to Twitter" alt="Add 'The Fastest and the Slowest Programming Language' to Twitter" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://friendfeed.com/share/bookmarklet/frame#title={titleff}&amp;url=http://blog.hamsworld.net/2009/12/04/the-fastest-and-the-slowest-programming-language/" title="Add 'The Fastest and the Slowest Programming Language' to FriendFeed"><img src="http://blog.hamsworld.net/wp-content/plugins/social-bookmarking-reloaded/friendfeed.png" title="Add 'The Fastest and the Slowest Programming Language' to FriendFeed" alt="Add 'The Fastest and the Slowest Programming Language' to FriendFeed" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://blog.hamsworld.net/2009/12/04/the-fastest-and-the-slowest-programming-language/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
