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

tim Rowledge tim at rowledge.org
Mon Mar 12 17:49:13 UTC 2018



> On 12-03-2018, at 7:38 AM, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> [snip]

> 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 shouldn't be too terribly difficult to add a VMMaker method to dig out the name of every entry in the primitive table and write it suitably formatted for a swiki page. Adding the main comment (however one chose to define that!) for each relevant method would be nice too.

For extra credit, coming up with an easily followable link to each primitive would be nice (obviously only needed outside the image because we have actual useful tools) so that it could jump to a suitable place on the swiki (if one wanted to have loads of code there) or on github (if there is a way to link to a particular part of a file). Having cleaned out hundreds of swiki pages with dead bits of vm code etc, I'd prefer we not start adding them back.

It wouldn't be a huge extension to add the plugin primitives to the listings/linkages.

Final bit of cleverness would be to check the current content of the swiki page and update if needed


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Nostalgia:  The good old days multiplied by a bad memory...




More information about the Vm-dev mailing list