<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Pavel Fatin</title>
	<atom:link href="http://pavelfatin.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://pavelfatin.com</link>
	<description>Blog about human and technology</description>
	<lastBuildDate>Thu, 02 Jun 2011 14:18:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Scala for Project Euler by Pavel</title>
		<link>http://pavelfatin.com/scala-for-project-euler/comment-page-1/#comment-6273</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Thu, 02 Jun 2011 14:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://pavelfatin.com/?p=177#comment-6273</guid>
		<description>Rhys, I usually run such code directly, either from command line (&quot;scala problem1.scala&quot;) or from IntelliJ IDEA, which supports running Scala scripts.

Additionally, I used a simple application to measure code execution time (to exclude JVM and Scala startup time).</description>
		<content:encoded><![CDATA[<p>Rhys, I usually run such code directly, either from command line (&#8220;scala problem1.scala&#8221;) or from IntelliJ IDEA, which supports running Scala scripts.</p>
<p>Additionally, I used a simple application to measure code execution time (to exclude JVM and Scala startup time).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scala for Project Euler by Rhys</title>
		<link>http://pavelfatin.com/scala-for-project-euler/comment-page-1/#comment-6271</link>
		<dc:creator>Rhys</dc:creator>
		<pubDate>Wed, 01 Jun 2011 21:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://pavelfatin.com/?p=177#comment-6271</guid>
		<description>Hi, thanks for posting your solutions. They are very useful for comparing against my own and learning new techniques.

I have a mundane question: how do you run these? In the REPL, in an IDE? Do you package them in individual objects that extend App, or do you have a separate object that calls them and displays the result?</description>
		<content:encoded><![CDATA[<p>Hi, thanks for posting your solutions. They are very useful for comparing against my own and learning new techniques.</p>
<p>I have a mundane question: how do you run these? In the REPL, in an IDE? Do you package them in individual objects that extend App, or do you have a separate object that calls them and displays the result?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sleeptracker Pro Review by Pavel</title>
		<link>http://pavelfatin.com/sleeptracker-pro-review/comment-page-1/#comment-5932</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Sun, 20 Mar 2011 15:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://pavelfatin.com/?p=39#comment-5932</guid>
		<description>So, I&#039;ve &lt;a title=&quot;SleepArchiver is open sourced&quot; href=&quot;http://pavelfatin.com/sleeparchiver-is-open-sourced/&quot; rel=&quot;nofollow&quot;&gt;open sourced&lt;/a&gt; SleepArchiver.</description>
		<content:encoded><![CDATA[<p>So, I&#8217;ve <a title="SleepArchiver is open sourced" href="http://pavelfatin.com/sleeparchiver-is-open-sourced/" rel="nofollow">open sourced</a> SleepArchiver.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scala for Project Euler by Mark</title>
		<link>http://pavelfatin.com/scala-for-project-euler/comment-page-1/#comment-5886</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 16 Mar 2011 15:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://pavelfatin.com/?p=177#comment-5886</guid>
		<description>Of course.  I have a memory like a sieve.  I was bitten by this a couple of years ago.

Thanks.</description>
		<content:encoded><![CDATA[<p>Of course.  I have a memory like a sieve.  I was bitten by this a couple of years ago.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scala for Project Euler by Pavel</title>
		<link>http://pavelfatin.com/scala-for-project-euler/comment-page-1/#comment-5871</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Tue, 15 Mar 2011 11:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://pavelfatin.com/?p=177#comment-5871</guid>
		<description>Mark, lazy modifiers are needed to prevent &quot;forward reference extends over definition of value&quot; compilation error when such code is put into a method (like &quot;main&quot;).</description>
		<content:encoded><![CDATA[<p>Mark, lazy modifiers are needed to prevent &#8220;forward reference extends over definition of value&#8221; compilation error when such code is put into a method (like &#8220;main&#8221;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scala for Project Euler by Mark</title>
		<link>http://pavelfatin.com/scala-for-project-euler/comment-page-1/#comment-5862</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 14 Mar 2011 15:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://pavelfatin.com/?p=177#comment-5862</guid>
		<description>Some interesting code, but I was wondering why you are using lazy vals?  The examples run the same without the vals being lazy...</description>
		<content:encoded><![CDATA[<p>Some interesting code, but I was wondering why you are using lazy vals?  The examples run the same without the vals being lazy&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scala for Project Euler by ndesmoul</title>
		<link>http://pavelfatin.com/scala-for-project-euler/comment-page-1/#comment-5450</link>
		<dc:creator>ndesmoul</dc:creator>
		<pubDate>Mon, 03 Jan 2011 09:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://pavelfatin.com/?p=177#comment-5450</guid>
		<description>To complement my previous message, an interesting project is ScalaCLPlugin:
https://code.google.com/p/scalacl/wiki/ScalaCLPlugin

&quot;The ScalaCL Compiler Plugin optimizes simple generalistic Scala loop-like calls by transforming them into equivalent while loops, which are much faster.&quot;

So even with pure functionnal programming, you could potentially obtain good performances.
It could be interesting to compare the performances with and without the use of this compiler plugin.</description>
		<content:encoded><![CDATA[<p>To complement my previous message, an interesting project is ScalaCLPlugin:<br />
<a href="https://code.google.com/p/scalacl/wiki/ScalaCLPlugin" rel="nofollow">https://code.google.com/p/scalacl/wiki/ScalaCLPlugin</a></p>
<p>&#8220;The ScalaCL Compiler Plugin optimizes simple generalistic Scala loop-like calls by transforming them into equivalent while loops, which are much faster.&#8221;</p>
<p>So even with pure functionnal programming, you could potentially obtain good performances.<br />
It could be interesting to compare the performances with and without the use of this compiler plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scala for Project Euler by ndesmoul</title>
		<link>http://pavelfatin.com/scala-for-project-euler/comment-page-1/#comment-5376</link>
		<dc:creator>ndesmoul</dc:creator>
		<pubDate>Thu, 16 Dec 2010 12:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://pavelfatin.com/?p=177#comment-5376</guid>
		<description>Scala is an hybrid imperative/functional language, so even if the use of vals is encouraged, &quot;No vars&quot; is not an absolute rule. 
Quoting &quot;Programming in Scala&quot;, you have to prefer using val as much as possible unless &quot;you have a specific need and justification for them&quot;. Well in this case it is just 2 to 3 times faster (a potentially valid justification to me), and the whole method still has no side effects.
Just to say that the pure functionnal style programming may be the most elegant, but not always the most efficient. When you deal with time critical code, it may be important to have this in mind.</description>
		<content:encoded><![CDATA[<p>Scala is an hybrid imperative/functional language, so even if the use of vals is encouraged, &#8220;No vars&#8221; is not an absolute rule.<br />
Quoting &#8220;Programming in Scala&#8221;, you have to prefer using val as much as possible unless &#8220;you have a specific need and justification for them&#8221;. Well in this case it is just 2 to 3 times faster (a potentially valid justification to me), and the whole method still has no side effects.<br />
Just to say that the pure functionnal style programming may be the most elegant, but not always the most efficient. When you deal with time critical code, it may be important to have this in mind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scala for Project Euler by Pavel</title>
		<link>http://pavelfatin.com/scala-for-project-euler/comment-page-1/#comment-5371</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Wed, 15 Dec 2010 19:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://pavelfatin.com/?p=177#comment-5371</guid>
		<description>&gt; for problem 1 the following code gives the same result and is clearly faster...

&quot;No vars&quot; is the first rule of idiomatic Scala :) 

Scala encourages &quot;functional style&quot; of programming, with no mutable states and no side-effects. I recommend you to check &quot;Next steps in Scala / Learn to recognize the functional style&quot; in &quot;Programming in Scala&quot; book.</description>
		<content:encoded><![CDATA[<p>&gt; for problem 1 the following code gives the same result and is clearly faster&#8230;</p>
<p>&#8220;No vars&#8221; is the first rule of idiomatic Scala <img src='http://pavelfatin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>Scala encourages &#8220;functional style&#8221; of programming, with no mutable states and no side-effects. I recommend you to check &#8220;Next steps in Scala / Learn to recognize the functional style&#8221; in &#8220;Programming in Scala&#8221; book.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scala for Project Euler by Pavel</title>
		<link>http://pavelfatin.com/scala-for-project-euler/comment-page-1/#comment-5370</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Wed, 15 Dec 2010 19:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://pavelfatin.com/?p=177#comment-5370</guid>
		<description>&gt; I also cooked up an alternative solution for problem 5 and figured you might like it

Nice! The code is still concise and &quot;functional&quot; but it runs much faster than mine.</description>
		<content:encoded><![CDATA[<p>&gt; I also cooked up an alternative solution for problem 5 and figured you might like it</p>
<p>Nice! The code is still concise and &#8220;functional&#8221; but it runs much faster than mine.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

