> On 12-03-2018, at 7:38 AM, Eliot Miranda <[hidden email]> 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; [hidden email]; http://www.rowledge.org/tim Nostalgia: The good old days multiplied by a bad memory... |
Hi Eliot Your answer is fine. It directs people to the place where to get the information. See updated http://wiki.squeak.org/squeak/2121 Thank you Hannes On 3/12/18, Eliot Miranda <[hidden email]> wrote: > > 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 >> > |
In reply to this post by timrowledge
And perhaps also posting to SqueakMap... Ken G. Brown > On Mar 12, 2018, at 11:49, tim Rowledge <[hidden email]> wrote: > > > > >> On 12-03-2018, at 7:38 AM, Eliot Miranda <[hidden email]> 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; [hidden email]; http://www.rowledge.org/tim > Nostalgia: The good old days multiplied by a bad memory... > > |
Free forum by Nabble | Edit this page |