[erlang-questions] Frames proposal

Loïc Hoguin <>
Sun Dec 30 04:24:54 CET 2012


On 12/29/2012 05:52 PM, Thomas Lindgren wrote:
>
>
>> ________________________________
>> From: Steve Davis <>
> ...
>> I'd like to add support for both the introduction of frames (and for the EEP 20 on "splitting atoms"). They appear to me to solve fairly pressing issues.
>
>
> Regarding atom garbage collection, I'd also recommend OTP to check if there's anything useful in my old paper, inventively named "Atom Garbage Collection", Erlang Workshop 2005. Give me a call if it's too obscure (as I recall, it didn't really set the world on fire).
>
> Two comments on EEP 20 (I looked at this one: http://www.erlang.org/eeps/eep-0020.html ):
>
> 1. EEP 20 doesn't mention handling of message passing or similar scenarios as far as I can see. Perhaps there should be an implementation study where someone could figure out what's the best policy. E.g., should local atoms be globalized when sent? Or should there be translation at sender and/or receiver? Or something else?
>
> 2. Towards the end, leaking global atoms is mentioned. This can in principle happen not only maliciously or by error, but also by upgrading your code sufficiently many times or in other situations where valid external data containing atoms arrives. So while using local atoms reduces the problem of running out of atom table, some way of collecting the global atoms would still be useful. The paper above is one proposal for this.

Anthony Ramine has done some work on local atoms which would be garbage 
collected. AFAIK it needs a few other patches to get in before that can 
happen though, and these weren't accepted for R16. :(

https://github.com/nox/otp/tree/eep20

-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu



More information about the erlang-questions mailing list