<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The significance of JRuby and GlassFish</title>
	<atom:link href="http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/</link>
	<description>My opinion on Teaching, Programming, Technology and Web 2.0 in Mauritius</description>
	<lastBuildDate>Sun, 14 Mar 2010 03:05:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeshan</title>
		<link>http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-165937</link>
		<dc:creator>Jeshan</dc:creator>
		<pubDate>Fri, 05 Dec 2008 09:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-165937</guid>
		<description>@Avinash:
I know that the point of this post is about JRuby/Glassfish, but i could not believe that we need 46 lines to do just that!

What do you think of this?

import java.io.Console;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        Console console = System.console();
        while (true) {
            String line = console.readLine().trim();
            if (line == null)
                break;
            char[] array;
            Arrays.sort(array = line.toCharArray());
            System.out.println(new String(array).trim() + &quot; &quot; + line);
        }
    }
}

It&#039;s not that verbose after all...
Please tell us about the test results.

Note: requires jdk 1.6</description>
		<content:encoded><![CDATA[<p>@Avinash:<br />
I know that the point of this post is about JRuby/Glassfish, but i could not believe that we need 46 lines to do just that!</p>
<p>What do you think of this?</p>
<p>import java.io.Console;<br />
import java.util.Arrays;</p>
<p>public class Main {<br />
    public static void main(String[] args) {<br />
        Console console = System.console();<br />
        while (true) {<br />
            String line = console.readLine().trim();<br />
            if (line == null)<br />
                break;<br />
            char[] array;<br />
            Arrays.sort(array = line.toCharArray());<br />
            System.out.println(new String(array).trim() + &#8221; &#8221; + line);<br />
        }<br />
    }<br />
}</p>
<p>It&#8217;s not that verbose after all&#8230;<br />
Please tell us about the test results.</p>
<p>Note: requires jdk 1.6</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kailash</title>
		<link>http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-51278</link>
		<dc:creator>Kailash</dc:creator>
		<pubDate>Sat, 06 Oct 2007 20:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-51278</guid>
		<description>Am mistaken or is Avinash&#039;s blog more active than LUGM&#039;s mailing list?</description>
		<content:encoded><![CDATA[<p>Am mistaken or is Avinash&#8217;s blog more active than LUGM&#8217;s mailing list?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddy Young</title>
		<link>http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-48398</link>
		<dc:creator>Eddy Young</dc:creator>
		<pubDate>Fri, 21 Sep 2007 21:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-48398</guid>
		<description>Yash,

My point is, many enterprises are not convinced that there is a clear roadmap for RoR at this point, so they run high risks by basing their products on it. 

As for IBM and co getting involved with RoR, this is a common strategy. The aim is to keep the project alive and align its roadmap to their own. IBM did the same with Linux, and Microsoft is doing it with Novell/Mono.

For companies that do not have the resources to ensure the survive-ability of a technology (either by contributing to it themselves or pay others to), there is just too much risk.

Honestly, if you were not sure RoR would still be around in X years, would you build a product on it?

-- Eddy</description>
		<content:encoded><![CDATA[<p>Yash,</p>
<p>My point is, many enterprises are not convinced that there is a clear roadmap for RoR at this point, so they run high risks by basing their products on it. </p>
<p>As for IBM and co getting involved with RoR, this is a common strategy. The aim is to keep the project alive and align its roadmap to their own. IBM did the same with Linux, and Microsoft is doing it with Novell/Mono.</p>
<p>For companies that do not have the resources to ensure the survive-ability of a technology (either by contributing to it themselves or pay others to), there is just too much risk.</p>
<p>Honestly, if you were not sure RoR would still be around in X years, would you build a product on it?</p>
<p>&#8211; Eddy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yash</title>
		<link>http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-48391</link>
		<dc:creator>Yash</dc:creator>
		<pubDate>Fri, 21 Sep 2007 20:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-48391</guid>
		<description>By the way:
@ Selven and @Eddy - the &quot;which make you unproductive&quot; in my sentence referred to languages.

But you could also make the point for some closed operating systems, especially if you&#039;ve seen the complaints of people who code in Javascript.</description>
		<content:encoded><![CDATA[<p>By the way:<br />
@ Selven and @Eddy &#8211; the &#8220;which make you unproductive&#8221; in my sentence referred to languages.</p>
<p>But you could also make the point for some closed operating systems, especially if you&#8217;ve seen the complaints of people who code in Javascript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yash</title>
		<link>http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-48384</link>
		<dc:creator>Yash</dc:creator>
		<pubDate>Fri, 21 Sep 2007 20:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-48384</guid>
		<description>@Eddy: &quot;For an enterprise, producing code in quick turn-around is not as important as having a solid framework based on a proven platform with a clear roadmap that spans the enterpriseâ€™s own.&quot;

No, the best enterprises always have R&amp;D and pilot projects and teams working on how to improve their business processes.

This is why IBM, Accenture, SUN, Apple and others are already involved with RoR.

The nature of business and IT is change and adaptability.

And since IT is integrated with Business Processes nowadays, the enterprises with the edge in IT are the more competitive.

That entails listening to those who are visionaries.</description>
		<content:encoded><![CDATA[<p>@Eddy: &#8220;For an enterprise, producing code in quick turn-around is not as important as having a solid framework based on a proven platform with a clear roadmap that spans the enterpriseâ€™s own.&#8221;</p>
<p>No, the best enterprises always have R&amp;D and pilot projects and teams working on how to improve their business processes.</p>
<p>This is why IBM, Accenture, SUN, Apple and others are already involved with RoR.</p>
<p>The nature of business and IT is change and adaptability.</p>
<p>And since IT is integrated with Business Processes nowadays, the enterprises with the edge in IT are the more competitive.</p>
<p>That entails listening to those who are visionaries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: avinash</title>
		<link>http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-47755</link>
		<dc:creator>avinash</dc:creator>
		<pubDate>Tue, 18 Sep 2007 09:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-47755</guid>
		<description>To afsina &amp; whoa:

If you read the post carefully, you&#039;ll realize that it was not supposed to be a benchmark (the title is &#039;the significance of JRuby and Glassfish&#039; and not &#039;Java is bad&#039;).

Saying that the code is &#039;horrible&#039; is a little excessive. It is not quick but it works. And it is clear enough. If you think about it, the compiler should have warned me that there is a better way to do what I was trying to do. Or better yet, use the best construct automatically :-)

On the other hand, calling me an idiot is idiotic.

Thanks to Eddy nevertheless for introducing me (us?) to the quick toCharArray() method.

To Ahmetaa:

Thanks for trying out both versions but I guess you are missing the point of the post. Maybe I was not clear enough. I repeat, the title is &#039;The significance of JRuby and Glassfish&#039;...

To all:

I like Java. It&#039;s a nice programming language. But some people might not like it because liking something is subjective. I would advise &lt;em&gt;those people&lt;/em&gt; to explore alternative programming languages and frameworks running on top of the JVM (like Bistro, Groovy, Jatha, Jython, JRuby, Nice, Rhino, Scala, SISC, etc).

In the real world, different people express themselves differently and like different things :-)</description>
		<content:encoded><![CDATA[<p>To afsina &#038; whoa:</p>
<p>If you read the post carefully, you&#8217;ll realize that it was not supposed to be a benchmark (the title is &#8216;the significance of JRuby and Glassfish&#8217; and not &#8216;Java is bad&#8217;).</p>
<p>Saying that the code is &#8216;horrible&#8217; is a little excessive. It is not quick but it works. And it is clear enough. If you think about it, the compiler should have warned me that there is a better way to do what I was trying to do. Or better yet, use the best construct automatically <img src='http://www.noulakaz.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>On the other hand, calling me an idiot is idiotic.</p>
<p>Thanks to Eddy nevertheless for introducing me (us?) to the quick toCharArray() method.</p>
<p>To Ahmetaa:</p>
<p>Thanks for trying out both versions but I guess you are missing the point of the post. Maybe I was not clear enough. I repeat, the title is &#8216;The significance of JRuby and Glassfish&#8217;&#8230;</p>
<p>To all:</p>
<p>I like Java. It&#8217;s a nice programming language. But some people might not like it because liking something is subjective. I would advise <em>those people</em> to explore alternative programming languages and frameworks running on top of the JVM (like Bistro, Groovy, Jatha, Jython, JRuby, Nice, Rhino, Scala, SISC, etc).</p>
<p>In the real world, different people express themselves differently and like different things <img src='http://www.noulakaz.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahmetaa</title>
		<link>http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-47621</link>
		<dc:creator>ahmetaa</dc:creator>
		<pubDate>Mon, 17 Sep 2007 21:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-47621</guid>
		<description>i agree that given java code is very very poor. i actually tried the code you have written with the version written by the commenter. Here is the facts:
- the version you wrote (or quoted) is around 10 times slower then the short version.
- you gave wrong line counts. the original line count is (without spaces, including unnecessary closing brackets and imports.) 33, not 46. the shorter version, again shorter version is 15 lines (including imports, closing brackets etc.)
- In the code, most time is lost during the printing. in fact, if you do not write the print out, algorithms are around 10 times faster. Which concludes, possibly the shorter version, without printing would be 30-40 times faster then the ruby version.. try it if you want. 

it is obvious that java is not proper for some script needs  . but it is extremely fast comparing with current scripting languages.  if you modularize your code, this line counts would also stop making any sense.  please get your facts right next time. i will make a blog entry about this too.</description>
		<content:encoded><![CDATA[<p>i agree that given java code is very very poor. i actually tried the code you have written with the version written by the commenter. Here is the facts:<br />
- the version you wrote (or quoted) is around 10 times slower then the short version.<br />
- you gave wrong line counts. the original line count is (without spaces, including unnecessary closing brackets and imports.) 33, not 46. the shorter version, again shorter version is 15 lines (including imports, closing brackets etc.)<br />
- In the code, most time is lost during the printing. in fact, if you do not write the print out, algorithms are around 10 times faster. Which concludes, possibly the shorter version, without printing would be 30-40 times faster then the ruby version.. try it if you want. </p>
<p>it is obvious that java is not proper for some script needs  . but it is extremely fast comparing with current scripting languages.  if you modularize your code, this line counts would also stop making any sense.  please get your facts right next time. i will make a blog entry about this too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: whoa</title>
		<link>http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-47616</link>
		<dc:creator>whoa</dc:creator>
		<pubDate>Mon, 17 Sep 2007 20:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-47616</guid>
		<description>this was the lamest benchmark i have ever seen.
first, the java code is written by an idiot.
Code can easily be like this:

    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String word;
        while ((word = in.readLine()) != null) {
            char[] chars = word.toCharArray();
            Arrays.sort(chars);
            System.out.println(new String(chars));
        }
    }

Second, everybody knows ruby sucks ass in terms of performance. check the language shhotout. most algorithms it is 100 to 500 times slower then java. what a BS.</description>
		<content:encoded><![CDATA[<p>this was the lamest benchmark i have ever seen.<br />
first, the java code is written by an idiot.<br />
Code can easily be like this:</p>
<p>    public static void main(String[] args) throws IOException {<br />
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));<br />
        String word;<br />
        while ((word = in.readLine()) != null) {<br />
            char[] chars = word.toCharArray();<br />
            Arrays.sort(chars);<br />
            System.out.println(new String(chars));<br />
        }<br />
    }</p>
<p>Second, everybody knows ruby sucks ass in terms of performance. check the language shhotout. most algorithms it is 100 to 500 times slower then java. what a BS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: afsina</title>
		<link>http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-47614</link>
		<dc:creator>afsina</dc:creator>
		<pubDate>Mon, 17 Sep 2007 20:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-47614</guid>
		<description>God.. when did you learn Java. this was a horrible code example.</description>
		<content:encoded><![CDATA[<p>God.. when did you learn Java. this was a horrible code example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddy Young</title>
		<link>http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-47530</link>
		<dc:creator>Eddy Young</dc:creator>
		<pubDate>Mon, 17 Sep 2007 09:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/09/15/the-significance-of-jruby-and-glassfish/#comment-47530</guid>
		<description>No, J2EE has a roadmap. RoR does not yet have a convincing roadmap.

But I agree support for RoR on J2EE is a good start.</description>
		<content:encoded><![CDATA[<p>No, J2EE has a roadmap. RoR does not yet have a convincing roadmap.</p>
<p>But I agree support for RoR on J2EE is a good start.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
