[Vm-dev] Questions related to immutability in Cog
Tudor Girba
tudor at tudorgirba.com
Wed Nov 11 10:49:49 UTC 2015
Hi,
> On Nov 11, 2015, at 11:31 AM, stephane ducasse <stephane.ducasse at gmail.com> wrote:
>
>
> 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.
The way I see it, this would be a significant contribution.
Cheers,
Doru
>
--
www.tudorgirba.com
"We cannot reach the flow of things unless we let go."
More information about the Vm-dev
mailing list