I would not have thought I ever say that: lets have a new primitve (was: Re: [squeak-dev] The Trunk: System-cwp.660.mcz)

Colin Putney colin at wiresong.com
Sun Jan 12 18:52:01 UTC 2014


On Sun, Jan 12, 2014 at 12:47 PM, Tobias Pape <Das.Linux at gmx.de> wrote:


> I am not the person to shout “new primitives”, au contraire, I mostly favor
> moving stuff from the VM to the image, but in this instance—and clearly
> with
> seeing the different SqueakVM implementations—I think a new primitive is
> fair.
>

You know, this makes me wonder if we should just get rid of #allObjectsDo:
entirely. Anyone that wants to visit all the objects in the image can use
#someObject and #nextObject directly, and write the loop in a way that
makes sense for that use case. That also means we don't have problems on
older VMs because inlining the loop means we don't create a block context
every time we go through it.

Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140112/d3103096/attachment-0001.htm


More information about the Squeak-dev mailing list