Hi Guille--

> > > For your information guille produced pharo images of 11k for
> > > simple addition...
>
> > Why so large? The simple addition image I made is 1k.
>
> Haha, this already looks like a competition. I don't want to compete
> ^^.

     Oh, that wasn't my intention. :)  I really wanted to know what
objects are in there.

> Of course, for a simple addition you just need
> - a special objects array
> - a processor
> - a process
> - a context
> - the method for the context doing the addition
> - some SmallInteger class for the VM to check
>
> And voilá. That should be even smaller than 1K.

     By my count, you need fifteen objects. I wrote a summary of them
(including a visualization) at [1].

> In any case, the image just doing an addition is just the example that
> pushes the limits of *my* particular tailoring framework... But
> afterwards it has no other real usage :).

     Indeed so. The value of making it is showing that you can account
for each and every bit in the result, and that's just easiest to do if
you go for the least amount of code.

> As Chris says, what the minimal kernel should ensure is that you can
> grow it.

     Exactly, the definition of "minimal" depends on your intended use.


     thanks,

-C

[1] http://netjam.org/context/smallest

--
Craig Latta
netjam.org
+31   6 2757 7177 (SMS ok)
+ 1 415  287 3547 (no SMS)


Reply via email to