[erlang-questions] STM

Sargun Dhillon xbmodder@REDACTED
Wed Mar 4 09:13:00 CET 2009


Ah, yeah, you'd want to use mnesia as ETS is not transactional. If you
don't need transactions, and care about speed look then ETS is what
you want. Otherwise the closest thing to STM in Erlang is Mnesia. Just
make sure you set the table type to: ram_copies.


On Tue, Mar 3, 2009 at 11:59 PM, Joe Armstrong <erlang@REDACTED> wrote:
> Implemented about 14 years ago :-)
>
> mnesia:transaction(fun() ->
>                                      ...
>                                 end).
>
> http://erlang.org/doc/apps/mnesia/Mnesia_chap4.html
>
> /Joe
>
>
> 2009/3/4 Tony Arcieri <tony@REDACTED>:
>> Are there any cases of someone trying to build a software transactional
>> memory system on/into Erlang?
>>
>> --
>> Tony Arcieri
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list