4 ms·
It's Time to Get Good at Functional Programming
- torkable 12y agolol his example of factorial in Haskell is hilarious. If statement? Srs?
- digitalzombie 12y ago> Joe, who might be prejudiced, seems to thinks it's the next Ruby, and claims that if you write an application in Erlang to run on a single-core processor, it will run four times as fast on a 4-core processor without any modification in the code. Wrong, only for Embarrassingly parallel problems and even then Erlang cannot do numerical problem as fast as other languages. > Erlang is not a hybrid like Scala and F#, but a no-compromises pure FP language. It is not pure but pragmatic. The date() function does not respect Referential transparency. It'll return the current date all the time, not the same value all the time. Edit: I've recently reread Learn You Erlang For Great Good book for an interview. I just basically paraphrasing what the author states.
- deleted 12y ago[deleted]
- CmonDev 12y ago"Erlang is a general-purpose language and runtime environment specifically designed by Joe Armstrong at Ericsson for building highly parallel, distributed, fault-tolerant systems." Nice contradiction :). (Haven't seen any Erlang GUI frameworks or e.g. text editors implemented in Erlang).
- fenollp 12y agoThere is a binding to wxWidgets that is part of the official Erlang releases. There is also this: http://www.erlang.org/workshop/2004/ex11.pdf http://www.erlang.org/workshop/2004/ex11.pdf
- gizak 12y agoDon't forget Clojure