<?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: Integrating Scala into JRuby</title>
	<atom:link href="http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby</link>
	<description>(permanently in beta)</description>
	<lastBuildDate>Sun, 29 Aug 2010 20:01:44 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mario Camou</title>
		<link>http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby/comment-page-1#comment-4829</link>
		<dc:creator>Mario Camou</dc:creator>
		<pubDate>Fri, 17 Apr 2009 23:01:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby#comment-4829</guid>
		<description>This and http://www.codecommit.com/blog/ruby/jruby-interop-dsl-in-scala are going to be EXTREMELY useful in a project we&#039;re currently working on. Thank you very much! BTW, the JRUBY-2999 bug is fixed in JRuby 1.2 so you might want to update the article.</description>
		<content:encoded><![CDATA[<p>This and <a href="http://www.codecommit.com/blog/ruby/jruby-interop-dsl-in-scala" rel="nofollow">http://www.codecommit.com/blog/ruby/jruby-interop-dsl-in-scala</a> are going to be EXTREMELY useful in a project we&#8217;re currently working on. Thank you very much! BTW, the JRUBY-2999 bug is fixed in JRuby 1.2 so you might want to update the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustav Paul</title>
		<link>http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby/comment-page-1#comment-4320</link>
		<dc:creator>Gustav Paul</dc:creator>
		<pubDate>Tue, 18 Nov 2008 09:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby#comment-4320</guid>
		<description>thanks a lot man! just...awesome</description>
		<content:encoded><![CDATA[<p>thanks a lot man! just&#8230;awesome</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Chermside</title>
		<link>http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby/comment-page-1#comment-4080</link>
		<dc:creator>Michael Chermside</dc:creator>
		<pubDate>Tue, 30 Sep 2008 14:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby#comment-4080</guid>
		<description>@Daniel

Amazing. Reading this reminds me why I _don&#039;t_ like Ruby&#039;s syntax, but nevertheless this takes language integration to new heights I had never seen before. I am quite awed.</description>
		<content:encoded><![CDATA[<p>@Daniel</p>
<p>Amazing. Reading this reminds me why I _don&#8217;t_ like Ruby&#8217;s syntax, but nevertheless this takes language integration to new heights I had never seen before. I am quite awed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Shorrock</title>
		<link>http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby/comment-page-1#comment-4079</link>
		<dc:creator>Chris Shorrock</dc:creator>
		<pubDate>Mon, 29 Sep 2008 22:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby#comment-4079</guid>
		<description>@Daniel

Thanks - I actually wrote my 2nd comment before I saw your response. Thanks for the clarification though - it&#039;s much appreciated, your work on this topic is impressive. I hope that JRuby will address this shortcoming in the future. Thanks again!</description>
		<content:encoded><![CDATA[<p>@Daniel</p>
<p>Thanks &#8211; I actually wrote my 2nd comment before I saw your response. Thanks for the clarification though &#8211; it&#8217;s much appreciated, your work on this topic is impressive. I hope that JRuby will address this shortcoming in the future. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Spiewak</title>
		<link>http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby/comment-page-1#comment-4078</link>
		<dc:creator>Daniel Spiewak</dc:creator>
		<pubDate>Mon, 29 Sep 2008 17:54:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby#comment-4078</guid>
		<description>@Daniel

lol  I just get into a rhythm I guess.  :-)

@Chris

Yes, it is just the trait mixin functionality, but trait mixins are actually used by a good portion of the library.  For example, the wrapped Ruby arrays and Hashes both include RandomAccessSeq and Map, respectively.  Likewise, you can use closures, but you cannot pass Ruby blocks as Scala functions unless the method you are calling avoids calling the compose method.  Vanilla JRuby allows you to pass blocks as Scala function values, it just has some limitations (outlined in the article).

So to condense my answer: if you want to use the library on JRuby 1.1.4 (or any version with the interface regression), you will need to limit your use to the operator overloading functionality; no trait mixins, no wrapped Array(s), Hash(es) or Proc(s).</description>
		<content:encoded><![CDATA[<p>@Daniel</p>
<p>lol  I just get into a rhythm I guess.  <img src='http://www.codecommit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>@Chris</p>
<p>Yes, it is just the trait mixin functionality, but trait mixins are actually used by a good portion of the library.  For example, the wrapped Ruby arrays and Hashes both include RandomAccessSeq and Map, respectively.  Likewise, you can use closures, but you cannot pass Ruby blocks as Scala functions unless the method you are calling avoids calling the compose method.  Vanilla JRuby allows you to pass blocks as Scala function values, it just has some limitations (outlined in the article).</p>
<p>So to condense my answer: if you want to use the library on JRuby 1.1.4 (or any version with the interface regression), you will need to limit your use to the operator overloading functionality; no trait mixins, no wrapped Array(s), Hash(es) or Proc(s).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Schneller</title>
		<link>http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby/comment-page-1#comment-4077</link>
		<dc:creator>Daniel Schneller</dc:creator>
		<pubDate>Mon, 29 Sep 2008 17:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby#comment-4077</guid>
		<description>Man, if you write something, you *really* can&#039;t stop, can you? :-) great stuff (as usual)!</description>
		<content:encoded><![CDATA[<p>Man, if you write something, you *really* can&#8217;t stop, can you? <img src='http://www.codecommit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  great stuff (as usual)!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Shorrock</title>
		<link>http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby/comment-page-1#comment-4075</link>
		<dc:creator>Chris Shorrock</dc:creator>
		<pubDate>Mon, 29 Sep 2008 16:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby#comment-4075</guid>
		<description>The above was poorly phrased - I probably should of jumped straight to the point - Is it just the trait mixin functionality?</description>
		<content:encoded><![CDATA[<p>The above was poorly phrased &#8211; I probably should of jumped straight to the point &#8211; Is it just the trait mixin functionality?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Spiewak</title>
		<link>http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby/comment-page-1#comment-4074</link>
		<dc:creator>Daniel Spiewak</dc:creator>
		<pubDate>Mon, 29 Sep 2008 16:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby#comment-4074</guid>
		<description>@Chris

The issues are related to the mixins functionality.  Generically, any time an interface is involved and a method is overwritten within the Ruby class, JRuby crashes.  This was originally identified with two Java interfaces with conflicting signatures, but it seems to also apply to mixins.  Quite often (read: all the time) a trait will inherit a member from a super-trait and then redefine it.  This is what triggers the crash.

It is possible to just avoid using Scala mixins within JRuby, but then you lose everything except the operator overloading.  I guess the only thing we can do is vote for &lt;a href=&quot;http://jira.codehaus.org/browse/JRUBY-2999&quot; rel=&quot;nofollow&quot;&gt;JRUBY-2999&lt;/a&gt; and nag Charlie to get it done.  :-)</description>
		<content:encoded><![CDATA[<p>@Chris</p>
<p>The issues are related to the mixins functionality.  Generically, any time an interface is involved and a method is overwritten within the Ruby class, JRuby crashes.  This was originally identified with two Java interfaces with conflicting signatures, but it seems to also apply to mixins.  Quite often (read: all the time) a trait will inherit a member from a super-trait and then redefine it.  This is what triggers the crash.</p>
<p>It is possible to just avoid using Scala mixins within JRuby, but then you lose everything except the operator overloading.  I guess the only thing we can do is vote for <a href="http://jira.codehaus.org/browse/JRUBY-2999" rel="nofollow">JRUBY-2999</a> and nag Charlie to get it done.  <img src='http://www.codecommit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Shorrock</title>
		<link>http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby/comment-page-1#comment-4073</link>
		<dc:creator>Chris Shorrock</dc:creator>
		<pubDate>Mon, 29 Sep 2008 16:15:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby#comment-4073</guid>
		<description>Great article - and shockingly relevant since I&#039;ve spent the majority of the weekend working to get this exact to function for a project - so for that - I can&#039;t thank you enough for the amount of time you&#039;ve just saved me.

At the end it&#039;s noted that this does not work with 1.1.3 or 1.1.4 - can you outline which aspects of this do not work? Are there core major issue associated with these releases? or have minor syntactical things changed which have caused some problems?</description>
		<content:encoded><![CDATA[<p>Great article &#8211; and shockingly relevant since I&#8217;ve spent the majority of the weekend working to get this exact to function for a project &#8211; so for that &#8211; I can&#8217;t thank you enough for the amount of time you&#8217;ve just saved me.</p>
<p>At the end it&#8217;s noted that this does not work with 1.1.3 or 1.1.4 &#8211; can you outline which aspects of this do not work? Are there core major issue associated with these releases? or have minor syntactical things changed which have caused some problems?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Spiewak</title>
		<link>http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby/comment-page-1#comment-4071</link>
		<dc:creator>Daniel Spiewak</dc:creator>
		<pubDate>Mon, 29 Sep 2008 15:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby#comment-4071</guid>
		<description>Um, because it&#039;s cool?  :-)

Seriously though, JRuby is used a lot in Java-based projects which need a more dynamic language for a certain layer (Groovy is used here as well).  This works out fine since JRuby has excellent integration with Java, but when trying to use it with a project written in Scala, we run into some difficulties (as illustrated in the first example).  This library allows one to use JRuby with Scala and fully leverage its wonderful flexibility.  In fact, I would argue that with this library, the JRuby/Scala integration is even closer than JRuby/Java.</description>
		<content:encoded><![CDATA[<p>Um, because it&#8217;s cool?  <img src='http://www.codecommit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Seriously though, JRuby is used a lot in Java-based projects which need a more dynamic language for a certain layer (Groovy is used here as well).  This works out fine since JRuby has excellent integration with Java, but when trying to use it with a project written in Scala, we run into some difficulties (as illustrated in the first example).  This library allows one to use JRuby with Scala and fully leverage its wonderful flexibility.  In fact, I would argue that with this library, the JRuby/Scala integration is even closer than JRuby/Java.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
