<?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: CFYourFavoriteJVMLanguage</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: JavaScript Magazine Blog for JSMag &#187; Blog Archive &#187; JavaScript inside ColdFusion &#8211; CFJS</title>
		<link>https://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/comment-page-1/#comment-200794</link>
		<dc:creator>JavaScript Magazine Blog for JSMag &#187; Blog Archive &#187; JavaScript inside ColdFusion &#8211; CFJS</dc:creator>
		<pubDate>Tue, 29 Dec 2009 04:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1116#comment-200794</guid>
		<description>[...] B has put together a CF system to allow for embedded PHP, jRuby and [...]</description>
		<content:encoded><![CDATA[<p>[...] B has put together a CF system to allow for embedded PHP, jRuby and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>https://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/comment-page-1/#comment-193179</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Tue, 13 Oct 2009 23:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1116#comment-193179</guid>
		<description>@Barney
Thanks for the response, I appreciate what you have done with CFGroovy, it works really well and would love to try what you have suggested, but unfortunately don&#039;t know enough about Java yet. I&#039;ll keep playing with it and see how far I get. I&#039;ll look up JarJar and see where that gets me :)</description>
		<content:encoded><![CDATA[<p>@Barney<br />
Thanks for the response, I appreciate what you have done with CFGroovy, it works really well and would love to try what you have suggested, but unfortunately don't know enough about Java yet. I'll keep playing with it and see how far I get. I'll look up JarJar and see where that gets me :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/comment-page-1/#comment-193178</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Tue, 13 Oct 2009 23:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1116#comment-193178</guid>
		<description>@Marcel,

There&#039;s nothing I need to do, you just need to have the right script engine installed in your classpath.  CFGroovy2 simply looks up the engine based on the &#039;lang&#039; attribute, so as long as you have the right engine installed, you can run any language you want.

Sun JVMs bundle Rhino, obviously, so I&#039;m not sure what problems you might run into with version conflicts if you try to supply your own.  That goes for any script engine you might choose: you can&#039;t really have two different versions running inside the same web app, because they can&#039;t both exist on the classpath concurrently.  Rhino is just special in that every JVM already has an instance.  But that&#039;s totally outside the scope of anything CFGroovy can help with, it&#039;s purely about Java classloading and all the associated voodoo.

Worst case scenario, you could use something like JarJar to renamespace Rhino so you can install a new version in some other namespace and load it up that way under an alternate language alias.</description>
		<content:encoded><![CDATA[<p>@Marcel,</p>
<p>There's nothing I need to do, you just need to have the right script engine installed in your classpath.  CFGroovy2 simply looks up the engine based on the 'lang' attribute, so as long as you have the right engine installed, you can run any language you want.</p>
<p>Sun JVMs bundle Rhino, obviously, so I'm not sure what problems you might run into with version conflicts if you try to supply your own.  That goes for any script engine you might choose: you can't really have two different versions running inside the same web app, because they can't both exist on the classpath concurrently.  Rhino is just special in that every JVM already has an instance.  But that's totally outside the scope of anything CFGroovy can help with, it's purely about Java classloading and all the associated voodoo.</p>
<p>Worst case scenario, you could use something like JarJar to renamespace Rhino so you can install a new version in some other namespace and load it up that way under an alternate language alias.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>https://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/comment-page-1/#comment-193176</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Tue, 13 Oct 2009 23:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1116#comment-193176</guid>
		<description>@Justin
It all depends on being able to use a more recent version of JavaScript, ideally to be most useful we would want JavaScript 1.7 with e4x support like Rhino, if Barney can sort that out in CFGroovy2.1 so we could choose a JavaScript version then I think it would do the job fantastically, till then I will continue trying to hack into Rhino to bend it to my will :)

I have it loading env.js fine and can see the data and I *think* I have it loading a page, but I just don&#039;t know much about getting anything else happening, like getting the html page back again afterwards! That will be easier once I play around with adding jQuery into the mix I am hoping.</description>
		<content:encoded><![CDATA[<p>@Justin<br />
It all depends on being able to use a more recent version of JavaScript, ideally to be most useful we would want JavaScript 1.7 with e4x support like Rhino, if Barney can sort that out in CFGroovy2.1 so we could choose a JavaScript version then I think it would do the job fantastically, till then I will continue trying to hack into Rhino to bend it to my will :)</p>
<p>I have it loading env.js fine and can see the data and I *think* I have it loading a page, but I just don't know much about getting anything else happening, like getting the html page back again afterwards! That will be easier once I play around with adding jQuery into the mix I am hoping.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Carter</title>
		<link>https://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/comment-page-1/#comment-193144</link>
		<dc:creator>Justin Carter</dc:creator>
		<pubDate>Tue, 13 Oct 2009 12:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1116#comment-193144</guid>
		<description>Of course, that was meant to be env.js not enj.js :)

And as yet I haven&#039;t tried CFG2, but perhaps it would work a bit better than CFRhino did.</description>
		<content:encoded><![CDATA[<p>Of course, that was meant to be env.js not enj.js :)</p>
<p>And as yet I haven't tried CFG2, but perhaps it would work a bit better than CFRhino did.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Carter</title>
		<link>https://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/comment-page-1/#comment-193143</link>
		<dc:creator>Justin Carter</dc:creator>
		<pubDate>Tue, 13 Oct 2009 12:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1116#comment-193143</guid>
		<description>@marc, @Marcel: I&#039;ve tried jQuery and enj.js in Rhino and CFRhino (almost 12 months ago now I think) but wasn&#039;t too successful in using it the way I wanted. On the command line it seemed to work well enough, but inside a Rhino context from a CFML page I wasn&#039;t able to get it to load the DOM and load the various .js files to do the processing I wanted, even if I tried to mush it all into a single file.

For now I&#039;m just sticking to processing some stuff on the client using jQuery and sending it back to the server via Ajax :P</description>
		<content:encoded><![CDATA[<p>@marc, @Marcel: I've tried jQuery and enj.js in Rhino and CFRhino (almost 12 months ago now I think) but wasn't too successful in using it the way I wanted. On the command line it seemed to work well enough, but inside a Rhino context from a CFML page I wasn't able to get it to load the DOM and load the various .js files to do the processing I wanted, even if I tried to mush it all into a single file.</p>
<p>For now I'm just sticking to processing some stuff on the client using jQuery and sending it back to the server via Ajax :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>https://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/comment-page-1/#comment-192979</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Sun, 11 Oct 2009 06:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1116#comment-192979</guid>
		<description>Actually perhaps CFGroovy 2 should be included within Railo, I just added a ticket to the Railo user voice site: http://railo.uservoice.com/pages/21016-general/suggestions/346953-include-cfgroovy2-or-similar-as-part-of-railo</description>
		<content:encoded><![CDATA[<p>Actually perhaps CFGroovy 2 should be included within Railo, I just added a ticket to the Railo user voice site: <a href="http://railo.uservoice.com/pages/21016-general/suggestions/346953-include-cfgroovy2-or-similar-as-part-of-railo" rel="nofollow">http://railo.uservoice.com/pages/21016-general/suggestions/346953-include-cfgroovy2-or-similar-as-part-of-railo</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>https://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/comment-page-1/#comment-192976</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Sun, 11 Oct 2009 06:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1116#comment-192976</guid>
		<description>@Barney @marc esher

John Resig&#039;s env.js library adds DOM into Rhino so that jQuery can run on it. I would love to see it included as part of CF perhaps a CFJS standard where instead of Application.cfc I could have a pure javascript Application.cfjs loading jQuery and reusing code on client and server.

I&#039;d be so happy I&#039;d no doubt shed a tear or two if Railo implemented such a feature or I could figure out how to hack it together using your code examples Barney.

Cheers,
Marcel

PS. I logged tickets for such things in the Railo user voice page and on Aptana&#039;s lighthouse to see if they will consider supporting cfml as well: https://aptana.lighthouseapp.com/projects/35272-studio/tickets/97  Just thought I&#039;d mention it :)</description>
		<content:encoded><![CDATA[<p>@Barney @marc esher</p>
<p>John Resig's env.js library adds DOM into Rhino so that jQuery can run on it. I would love to see it included as part of CF perhaps a CFJS standard where instead of Application.cfc I could have a pure javascript Application.cfjs loading jQuery and reusing code on client and server.</p>
<p>I'd be so happy I'd no doubt shed a tear or two if Railo implemented such a feature or I could figure out how to hack it together using your code examples Barney.</p>
<p>Cheers,<br />
Marcel</p>
<p>PS. I logged tickets for such things in the Railo user voice page and on Aptana's lighthouse to see if they will consider supporting cfml as well: <a href="https://aptana.lighthouseapp.com/projects/35272-studio/tickets/97" rel="nofollow">https://aptana.lighthouseapp.com/projects/35272-studio/tickets/97</a>  Just thought I'd mention it :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Allen</title>
		<link>https://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/comment-page-1/#comment-192936</link>
		<dc:creator>John Allen</dc:creator>
		<pubDate>Sat, 10 Oct 2009 17:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1116#comment-192936</guid>
		<description>That is cool. Real real cool.</description>
		<content:encoded><![CDATA[<p>That is cool. Real real cool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2009/10/09/cf-your-favorite-jvm-language/comment-page-1/#comment-192901</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Sat, 10 Oct 2009 03:11:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1116#comment-192901</guid>
		<description>@Marc

Yeah, I know you were kidding.  But still a good illustration of just how all-encompassing JVM language integration could potentially be.  Can you imaging telling client X that their VB.NET application can pretty much just run as part of a CFML application?

jQuery is pretty focused on the DOM and UI stuff, which makes it largely non-applicable for server-side stuff.  However, the other bits (like each()) will happily run already.  When I build CFRhino years and years ago (pre-jQuery, and pre-JSR 223) I was using a number of Prototype&#039;s extensions in my server-side code without issue.  The jQuery stuff should be similarly usable.  CFRhino never got very far because it was 100% kludge, with no transparent passing of data structures from one side to the other.  JS follows very different rules than Java, so there isn&#039;t a 1:1 mapping passing stuff from CFML to JS like there is when passing from CFML to Groovy.

At Mentor we do CFML, Groovy, and Java on the server-side.  Joshua has done a bit of Python on the side, and Oscar has experimented with a number of languages, but in production code we&#039;ve not used anything aside from Groovy.  Most of the Groovy stuff we&#039;ve done is CFG1 with Hibernate (on our service tier), but our presentation tier is growing more and more Groovy, and it&#039;s all CFG2.  Like I said in my post, Groovy seems to compliment CFML development the best of the JSR 223 languages, so it&#039;s what we use on a day-to-day basis.  It also has each(), collect(), map(), etc. already waiting, which is awesome.</description>
		<content:encoded><![CDATA[<p>@Marc</p>
<p>Yeah, I know you were kidding.  But still a good illustration of just how all-encompassing JVM language integration could potentially be.  Can you imaging telling client X that their VB.NET application can pretty much just run as part of a CFML application?</p>
<p>jQuery is pretty focused on the DOM and UI stuff, which makes it largely non-applicable for server-side stuff.  However, the other bits (like each()) will happily run already.  When I build CFRhino years and years ago (pre-jQuery, and pre-JSR 223) I was using a number of Prototype's extensions in my server-side code without issue.  The jQuery stuff should be similarly usable.  CFRhino never got very far because it was 100% kludge, with no transparent passing of data structures from one side to the other.  JS follows very different rules than Java, so there isn't a 1:1 mapping passing stuff from CFML to JS like there is when passing from CFML to Groovy.</p>
<p>At Mentor we do CFML, Groovy, and Java on the server-side.  Joshua has done a bit of Python on the side, and Oscar has experimented with a number of languages, but in production code we've not used anything aside from Groovy.  Most of the Groovy stuff we've done is CFG1 with Hibernate (on our service tier), but our presentation tier is growing more and more Groovy, and it's all CFG2.  Like I said in my post, Groovy seems to compliment CFML development the best of the JSR 223 languages, so it's what we use on a day-to-day basis.  It also has each(), collect(), map(), etc. already waiting, which is awesome.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
