News for hackers. Stuff that matters.
Re:Why Erlang Matters by catnaroek on Thursday April 07, 2016 @04:52PM (#11450628)
Erlang processes are objects in their own right, not "dual" to them.

The dual of object types (records of methods) are sum types: Object types are defined by how you can eliminate them (calling a method on an object), whereas sum types are defined by how you can introduce them (applying a constructor to suitable arguments).

Re:Why Erlang Matters by pmontra on Thursday April 07, 2016 @05:09PM (#11450744)
He probably means that an Erlang process is equivalent to an object and message passing among processes is equivalent to method calls.

In my experience with Elixir, objects, method calls and mutable data are easier to write than processes, messages and immutable data. It's not the mutable and immutable part, it's more about the boiler plate of spawning processes, receiving messages and matching them to dispatch them to the appropriate functions. Ruby's and Python's class and method definitions are much more compact and less error prone. Unfortunately they are not as good at parallelism. I wonder if it could be possible to have an OO language with an automatic Erlang process per object, automatic immutable data (just don't let reassign values to variables, like Erlang), and a way to define supervisor trees.

Re:Why Erlang Matters by jrobn on Thursday April 07, 2016 @08:36PM (#11451799)
There is Pony (http://www.ponylang.org).
Re:Why Erlang Matters by pmontra on Friday April 08, 2016 @03:27AM (#11453129)
Interesting language, thanks. What's the amount of adoption to date?
Re:Why Erlang Matters by jrobn on Friday April 08, 2016 @08:45PM (#11459291)
Close to 0%. It's still in development. I would love to see this development into a high performance alternative / complement to erlang.
Re:Why Erlang Matters by Jtsummers on Thursday April 07, 2016 @05:54PM (#11451010)
Yes. In the same sense that closures and objects are equivalent.

http://c2.com/cgi/wiki?ClosuresAndObjectsAreEquivalent

Re:Why Erlang Matters by eggy on Friday April 08, 2016 @07:50AM (#11453951)
Or use LFE - Lisp Flavoured Erlang by one of the designers of Erlang, Robert Virding. All the BEAM/OTP goodness with the meta-programming and homoiconicity of Lisp. Worth checking out.
Re:Why Erlang Matters by pramodliv1 on Thursday April 07, 2016 @06:07PM (#11451075)
>> I wonder if it could be possible to have an OO language with an automatic Erlang process per object, automatic immutable data (just don't let reassign values to variables, like Erlang), and a way to define supervisor trees.

Is it possible to implement it using the metaprogramming features in Elixir?