[Vm-dev] Questions related to immutability in Cog

stephane ducasse stephane.ducasse at gmail.com
Wed Nov 11 10:31:16 UTC 2015

On 11 Nov 2015, at 11:03, Clément Bera <bera.clement at gmail.com> wrote:

> Thanks for your answers.
> The implementation implies:
> - adding support for the callback attemptToWrite: aValue atIndex: index which is partially done 
> - checking for immutability at each write (at:put:, bytecoded inst var access, instVarAt:put:, become: , ... ). both in the interpreter and jitted code
> - I guess adding 2 primitives to mark the object as immutable and mark it back as mutable.
> I believe it's not a lot of work. If no one has done that before May (a phd student was interested at some point, he may do it) I could try to supervise an intern on this task. When he finishes the implementation he could work in actually using the immutability in the image.

yes clement this would be good to see if seb can do it. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20151111/b58c2d8c/attachment.htm

More information about the Vm-dev mailing list