On Tue, Dec 1, 2009 at 12:36 AM, Alan Williamson <[email protected]> wrote: > Yes i have seen Ben's effort. Fantastic work.
To be clear, it wasn't Ben's work. He was just demonstrating Barney Boisvert's CFGroovy project which exposes any JSR-223 scripting engine in CFML. Barney has spoken at conferences about this and has demonstrated Groovy, Ruby, Python and PHP all interacting within a single CFML page. Ben's post just shows JavaScript because that's the engine that is bundled with the JVM and can be exposed via Barney's CFGroovy project without needing additional language JARs adding in. Before Barney's CFGroovy project was published, I had created a Scripting project (on RIAForge) that showed Ruby and PHP code running in CFML pages. I put my project on ice when Barney's more sophisticated project appeared. > I am presently not using the JSR-223 (a JSR i was on) as it doesn't > actually provide me with deep enough hooks into the Rhino engine that I > require. Good to know. > By providing a deep integration, we can be a lot smarter with the > caching of the compiled Javascript and not have the overhead associated > with compiling it everytime you request it. JSR-223 supports compilation of code (for languages that support it - I don't know whether Rhino does?). Barney's CFGroovy caches compiled code using that machinery. > I've modified some bits of the core Rhino engine to make the function > and method lookup quicker when dealing with our OpenBD space. Cool. > I've modified it to be a very late > binding, where as the default one, doesn't isn't. A good choice. > The changes I have also made are with a eye when the Google GAE and > OpenBD branches merge in the near future, so running Javascript on the > server-side in the cloud doesn't become a bug-bear. Nice. > I have started to use CFJS in a client project already, and already i am > feeling very at home using Javascript within my CFCs. Hoping to get > the last wee bits finished off in the next couple of days to bring it > fully up to speed. I'll be interested to read more about it, especially around integration of the object models. > Hope this addresses your question. Yes, thanx! -- Sean A Corfield -- (904) 302-SEAN Railo Technologies US -- http://getrailo.com/ An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood -- Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon mailing list - http://groups.google.com/group/openbd?hl=en !! save a network - please trim replies before posting !!
