News for hackers. Stuff that matters.
Re:Some Functional Programmers Are Arrogant by tome on Wednesday July 08, 2015 @03:49PM (#9854180)
> RT necessitates laziness in some cases

I would be interested to see your proof of that.

Re:Some Functional Programmers Are Arrogant by the_why_of_y on Saturday July 11, 2015 @06:14AM (#9869246)
Lazy evaluation performs implicit side effects, which in some cases (and with RT as a premise) allows for better asymptotic complexity than eager evaulation.

For an example see this paper:

"More haste, less speed: lazy versus eager evaluation" by Richard Bird, Geraint Jones, Oege De Moor

http://journals.cambridge.org/action/displayAbstract?aid=441...

ftp://ftp.comlab.ox.ac.uk/pub/Documents/techpapers/Geraint.Jones/FP-1-96.ps.Z

Re:Some Functional Programmers Are Arrogant by pron on Wednesday July 08, 2015 @05:17PM (#9854658)
Any side effect must be lazily performed by the runtime at a level above the program's entry point (like main returning IO) or break RT. I don't mean that a PFP language must have non-strict evaluation.
Re:Some Functional Programmers Are Arrogant by tel on Wednesday July 08, 2015 @11:42PM (#9856039)
It's not lazy performance, it's a representation of that computation as a value. Most concretely by an interpreter. That's not really lazy evaluation and suffers from almost none of the ailments.
Re:Some Functional Programmers Are Arrogant by pron on Thursday July 09, 2015 @03:37AM (#9856620)
> and suffers from almost none of the ailments.

I'd say that's subjective, and that it suffers from enough ailments: no stack context for post-mortem debugging and profiling. I know Haskell has this "cost center" thing, but I don't know enough about them to tell whether they are truly sufficient. Anything that harms posthoc reasoning about a program with a debugger/profiler/log can be plenty painful.

Re:Some Functional Programmers Are Arrogant by tel on Thursday July 09, 2015 @10:27AM (#9857992)
You can write an interpreter in any language. That's what I'm angling for here. There's no relationship to laziness except that if Haskell is your only example implementation then you're stuck with it.