3 ms·
Lambdas?
by JoelMcCracken 6y ago
Lambdas?
- chrisseaton 6y agoBut those were popular and common before Haskell. Why would we say that lambdas spun off from Haskell to Java, rather than they were spun off from ML, or Miranda, or from Lisp?
- JoelMcCracken 6y agoI can’t say really, but my recollection is that the last decade of higher interest in FP has had Haskell as a fixture, and was significantly sparked by the need to program in a multi core world, and parallelization is made significantly simpler in the context of pure FP and controlled side effects. I hear you though. I was mostly a lisp person and only really got into Haskell in the last couple of years. Even still I would have said that the FP zeitgeist had Haskell as it’s central example of FP.
- lptk 6y agoI think it's safe to say that the inspiration for Java lambda almost certainly did not come from the "FP zeitgeist" you're describing, but simply from other JVM languages like Scala and Clojure, which showed how useful they were and how they could be done nicely on the JVM.
- JoelMcCracken 6y agoI believe both of those languages have motivational roots in the parallel computation drive/what I am describing as the FP zeitgeist. For example, this ya the earliest reference to clojure I could find on hn. Notice the text of the announcement and how it focuses on parallelism https://groups.google.com/forum/m/#!topic/comp.lang.lisp/xvKsMLKLL_k https://groups.google.com/forum/m/#!topic/comp.lang.lisp/xvK...