[Haskell-cafe] Theoretical question: are side effects necessary?
serialhex at gmail.com
Fri Mar 16 22:43:12 CET 2012
On Fri, Mar 16, 2012 at 8:35 AM, Felipe Almeida Lessa <
felipe.lessa at gmail.com> wrote:
> If you're asking about performance, as in "is there a problem that can
> be solved in O(f(n)) time in Java but not in Haskell-sans-IO-and-ST?",
> then it becomes a harder question. I'm not sure what the answer is.
an interesting question emerges: even though i may be able to implement an
algorithm with O(f(n)) in Haskell, and write a program that is O(g(n)) <
O(f(n)) in C++ or Java... could Haskell be said to be more efficient if
time spent programming / maintaining Haskell is << C++ or Java?? i'm still
trying to learn Haskell, but it seems to me to be *much* less verbose than
C and it's derivatives, and while jumping through monads just to print to a
screen or write a file seems a small expence to pay to be able to express
what you want easier...
* The wise man said: "Never argue with an idiot. They bring you down to
their level and beat you with experience."
* As a programmer, it is your job to put yourself out of business. What
you do today can be automated tomorrow. ~Doug McIlroy
No snowflake in an avalanche ever feels responsible.
CFO: “What happens if we train people and they leave?”
CTO: “What if we don’t and they stay?”
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe