in reply to Re: To use or not to use OO Perl
in thread To use or not to use OO Perl
for run time speed use FP (functional programming)
Huh? Functional programming tends to be pretty expensive in terms of memory and arguably slower than a more procedural style (depending on whether your language of choice does tail-call optimization). Side effect-free programming with lots of first-class functions, closures, and lambdas floating around isn't easy to optimize. The traditional check-box feature of functional programming is implementation speed. (On the other hand, ghc can produce some damn fast code; on the gripping hand, gcc can beat ghc pretty handily. IME, of course.)
Functional programming techniques make some faster algorithms easier to write (divide and conquer, for instance; languages with lazy lists make dynamic programming absurdly easy). That's not necessarily the same thing, though.
Maybe by "functional" programming you mean "procedural"?
--
Yours in pedantry,
F
o
x
t
r
o
t
U
n
i
f
o
r
m
"Lines of code don't matter as long as I'm not writing them." -- merlyn
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: To use or not to use OO Perl
by demerphq (Chancellor) on Oct 22, 2004 at 19:05 UTC | |
by FoxtrotUniform (Prior) on Oct 22, 2004 at 19:12 UTC |