News for hackers. Stuff that matters.
Re:Rust as a gateway drug to Haskell by tome on Wednesday June 14, 2017 @09:37AM (#14552576)
I don't think anything is the unique selling point of laziness. Wikipedia[1] says "The benefits of lazy evaluation include:

* The ability to define control flow (structures) as abstractions instead of primitives.

* The ability to define potentially infinite data structures. This allows for more straightforward implementation of some algorithms.

* Performance increases by avoiding needless calculations, and error conditions in evaluating compound expressions."

In my several-year experience as a professional Haskell developer the first and second points are at least an order of magnitude more important than the third.

[1] https://en.wikipedia.org/wiki/Lazy_evaluation

Re:Rust as a gateway drug to Haskell by Symmetry on Wednesday June 14, 2017 @12:56PM (#14554031)
Also in some cases laziness creates loop fusion between chained functions for much better cache locality.
Re:Rust as a gateway drug to Haskell by k__ on Wednesday June 14, 2017 @10:02AM (#14552752)
"the first and second points are at least an order of magnitude more important than the third."

No offense, but 'performance is not as important as...' is what basically all pro-FP devs say for years, still it seems that the rest of the world thinks exactly the opposite.

Re:Rust as a gateway drug to Haskell by tome on Wednesday June 14, 2017 @10:49AM (#14553129)
You've completely missed the point.

I make no claim about the importance of performance.

My claim is that the performance gains brought by lazy evaluation are far less important than the other gains it brings (because the performance gains it brings are rather small).

Re:Rust as a gateway drug to Haskell by k__ on Wednesday June 14, 2017 @11:51AM (#14553589)
Yes, you're right. I'm sorry.
Re:Rust as a gateway drug to Haskell by tome on Thursday June 15, 2017 @05:31AM (#14558936)
That's OK!
Re:Rust as a gateway drug to Haskell by tikhonj on Wednesday June 14, 2017 @10:50AM (#14553132)
It's hard to believe that a world where Ruby, Python and Node are massively popular cares about performance above expressiveness. Even Java became popular first and fast afterwards—not even talking about memory efficiency!

I'd agree that a lot of developers still over-index on performance though, probably because it's sexy and easy to measure.

Re:Rust as a gateway drug to Haskell by falcolas on Wednesday June 14, 2017 @12:22PM (#14553793)
> I'd agree that a lot of developers still over-index on performance though, probably because it's sexy and easy to measure.

To keep producing responsive compute programs as the complexity of those programs continues to rise while the single-core CPU performance remains steady, program performance must become more and more important.

Re:Rust as a gateway drug to Haskell by dllthomas on Wednesday June 14, 2017 @10:22AM (#14552900)
On the contrary, the rest of the world seems to think "the performance gains given by laziness" aren't worthwhile at all.

It's true that there are also performance costs associated with laziness, but those weren't under discussion.