News for hackers. Stuff that matters.
Re:“What Alan Kay Got Wrong About Objects” by dragonwriter on Sunday November 17, 2019 @03:45PM (#21559963)
> As I've seen it said, Erlang is Smalltalk done right.

As I see it, It's not, but it’d be a decent platform to build an asynchronous smalltalk on top of. One key thing it is missing is a convenient syntax for defining processes (either via instantiable templates equivalent to “class” in many OOPLs or as singletons equivalent to “object” in Scala) in terms of the message handlers and local state (volatile state of the kind that would be held in the process dictionary and the kind of “transactionally updated” state that, in Erlang, would be carried in function args.)

Re:“What Alan Kay Got Wrong About Objects” by cuddlecake on Monday November 18, 2019 @02:31AM (#21562547)
A process is simply a function that runs independent of other functions in the system + a mailbox + a handle + own memory.

So the convenient Syntax to define a process is a function declaration. Plus, calling "spawn" to start the process.

Of course, as other responders pointed out, there is also OTP, an established framework (not syntax) to define processes with predefined, battle-tested behaviours.

Re:“What Alan Kay Got Wrong About Objects” by ProfHewitt on Monday November 18, 2019 @11:09AM (#21565397)
The Actor Model attempts to be as general as possible to support direct modeling and efficient implementation of all digital computation. For example, an Actor is not required to have an external mailbox, which is required for communication in Erlang [Armstrong, et. al. 1992]. Requiring an external mailbox is problematical for Actors because the mailbox would itself necessarily be another Actor thereby immediately leading to an infinite regress. Also, requiring the use of external mailboxes can slow requests between Actors because it would always be necessary to first deposit a request in an Actor’s external mailbox so that the request could later be retrieved. That a request is almost always sent and received without ever residing in persistent storage, where it can be left and later retrieved, is an important engineering goal for Actors.
Re:“What Alan Kay Got Wrong About Objects” by yesco on Sunday November 17, 2019 @04:20PM (#21560117)
Isn't that exactly what Erlang's gen_server does or am I missing something?
Re:“What Alan Kay Got Wrong About Objects” by regulation_d on Sunday November 17, 2019 @04:55PM (#21560283)
seems like OTP to me