Re:A philosophical difference between Haskell and Lisp (2015)
by ssivark on Sunday August 02, 2020 @04:57PM
(#24031683)
I don’t understand why the above got down-voted... Without fusing (lazy) loops, having a bunch of independent sequential transformations (each with its own loop) can make the same computation significantly slower!
[ Parent
| on HN ]
Re:A philosophical difference between Haskell and Lisp (2015)
by vc8f6vVV on Sunday August 02, 2020 @05:13PM
(#24031797)
Ruby or Scala don't have lazy evaluation by default, yet there are views (Scala) or lazy (Ruby), so no, you don't necessary need compiler help.
Re:A philosophical difference between Haskell and Lisp (2015)
by layoutIfNeeded on Sunday August 02, 2020 @05:30PM
(#24031945)
Yeah, you can emulate laziness at the library level with iterators, coroutines and whatnot, but it always comes with a certain API friction (some readers might be familiar with the “colored functions” analogy [1]) compared to Haskell’s approach that takes laziness to the extreme.
[1] http://journal.stuffwithstuff.com/2015/02/01/what-color-is-y...
Re:A philosophical difference between Haskell and Lisp (2015)
by anchpop on Sunday August 02, 2020 @06:47PM
(#24032460)
I was really hoping that article was going to start talking about effect systems. They're so cool! They make it possible to have many different function colors without it being a huge chore. They can be thought of as a more-ergonomic generalization of monads.