Squeak/Cuis String differences (was Re: [Cuis] [squeak-dev] The Inbox: Installer-Core-fbs.366.mcz)

Frank Shearar frank.shearar at gmail.com
Tue Mar 26 13:26:24 UTC 2013


On 26 March 2013 13:22, Nicolas Cellier
<nicolas.cellier.aka.nice at gmail.com> wrote:
> Cuis did chose to not support unicode for simplicity and stick to
> 8-bits chars (CP-1252 ? iso-8859-L1 ? iso-8859-L15 ?).
> Squeak/Pharo cannot afford this choice.
> So there will be a few differences here and there.

OK, that's useful information. Indeed, I wouldn't want anything other
than Unicode anywhere.

> For line-ending, Cuis could provide a simplified version of nextLine
> linesDo: etc... based only on CR
> For the displaying of LF, CR, or any other non printable ASCII that
> should be generalized and an option available in Squeak too.

Yes, most of the differences were around the names of newline-making
methods, except for something like #generallyAcceptableInSelector,
which I had no idea how to implement.

frank

> Nicolas
>
> 2013/3/26 Frank Shearar <frank.shearar at gmail.com>:
>> That's great news, Hannes!
>>
>> Obviously I really wouldn't mind seeing String/Character shims in particular :)
>>
>> frank
>>
>> On 26 March 2013 09:34, H. Hirzel <hannes.hirzel at gmail.com> wrote:
>>> Yes, a document that summarizes the changes between Cuis and Squeak,
>>> is something we need soon. Cuis has advanced very nicely recently and
>>> at least for certain fields of application  it can be considered the
>>> leading Squeak variant when comparing Squeak, Pharo and Cuis.
>>>
>>> Regarding compatibility between Squeak and Cuis. What I have seen so
>>> far is that there are not all that many issues regarding non-GUI
>>> classes. CR/LF is an issue. I have started doing a Cuis-compatibility
>>> layer for Squeak. So far it is quite thin. I.e. I manage to develop in
>>> Squeak and file in the mcz file into Cuis 4.1. As long as I do not use
>>> GUI classes it is fine.
>>>
>>> More on this later.
>>>
>>> --Hannes
>>>
>>> On 3/26/13, Frank Shearar <frank.shearar at gmail.com> wrote:
>>>> Hi Ken,
>>>>
>>>> Installer is a Squeak utility for loading code. It can install code
>>>> from changesets and other things, and I recently extended it to allow
>>>> it to install code hosted on GitHub. A wrinkle was that GitHub only
>>>> uses SSL, and for the current Squeak VMs that entails additional setup
>>>> (an additional plugin).
>>>>
>>>> Seeing as I'm interested in your work, I used your code as a guinea pig :).
>>>>
>>>> I didn't expect all the tests to fail - I _am_ loading Cuis code into
>>>> Squeak, after all. I was just surprised to see _all_ the tests fail,
>>>> and upon investigation found a number of places where Cuis Strings and
>>>> Characters use non-Squeak methods. Again, this isn't unexpected. So I
>>>> wondered, before I delve too deeply into the drift, if perhaps
>>>> somewhere there was a document that summarised the changes.
>>>>
>>>> frank
>>>>
>>>> On 26 March 2013 04:18, Ken Dickey <Ken.Dickey at whidbey.com> wrote:
>>>>> On Mon, 25 Mar 2013 13:48:41 +0000
>>>>> Frank Shearar <frank.shearar at gmail.com> wrote:
>>>>>
>>>>> Frank,
>>>>>
>>>>> Sorry, I have not been following this discussion and am unsure of the
>>>>> context.
>>>>>
>>>>> Tests fail for mcz, SSL, GitHub, Cuis-Ropes ??
>>>>>
>>>>> With respect to the latter, I basically ported most of the Cuis Strings
>>>>> API into Ropes.  I have not looked at Squeak in some time, so can't really
>>>>> comment on code drift.
>>>>>
>>>>> Cheers,
>>>>> -KenD
>>>>> =========
>>>>>> > The mcz is missing something important, namely
>>>>>> >
>>>>>> >     Installer class >> github
>>>>>> >         ^ InstallerGitHub new
>>>>>> >
>>>>>> > but with that in place, and with an SSL plugin installed (the
>>>>>> > published binaries are 32 bit only; they don't work in an Interpreter
>>>>>> > built on a 64 bit machine), you can:
>>>>>> >
>>>>>> > (Installer github
>>>>>> >     user: 'KenDickey' repository: 'Cuis-Ropes) install
>>>>>> >
>>>>>> > frank
>>>>>>
>>>>>> I should add that in Squeak most of the tests fail. This is likely
>>>>>> because of drift between Cuis' and Squeak's String API. Is it possible
>>>>>> to find a document somewhere summarising the changes? If so, I'll
>>>>>> craft a Cuis-Compatibility package for Squeak.
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> frank
>>>>>>
>>>>>> _______________________________________________
>>>>>> Cuis mailing list
>>>>>> Cuis at jvuletich.org
>>>>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>>>
>>>>>
>>>>> --
>>>>> Ken [dot] Dickey [at] whidbey [dot] com
>>>>
>>>> _______________________________________________
>>>> Cuis mailing list
>>>> Cuis at jvuletich.org
>>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>>
>>>
>>> _______________________________________________
>>> Cuis mailing list
>>> Cuis at jvuletich.org
>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>
>


More information about the Squeak-dev mailing list