in reply to Re^2: Perl: friend or foe ?
in thread Perl: friend or foe ?
I'm worried that if I mention Python one more time this weekend I might get dragged off by a lynch mob, but here goes anyway... When you import a module in Python, say module Foo.py, it writes to disk the byte code of the compilation in a file called Foo.pyc. The next time you run, it goes to do the same thing, but checks the time stamps on the .py file and .pyc file, only recompiling the .pyc file if it is stale, and otherwise just reading it in and ignoring the .py file. There are no Makefiles involved.
What is wrong with this idiom? I guess one tricky issue is where you put the .pyc files. If you don't have permission to the directory in which the .py files are stored, and the .pyc files aren't already there, then I suppose you have to figure out where to put the .pyc files you create, though I don't think this would be too terrible. You could have a python cache directory in your home directory, or something like that.
Why wouldn't such an idiom work for Perl?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl: friend or foe ?
by merlyn (Sage) on Apr 24, 2005 at 14:40 UTC | |
|
Re^4: Perl: friend or foe ?
by perrin (Chancellor) on Apr 24, 2005 at 16:59 UTC | |
|
Re: Perl: friend or foe ?
by MonkPaul (Friar) on Apr 24, 2005 at 14:29 UTC | |
|
Re^4: Perl: friend or foe ?
by bart (Canon) on Apr 24, 2005 at 20:06 UTC | |
by merlyn (Sage) on Apr 25, 2005 at 00:04 UTC | |
|
Re^4: Perl: friend or foe ?
by chromatic (Archbishop) on Apr 24, 2005 at 20:38 UTC |