----- Original Message ----- From: "Jason van Zyl" <[EMAIL PROTECTED]> To: "Velocity Developers List" <[EMAIL PROTECTED]> Sent: 2002. március 13. 18:55 Subject: Re: Velocity Compiler
> On Wed, 2002-03-13 at 05:19, Geir Magnusson Jr. wrote: > > > > > I guess the question is - is there any point to doing this? :) It's not > > clear to me what kind of real performance improvements can be realized by > > compiling, because once the template is intepreted, it's bytecode, right? > > The AST is bytecode, but I believe the compiled form of a template would > be different in that the reflection would be removed and if types place > in the context were immutable then I believe the compiler would make > things faster. > This simply can't be done without seriously limiting Velocity functionality. For *full* compilation into bytecode, you need a strongly typed language, and not the loosely typed scripting-language like philosophy Velocity sports, period. The Tea template engine compiles to bytecode, and its syntax indeed features strongly typed template variables. Cheers, Attila. -- Attila Szegedi home: http://www.szegedi.org > -- > jvz. > > Jason van Zyl > [EMAIL PROTECTED] > > http://tambora.zenplex.org > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
