[erlang-questions] Add a new data structure to erlang VM.

Robert Virding rvirding@REDACTED
Fri Jul 15 01:12:33 CEST 2016


The data in an ets table and a process dictionary is not mutable!

As ROK points out the ets tables are outside all processes. In fact an ets
tables behaves in many ways as if it was a process and the table elements
were local to that process even if they are not implemented as a process. I
have in fact implemented ets tables using processes and got the same
behaviour.

Implementing a doubly linked list will makes the actual data structure
mutable.

Robert


On 11 July 2016 at 07:17, Constantin Kulikov <zxnotdead@REDACTED> wrote:

> > everything else by design is immutable
>
> Tell this to ets tables and process dicts.)
>
>
> On 11 July 2016 at 04:21, Robert Virding <rvirding@REDACTED> wrote:
>
>> It feels a bit off adding a mutable data structure to erlang where
>> everything else by design is immutable.
>>
>> Robert
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160715/82d927c5/attachment.htm>


More information about the erlang-questions mailing list