[squeak-dev] (Environment named: #Smalltalk) trap in 4.5

Tobias Pape Das.Linux at gmx.de
Sun May 18 20:56:54 UTC 2014


On 18.05.2014, at 22:51, Tobias Pape <Das.Linux at gmx.de> wrote:

> Hi and sorry for the late reply
> 
> On 02.05.2014, at 18:06, Chris Muller <asqueaker at gmail.com> wrote:
> 
>> Hi.  First, let me say, I really enjoy learning from you and sharing
>> my own limited knowledge whenever I can (that's why we're here!  :).
>> I'm not interested in "winning," I want Squeak to win.  If Colin
>> responds, I will do whatever he wants.  But we need to do _something_
>> because the image is pretty broken -- I am now finding CompiledMethods
>> with the wrong literal Global instances of Smalltalk=>Smalltalk in my
>> image (argh!).
>> 
>>>> May I ask why?
>>> 
>>> Gut feeling, primarily.
>>> First, I think symbols are the right thing to identify Environments, I think.
>>> They are symbolic representers (is this a word) for their namespaces.
>> 
>> Yes, I think using Symbols for names of Smalltalk elements (class
>> names, method selectors, and Environment names) is totally
>> appropriate.  :)
>> 
>>> And I think, when using symbols, IdentityDictionary comes naturally.
>> 
>> I'm interested in your (and others') gut's thoughts on the choice of
>> an IdentityDictionary.
>> 
>> Let me ask you, if you needed to map what you _knew_ would be a bunch
>> of SmallIntegers in the range of SmallInteger minVal to SmallInteger
>> maxVal, since SmallIntgers are immediate too, would you also want to
>> use an IdentityDictionary?
> 
> No, I would use an indexable structure like an array or possibly
> an ordered collection.

Correction: I misread you question.
I would probably go for an indirect addressing, possibly with
a sparse array as first thing.
  I dislike numbers as keys for either Dicts or identity dicts.

[…]

Best
	-Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1625 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140518/2e9974cf/signature.pgp


More information about the Squeak-dev mailing list