Yes. The Compilable paradigm is optional in the JSR223 specs, one could
consider template parsing itself as a compilation step, but it sounds
rather artificial - it's a caching process, with different caching
strategies which can be configured, and VTL remains an interpreted
language. Better leave aside this feature.

  Claude

On Mon, 25 Jun 2012 12:46:48 -0700
Nathan Bubna <[email protected]> wrote:

> Templates are not compiled into any other language (bytecode or
> otherwise).  They are interpreted into an AST which is then typically
> cached.  Many years ago, experiments in compilation failed to produce
> any worthwhile benefit over a cached AST, no one has attempted it
> since for any java template engine i'm familiar with.
> 
> On Sat, Jun 23, 2012 at 12:12 AM, Dishara Wijewardana
> <[email protected]> wrote:
> > Hi ,
> > In JSR 223,
> > It has a concept of compiledScript which is a script compiled by the
> > Compilable class. Then that compiled script is used to do
> > engine.evaluate()
> >
> > Does velocity engine compile a script before evaluating or does it
> > has at least such functionality as an optional one ?
> > As far as I understand this compilation means probably a kind of
> > ANTLR like compiler which compiles the script grammer.
> >
> >
> > --
> > Thanks
> > /Dishara
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to