--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
Visit this group at https://groups.google.com/group/lisp-flavoured-erlang.
To view this discussion on the web visit https://groups.google.com/d/msgid/lisp-flavoured-erlang/47c8f4db-ec14-4dc6-b1db-2e92bbbdc2d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/lisp-flavoured-erlang/CAFA3VZJmc%3DO5iVFPGuhRJyZ4TRAOsCC5TzKHjM%2BjUDOpfZ_UKQ%40mail.gmail.com.
The Erlang shell works the same way. Usually people will use a worker or supervisor to own the ETS table and make sure it won’t crash. If t does crash, there’s the ability to set heirs and give tables away as well.
On Sun, May 19, 2019 at 22:33 Duncan McGreggor <dun...@mcgreggor.org> wrote:
I don't know if I've ever played with ETS before in LFE ... definitely Mnesia, but I can't remember using ETS before.So, naturally, I have some questions :-)Something that I noticed in the LFE REPL: when getting an exception error (e.g., calling an Erlang stdlib mod:func with args in the wrong order), I could no longer access my ETS table. Upon digging, I saw that the LFE pid was changing every time an exception was thrown. Is that new with 1.3? (To date, most of my LFE use has been pre-1.0, and the remainder has been with 1.2) Maybe the pid has changed every time there was an exception in the REPL, and this is the first time I've noticed (or I have forgotten!)?Seeing this, of course, made sense of the ETS table going away, since that's tied to the process that starts it. Not a biggie, though -- I'm exploring storing config data for a library in ETS, to take lookups off the filesystem. If the process crashes, I can just re-read from disk ...--d
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-erlang+unsub...@googlegroups.com.
To post to this group, send email to lisp-flavoured-erlang@googlegroups.com.