[Vm-dev] External Modules--two questions/observations
gettimothy at zoho.com
Sun Nov 10 16:40:58 UTC 2013
Superb, thank you.
This gives me confidence to develop on my linux 32-bit compat boot.
The OSProcess loads just as you say.
AiO and SSL fail, but the SSL is a known problem (which is why I need to learn this low-level stuff, so I can fix things like that.
---- On Sat, 09 Nov 2013 17:01:20 -0800 David T. Lewis<lewis at mail.msen.com> wrote ----
On Sat, Nov 09, 2013 at 04:03:42PM -0800, gettimothy wrote:
> I am systematically working through Eliot's Cog Blog :: Building a Cog Development Image checklist on both my 64 bit Linux box with 32 bit compat libs and a slow/old pure 32 bit linux box.
> I noticed that both Alien and VMMaker added and "activated" new plugins.
> 'IA32ABI VMMaker.oscog-eem.99 (i)' &lt;&lt; post alien
> 'SoundPlugin VMMaker-oscog.54 (i)' &lt;&lt;post alien
> 'UUIDPlugin VMMaker-oscog.47 (e)' &lt;&lt;post alien
> 'CroquetPlugin VMMaker-oscog.40 (i)' &lt;&lt;post VMMaker
> 'FloatMathPlugin VMMaker-oscog.40 (i)' &lt;&lt;post VMMaker
> 'JPEGReadWriter2Plugin VMMaker-oscog.40 (i)' &lt;&lt;post VMMaker
> Did not show any new plugins in either SmalltalkImage current listLoadedModules or listBuiltinModules.
> When I ran into this on my 64 bit box with the 32 bit compat libs, I thought it might be a library problem, however, now that I have done this on the pure 32 bit system, I dont know.
> Looking at SmalltalkImage, I did not see any method to LOAD a module. Is there one?
The normal way to load an external plugin is to call one of its primitives
and let the loader locate and load the plugin.
In your example, you have the UnixOSProcessPlugin built as an external plugin,
but you can see that it has not yet been loaded. One of the primitives in
that plugin is #primitiveGetPid, so if you were to write a method to call
that primitive, the plugin module would be loaded.
To illustrate, try adding the following method to some class.
<primitive: 'primitiveGetPid' module: 'UnixOSProcessPlugin'>
Now evaluate "MyClass myMethodThatUsesOSPP". Check listLoadedModules and
you should see that the plugin is now loaded.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev