Ya'know, in the olden days of maimframes, and CoBOL, RPG, etc, they  
used to resolve this sort of problem with an "Optimizing" compiler.

The Optimzer would perform another pass (either pre or  
post-compilation) and try to optimize the code --- especially  
subroutines and loops (and other high-potential code).

It seems that something of that order would be useful here (especially  
going from an untyped language to a strongly-typed language).

The Optimizer could look for key words (for, do, etc,) and make some  
intelligent guesses about the variables involved, or better yet,  
substitute an optimized, precompiled, code block for the user-specified  
code.

Again, I don't know much Java, but it seems that CF ought to be able to  
generate something much closer to the jsp code.

Maybe this is an opportunity -- CFMX plugin anyone?

Dick


On Tuesday, September 17, 2002, at 09:06 AM, Dick Applebaum wrote:

> here's the critical piece of gen'd Java code:
>
>        STIME.set(coldfusion.runtime.Cast._Object(this.GetTickCount()));
>        for
> (X.set(((java.lang.Object)("1")));_compare(this._autoscalarize(X),10000 
> 0
> 0.0)<=0;X.set(coldfusion.runtime.Cast._Object((coldfusion.runtime.Cast. 
> _
> double(this._autoscalarize(X)))+(1.0)))){{
>
> Z.set(coldfusion.runtime.Cast._Object((coldfusion.runtime.Cast._double( 
> t
> his._autoscalarize(Z)))+(coldfusion.runtime.Cast._double(this._autoscal 
> a
> rize(X)))));
>          }
>        }
>        ETIME.set(coldfusion.runtime.Cast._Object(this.GetTickCount()));
>
> Kind of Ugly!
>
> Dick
>
> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to