Can folks please review carefully the replacement MiscPrimitivePlugin?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Can folks please review carefully the replacement MiscPrimitivePlugin?

Eliot Miranda-2
 
Hi All,

    find the first candidate replacement for MiscPrimitivePlugin's translated primitives.  The changes here are not simply cosmetic since the 1-relative indexing in the translated primitives version is clumsy, so I've rewritten to use 0-relative indexing.

_,,,^..^,,,_
best, Eliot

MiscPrimitivePlugin.st (18K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can folks please review carefully the replacement MiscPrimitivePlugin?

Eliot Miranda-2
 
and of course I spoke too soon.  Here's an updated version :-/

On Wed, Feb 21, 2018 at 3:06 PM, Eliot Miranda <[hidden email]> wrote:
Hi All,

    find the first candidate replacement for MiscPrimitivePlugin's translated primitives.  The changes here are not simply cosmetic since the 1-relative indexing in the translated primitives version is clumsy, so I've rewritten to use 0-relative indexing.

_,,,^..^,,,_
best, Eliot



--
_,,,^..^,,,_
best, Eliot

MiscPrimitivePlugin.st (19K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can folks please review carefully the replacement MiscPrimitivePlugin?

Eliot Miranda-2
In reply to this post by Eliot Miranda-2
 
Hi All,

    ignore this.  I'm simulating and finding several problems.  Let me get back to you when a simulation progresses without obvious errors.  For those that want to play, I've attached what I have so far...

On Wed, Feb 21, 2018 at 3:06 PM, Eliot Miranda <[hidden email]> wrote:
Hi All,

    find the first candidate replacement for MiscPrimitivePlugin's translated primitives.  The changes here are not simply cosmetic since the 1-relative indexing in the translated primitives version is clumsy, so I've rewritten to use 0-relative indexing.

_,,,^..^,,,_
best, Eliot



--
_,,,^..^,,,_
best, Eliot

MiscPrimitivePlugin.st (19K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can folks please review carefully the replacement MiscPrimitivePlugin?

David T. Lewis
 
Hi Eliot,

Attached is IncludedMethodsTest from (old trunk) VMMaker. This is something
I wrote to document the included methods in MiscPrimitivePlugin, so you can
run the tests in e.g. trunk Squeak as a check for presence of the primitives.

Note that some of the primitives are not yet covered by the test, see
#todoForADPCMCodecPlugin.

You may want to consider giving the reimplemented plugin a different class
name, but retain the module name. That would make it easier to keep a copy
of the old plugin (compiled external) that a user can swap in to the runtime
if any problems come up.

It might also be worth considering putting the string, sound, and codec
primitives into separate modules with appropriate names. That would be
harder to manage from the point of view updating primitive references in
the image, but the old MiscPrimitivePlugin is a rather haphazard collection
of functions and this might be a good time to clean that up too.

Dave



On Wed, Feb 21, 2018 at 06:18:53PM -0800, Eliot Miranda wrote:

>  
> Hi All,
>
>     ignore this.  I'm simulating and finding several problems.  Let me get
> back to you when a simulation progresses without obvious errors.  For those
> that want to play, I've attached what I have so far...
>
> On Wed, Feb 21, 2018 at 3:06 PM, Eliot Miranda <[hidden email]>
> wrote:
>
> > Hi All,
> >
> >     find the first candidate replacement for MiscPrimitivePlugin's
> > translated primitives.  The changes here are not simply cosmetic since the
> > 1-relative indexing in the translated primitives version is clumsy, so I've
> > rewritten to use 0-relative indexing.
> >
> > _,,,^..^,,,_
> > best, Eliot
> >
>
>
>
> --
> _,,,^..^,,,_
> best, Eliot


IncludedMethodsTest.st (13K) Download Attachment