[Vm-dev] Primitive 126 | Its problems and its future :-)

Juan Vuletich JuanVuletich at zoho.com
Thu Apr 28 12:05:43 UTC 2022

Hi Marcel,

The check for 'MacOS' is an acceptable solution for Cuis.

But I just did a quick test with Squeak 5.3, running on the new VM. If I 
comment the primitive 126 call in #primitiveDeferUpdates: , to simulate 
the effect of the primitive failing (and resize the squeak window to 
force recreation of Display, Canvas, etc), then the "invisible dragged 
window" problem is fixed.

As I said before, this is also a good solution for Cuis. So, my 
suggestion, is to simply make primitive 126 fail on MacOs.

This wouldn't affect older images checking for the platform (as you say, 
for a performance improvement), but would fix older "untweaked" images, 
solving any concern about strict back compatibility for the VM.


On 4/28/2022 4:28 AM, Marcel Taeumel wrote:
> Hi Juan --
> > If primitive 126 is made to fail, Cuis will be happy again.
> > Otherwise we'd need another way for the image to know.
> Squeak's current approach is to just check for being on
> the macOS platform, which also works for older VMs
> (because the image-side composition buffer fixes some
> of the performance regressions but not that 60 FPS cap).
> Smalltalk platformName = 'Mac OS'.
> Primitive 126 could be improved if we would attach
> platform-specific code to it. Might be a "true" for most
> backends. I will open issues in the OSVM repo for this.
> Best,
> Marcel

Juan Vuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20220428/0cc9396d/attachment.html>

More information about the Vm-dev mailing list