[squeak-dev] Re: Migrating Complex in a separate package

Juan Vuletich juan at jvuletich.org
Wed Oct 12 01:50:10 UTC 2011


Nicolas Cellier wrote:
> Thanks all for your answers.
> Too many words for a single post, so I compiled a few comments and
> Complex implementation reflections in this blog entry:
> http://smallissimo.blogspot.com/2011/10/about-complex-in-squeak.html
>
> I'm not satisfied with current status because we are mixing two paradigms.
>
> Note that putting Complex outside the image is also an easy solution
> for playing with paradigms without causing undesired side effects to
> Complex-unaware-Applications.
> But maybe it's too easy to divert like this, and we should better
> think harder ;)
>
> Nicolas
>   

Thanks! Good analysis, hard decision.

In any case, I don't think it is needed to have Complex as an external 
package just for the automatic conversion issue. It is enough to have a 
preference.

Cheers,
Juan Vuletich

> 2011/10/11 Ricardo Moran <richi.moran at gmail.com>:
>   
>> On Tue, Oct 11, 2011 at 9:51 AM, Juan Vuletich <juan at jvuletich.org> wrote:
>>     
>>> Juan Vuletich wrote:
>>>       
>>>> Hi Folks,
>>>>
>>>> Rodney Polkinghorne wrote:
>>>>         
>>>>> ...
>>>>>
>>>>> extra fact:
>>>>> - Complex is absent from Cuis
>>>>>
>>>>>           
>>>> Not for long :) . I have already integrated it and will be in next Cuis
>>>> release. I think Complex belongs in the base system.
>>>>         
>>> Oh, forgot to say. I also think that
>>>   -1 sqrt = 1i
>>> should be true, and I'm working on it (together with some other tweaks to
>>> #sqrt and friends I'll publish when finished).
>>>       
>> +1. I was just about to comment on that one :)
>> It always bothered me that "-1 sqrt" wouldn't answer "1i". It seems like an
>> incomplete implementation, being that we have the class Complex.
>> At the time I "fixed" it by just relying on the fact that the sqrt primitive
>> fails when the receiver is negative, but that solution seems very hackish. I
>> wonder what your solution looks like? :)
>> Cheers,
>> Richo
>>
>>     
>>> Thoughts?
>>>
>>> Cheers,
>>> Juan Vuletich
>>>
>>>       
>>
>>
>>
>>     
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1410 / Virus Database: 1522/3943 - Release Date: 10/07/11
>
>
>
>   




More information about the Squeak-dev mailing list