Live data from Hacker News

Pissed off about functional programming (2005)

perlmonks.org

61–65 of 65 posts

Re: Pissed off about functional programming (2005)

#61

Earlier quoted context omitted.

Has anyone ever seriously believed this? I guess it's just easier to coordinate resource sharing when resource sharing isn't allowed. My favorite is "Functional programming is becoming more relevant because...multi-core" so your 100x slower functional code would get a 4x speed up and only be 25x slower?

Here's another myth, functional code is 100x slower (than what?). Here's the counter example, Microsoft Research chose the functional first language F# to build arguably the most advanced and useful quantum computer simulator in existence. http://research.microsoft.com/en-us/projects/liquid/ There's no incentive to rewrite it in C++. It already solves real quantum computing problems like molecule simulation https://c…

There isn't anything in this project that implies immutabilty was extensively used for shared state in this case. F# is a pragmatic language, you can do what you want.

Re: Pissed off about functional programming (2005)

#62
post #49
post #44

Earlier quoted context omitted.

Haskell was _absolutely_ the poster child of FP in 2005.

I disagree; I think, at the time, functional programmers were primarily using OCaml and various lisps. This is purely anecdotal, mind you, and haskell was definitely on the FP radar big time.

I dunno. I remember it being all over LtU and most every programming language discussion was that or scheme, but always treating Haskell like it was the ideal (and it had become default on research papers instead of OCaml)

Re: Pissed off about functional programming (2005)

#63
post #49
post #44

Earlier quoted context omitted.

Haskell was _absolutely_ the poster child of FP in 2005.

I disagree; I think, at the time, functional programmers were primarily using OCaml and various lisps. This is purely anecdotal, mind you, and haskell was definitely on the FP radar big time.

Also, I remember when this came out the first time and the discussion on proggit was replying using mainly Haskell examples.

Re: Pissed off about functional programming (2005)

#64

Earlier quoted context omitted.

Has anyone ever seriously believed this? I guess it's just easier to coordinate resource sharing when resource sharing isn't allowed. My favorite is "Functional programming is becoming more relevant because...multi-core" so your 100x slower functional code would get a 4x speed up and only be 25x slower?

> Has anyone ever seriously believed this? Hickey, Datomic?

Believing you can solve the concurrency problem[1] using functional programming as your tool-shaping method of choice is different from believing functional programming solves the concurrency problem.

[1] Whatever 'the' concurrency problem may be and not implying that I agree that the Clojure people believe they can solve it or intend to solve it

Re: Pissed off about functional programming (2005)

#65
post #59

Earlier quoted context omitted.

I'm sympathetic to that viewpoint; I prefer the Haskell style where some things are mutating and some things are not and you can see which and control when they happen. But I've seen the Clojure style used effectively, building real-world webapps, and I'd take either over the imperative-language style where your tools give you no help and it's up to you to keep track of when mutations can and can't happen.

There are other ways: http://research.microsoft.com/apps/pubs/default.aspx?id=2112...

Interesting. It sounds like you sometimes only detect incompatible updates at runtime?
Post reply on HN