Re:“What Alan Kay Got Wrong About Objects”
by senderista on Monday November 18, 2019 @02:14AM
(#21562483)
That's the gen_server functional interface, not the message send primitive (!).
[ Parent
| on HN ]
Re:“What Alan Kay Got Wrong About Objects”
by rkangel on Monday November 18, 2019 @08:17AM
(#21564029)
That's OK. It doesn't matter at what abstraction layer the timeout is taken care of as long as it is taken care of. That it's in a library rather than the language core is an irrelevant distinction.
Re:“What Alan Kay Got Wrong About Objects”
by strmpnk on Monday November 18, 2019 @09:24AM
(#21564497)
It’s technically the receive primitive doing this using the after clause. The addition of unique references and selective receive then allows “call” style interactions to built (like gen_server).
Likewise, links and monitors are used for lifetime concerns instead of reference counting actors like Pony or using a global tracing collector. This has some advantages and disadvantages but for the most part I personally find it far more practical than other models which are more like the classic actor model.