Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 27407 invoked from network); 13 Feb 2004 10:51:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Feb 2004 10:51:26 -0000 Received: (qmail 51067 invoked by uid 500); 13 Feb 2004 10:50:57 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 50871 invoked by uid 500); 13 Feb 2004 10:50:55 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 50848 invoked from network); 13 Feb 2004 10:50:55 -0000 Received: from unknown (HELO trinity.anyware-tech.com) (217.112.237.100) by daedalus.apache.org with SMTP; 13 Feb 2004 10:50:55 -0000 Received: (qmail 2105 invoked from network); 13 Feb 2004 10:51:08 -0000 Received: from unknown (HELO apache.org) (10.1.0.254) by trinity.anyware-tech.com with SMTP; 13 Feb 2004 10:51:08 -0000 Message-ID: <402CAC1B.6090409@apache.org> Date: Fri, 13 Feb 2004 11:51:07 +0100 From: Sylvain Wallez User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: fr, en, en-us MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Rhino question Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Leszek Gawron wrote: >Hi all, >I started looking into Rhino documentation and it states that rhino contains >"A JavaScript compiler to transform JavaScript source files into Java class >files". > >I assume cocoon uses Rhino in interpreted way so my questions are: > >- is it at all useful to transform script into Java classes (performance)? >- does it affect continuations? I mean are continuations supported in >"compiled javascript" ? > > Rhino has different modes to compile scripts. The one used to support continuations doesn't allow generating class files. However, the script is compiled into "rhino bytecodes" which are interpreted by a "Rhino VM". Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } Orixo, the opensource XML business alliance - http://www.orixo.com