[Vm-dev] Re: Immutability, newspeak (was: Vm-dev post from jbaptiste.arnaud@gmail.com requires approval)

Eliot Miranda eliot.miranda at gmail.com
Wed Jun 9 19:30:06 UTC 2010


On Wed, Jun 9, 2010 at 11:51 AM, Andreas Raab <andreas.raab at gmx.de> wrote:

>
> On 6/8/2010 7:41 AM, David T. Lewis wrote:
>
>> What do the VM developers think with respect adopting the VM changes?
>> The immutability bit is a scarce resource. Is it OK to allocate it
>> for this purpose or are there likely to be other projects interested
>> in using it for other reasons?
>>
>
> Oh, and one thing that I'm just realizing is that by far the biggest impact
> of immutability is in primitives and plugins. All primitives in all plugins
> must be rewritten to test for mutability of the objects they store into
> before this can work reliably. Ouch.
>

Ouch indeed.  One can at least put a check in interpreterProxy to catch
attempts and cause primitives to fail.  It won't be pretty but will serve as
lint for the plugins.

Off the top of your head which plugins are likely to do writes?  And which
of those are likely to do writes to immutables?


>
> Cheers,
>  - Andreas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20100609/38872174/attachment.htm


More information about the Vm-dev mailing list