[Cuis-dev] VectorEnginePlugin (was Re: UK Smalltalk User Group meeting - Wednesday March 31st)

Juan Vuletich juan at jvuletich.org
Fri Mar 26 09:36:28 PDT 2021


Hi Dave,

On 3/23/2021 4:53 PM, David T. Lewis via Cuis-dev wrote:
> Hi Juan,
>
> I loaded VectorEnginePlugin.pck.st into the Squeak VMMaker image that I
> use for generating classic interpreter VMs. The package loaded without
> modification to the code, and I was able to easily generate new sources,
> including VectorEnginePlugin.c.
>
> The VM with new plugin compiled without problems on the first try, and there
> are no compiler warnings.
>
> I used this VM with a Cuis5.0-4526-v3.image, and followed your instructions
> up through A - 9). It all worked without issue, and performance when rotating
> or scaling M3Exp01Morph seems very impressive. This is running on an old
> but still fast Intel 64-bit laptop with Ubuntu Linux.
>
> I did find problems at step 15), with errors to the console and a hung image.
> I don't have time to look at it further right now, but my guess is that
> it may be something related to running the V3 image, which handles integers
> and floats differently than Spur.

I think I found (and fixed) this problem. The text primitive answers a 
Float. And I was creating the Float instance from a 32 bit C float. It 
seems this works in OpenSmalltalk / Spur, but not in your setup. I fixed 
it anyway, creating an additional C double variable. I'm pretty sure 
this fixes the problem.

I pushed new updates and updated all the files at Dropbox. Please see 
separate email.

> I am really impressed with how well the plugin worked on the very first
> try, with no effort or changes from me whatsoever.
>
> Congratulations and great work!
>
> Dave
>

Thanks,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich



More information about the Cuis-dev mailing list