On Sat, 3 Jul 2010, Greg Lindahl wrote: > On Fri, Jul 02, 2010 at 06:42:04PM -0400, George Greer wrote: > >> I, for one, would love to see LLVM-compiled Perl programs or >> sorta-self-hosted Perl. PyPy makes me sad. perl is not always fast >> enough. > > I would be for that, although I'm more enthused by modest incremental > changes to make Perl faster, which is also something that you see the > Python community engaging in. It's obvious that Perl has had a lot of > good perf work done over the years, but I frown a little every time I > have slow code that I fix by doing elementary things like hosting > statements out of loops (does Perl do any optimization after > generating bytecodes?), or using substr instead of split. One advantage of the self-hosting Perl nowadays is the number of C vs. Perl programmers, so they could contribute easier. It is, however, not at all easy to get to that point. perl does do some optimizations, constant expression folding that I know of, but not nearly the level of something like GCC. Then again, it also doesn't need that level for most of it. And then I start wishing I had Devel::NYTProf for C... -- George GreerThread Previous | Thread Next