yes, there is a rudimentary compiler for Perl. BUT
Perl is written in C, and it's input/output routines etc are already highly optimized. And typically the bottleneck is not the CPU, it's the i/o or talking to a database, etc, so compiling isn't going to make a great deal of difference. Where it does help is in startup time. One of the biggest flaws of the CGI model is that's it's gonna go to disk and load your program into memory for each request (which may be tens or hundreds per second on a busy server). So if you're doing a lot of perl cgi, I'd recommend checking out mod_perl. It can cache your CGI's in memory so they are much faster, and the server is more scalable (at the expense of memory usage of course). (Also if you go to java, you can use a servlet or jsp engine to do the same). > One question I always had is this: Perl is an inturpreted language, and its > compiled by the inturpreter at run time... > > Why can perl not be precompiled to give it a speed improvement over running > as scritps... that would give it the best of both worlds, run it interpreted > while in developement, then when you got it right, compile it... i always > wondered why that is not done..... would not the speed improvment in this > bring it closer in performance to C++ ??? I know it would probably never be > able to be as fast, but surely alot faster then it is now.. > > for example, a perl cgi script that was precompiled would be heaps faster > then the scripts I am using now, (which are not slow by cgi standards, but > still not lightning fast... > > I know of tools that make perl scripts batch files, but that is not the same > thing... > > anyother benefit of this is our shoppin cart, it uses a hashkey that it > generates to protect stuff in transit from being altered.. and having the > checksum libs freely available makes this tool useless.... (if people know > how we do it, its not too hard to use that knowledge to create a new > checksum with your changes included...) > > anyone know anything of this (compiling perl??) > > Also I have heard bits and pieces about tools to convert perl to other > languages, does anyone know of these? what success did you have, what > languages?? etc etc... tell me tell me......... :-) > > > rgds > > Frank > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Guy McArthur > Sent: Wednesday, 3 October 2001 1:11 AM > To: '[EMAIL PROTECTED]' > Subject: Re: [expert] > > > > There are some good free resources for learning java on the web: > > Thinking In Java, in Html, Word and PDF: > http://www.mindview.net/Books/TIJ/ > > The Java Tutorial > http://java.sun.com/docs/books/tutorial/ > > If you're coming from C/C++ I'd recommend getting "Java In A Nutshell" by > David Flanagan, otherwise Just Java 2 by Peter Van der Linden. > > -- > Guy McArthur * email{[EMAIL PROTECTED]} http{guymcarthur.com} > > > > > -- -- Guy McArthur * email{[EMAIL PROTECTED]} http{guymcarthur.com} LPL Rm. #538 * w{520-621-6373} h{520-326-4555} icq{17470307}
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
