[Documentation] Where do I find a list of primitives implemented by the Squeak VM / Pharo VM?

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

[Documentation] Where do I find a list of primitives implemented by the Squeak VM / Pharo VM?

Hannes Hirzel
Hello

Where do I find a list of primitives implemented by the Squeak VM / Pharo VM?

I assume most of the primitives are the same.

I found some pages [1] and [2] related to primitives on the Swiki.

What I am looking for is an updated

    'List of primitives of the Squeak VM'

It might just contain a reference to a source file in a repo.

It should answer for example: 'what does primitive 121 implement?'


Regards

Hannes

Reply | Threaded
Open this post in threaded view
|

Re: [Documentation] Where do I find a list of primitives implemented by the Squeak VM / Pharo VM?

Hannes Hirzel
[1] Which methods use primitives?
http://wiki.squeak.org/squeak/367

SystemNavigation new browseAllSelect:
[:method | method primitive > 0
and:
[(method primitive between: 256 and: 519)
not]]

[2] Graphics-Primitive
http://wiki.squeak.org/squeak/4017  (empty page)

On 3/12/18, H. Hirzel <[hidden email]> wrote:

> Hello
>
> Where do I find a list of primitives implemented by the Squeak VM / Pharo
> VM?
>
> I assume most of the primitives are the same.
>
> I found some pages [1] and [2] related to primitives on the Swiki.
>
> What I am looking for is an updated
>
>     'List of primitives of the Squeak VM'
>
> It might just contain a reference to a source file in a repo.
>
> It should answer for example: 'what does primitive 121 implement?'
>
>
> Regards
>
> Hannes
>

Reply | Threaded
Open this post in threaded view
|

Re: [Documentation] Where do I find a list of primitives implemented by the Squeak VM / Pharo VM?

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

> On Mar 12, 2018, at 5:42 AM, H. Hirzel <[hidden email]> wrote:
>
> Hello
>
> Where do I find a list of primitives implemented by the Squeak VM / Pharo VM?
>
> I assume most of the primitives are the same.
>
> I found some pages [1] and [2] related to primitives on the Swiki.
>
> What I am looking for is an updated
>
>    'List of primitives of the Squeak VM'
>
> It might just contain a reference to a source file in a repo.

For the Cog VMs the Bible (actually the implementation) is StackInterpreter class>>#initializePrimitiveTable in the VMMaker.oscog package in source.squeak.org/VMMaker.  It would be great to add a method to the package that generates the Swiki page instead of having to write it manually.

>
> It should answer for example: 'what does primitive 121 implement?'
>
>
> Regards
>
> Hannes
>