[Pharo-dev] hello

Max Leske maxleske at gmail.com
Mon Oct 12 08:12:21 EDT 2015


> On 12 Oct 2015, at 13:53, Sebastián Krynski <skrynski at gmail.com> wrote:
> 
> Hello my name is Sebastián Krynski from Buenos Aires, Argentina.

Hi Sebastián, welcome!

> Just writing to let you know that I'm starting to work on adding an atomic swap operator in Pharo , guaranteed not to be interrupted by the VM. The operator will be used this way:
> 
> a :=: b
> 
> meaning 'swap variable a with variable b'.
> In order to do this I will be modifying the VM and the Compiler .

Sound cool! But isn’t that the same as

a become: b

? I even think that

tmp := a.
a := b.
b := tmp

is equivalent, since the VM only interrupts message sends, and in this case only byte code would be generated?

That’s not my area of expertise, so please correct me.

Cheers,
Max

> 
> I'm working under the direction of INRIA and Gabriela Arévalo.
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20151012/722169f9/attachment-0002.html>


More information about the Pharo-dev mailing list