in reply to Re^7: Specializing Functions with Currying
in thread Specializing Functions with Currying
Why be functional when you can be efficient
Spoken like a true Electrical Engineering Major ;-)
Functional programming has a lot of great and useful concepts in it, and luckily we use a language that doesn't *force* us to be purists about it.
I agree with you on both points. However, as tilly points out, recursion (and other functional programming goodies) don't have to be inefficient. I would encourage you to check out Standard ML, and in particular its compilation model (which I can't find any good links to at the moment, but I will post them when I find them). ML is a fast functional language, and according to the (inherently flawed) computer language shootout one of the fastest (faster than C++ in some cases). In addition there are some really fast LISP implementations out there too as well.
Basically with a good compiler, you can be functional and efficient.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^9: Specializing Functions with Currying
by jryan (Vicar) on Aug 06, 2004 at 23:20 UTC | |
by tilly (Archbishop) on Aug 06, 2004 at 23:39 UTC | |
by stvn (Monsignor) on Aug 07, 2004 at 00:06 UTC | |
by stvn (Monsignor) on Aug 06, 2004 at 23:37 UTC | |
by jryan (Vicar) on Aug 07, 2004 at 00:08 UTC | |
by stvn (Monsignor) on Aug 07, 2004 at 00:25 UTC | |
by itub (Priest) on Aug 07, 2004 at 02:35 UTC | |
|