<br><br><div class="gmail_quote">On Mon, May 2, 2011 at 12:39 PM, Igor Stasenko <span dir="ltr"><<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On 2 May 2011 18:11, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>
><br>
> No. Instead certain compact incomes should be mandated. It is absurd to throw away performance and expend effort supporting complexity for flexibility that is essentially never used and in maintaining a scheme that is only partially effective.<br>
><br>
</div>compact classes are pain in the ...<br>
so i would not cry if we get rid of them. but right now i see that<br>
potentially i could break things if i start replacing one<br>
compact class with another.<br></blockquote><div><br></div><div>Doctor, doctor, it hurts when I...</div><div>Doctor: don't do that.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
<br>
> Eliot (phone)<br>
><br>
> On May 2, 2011, at 7:20 AM, Igor Stasenko <<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>> wrote:<br>
><br>
>><br>
>> On 2 May 2011 15:46, Igor Stasenko <<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>> wrote:<br>
>>> Btw,<br>
>>><br>
>>> i don't like this code:<br>
>>><br>
>>> self assertClassOf: floatOrInt<br>
>>> is: (objectMemory splObj: ClassFloat)<br>
>>> compactClassIndex: ClassFloatCompactIndex.<br>
>>><br>
>><br>
>> btw, Cog is suspectible to have bugs if during run time you will<br>
>> change a class to be no longer compact or<br>
>> (and then installing a different class to be compact on same compact<br>
>> classes array index as before).<br>
>><br>
>> To avoid that, there should be a primitive which should refresh<br>
>> compact indices for most used classes,<br>
>> to avoid bugs.<br>
>><br>
>> (The StackInterpreter>>checkAssumedCompactClasses should be run each<br>
>> time when some class become (un)compact).<br>
>><br>
>> --<br>
>> Best regards,<br>
>> Igor Stasenko AKA sig.<br>
><br>
<br>
<br>
<br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
</div></div></blockquote></div><br>