ProfStef port fix for 4.1 (was Re: Hi)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

ProfStef port fix for 4.1 (was Re: Hi)

Paolo-2
Happy New Year!! Just back from holiday and lots of messages to read!
I should have fixes for ProfStef port I can upload but I suspect the fix is too ugly and not safe : what is currently failing in 4.1 is the World global instance that appears to be missing, I am willing to find a better solution than "PasteUpMorph allInstances at: 1" .
Can someone suggest a more appropriate approach to get the current World instance in 4.1?
Many thanks

Paolo

Il giorno 28/mag/2012, alle ore 01:10, Germán Arduino <[hidden email]> ha scritto:

> Nice job!
>
> And welcome to Cuis world :)
>
> 2012/5/27 Paolo <[hidden email]>:
>> Hi all, I am a curious hobby coder that fell in love with smalltalk a while ago. I find Cuis the preferred smalltalk for learning and exploration because of its size and good looking gui ... I love Themes ;-)
>> Despite of the Cuis code quality I have still to understand Cuis Morphic therefore I have started to port ProfStef and published the packages in
>>
>> https://github.com/pmon/Cuis-ProfStef
>>
>> It works and pass all tests but code can be better (it is always the case with my code!) so please do not hesitate to criticize.
>>
>> Paolo
>> _______________________________________________
>> Cuis mailing list
>> [hidden email]
>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>
> _______________________________________________
> Cuis mailing list
> [hidden email]
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org


_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: ProfStef port fix for 4.1 (was Re: Hi)

Hannes Hirzel
On 1/1/13, Paolo <[hidden email]> wrote:
> Happy New Year!!

The same to you.
Thank you for the PetitParser port 7 months ago on
https://github.com/pmon/Cuis-PetitParser.

On which version of Lukas is that based?

--Hannes


Just back from holiday and lots of messages to read!

> I should have fixes for ProfStef port I can upload but I suspect the fix is
> too ugly and not safe : what is currently failing in 4.1 is the World global
> instance that appears to be missing, I am willing to find a better solution
> than "PasteUpMorph allInstances at: 1" .
> Can someone suggest a more appropriate approach to get the current World
> instance in 4.1?
> Many thanks
>
> Paolo
>
> Il giorno 28/mag/2012, alle ore 01:10, Germán Arduino <[hidden email]>
> ha scritto:
>
>> Nice job!
>>
>> And welcome to Cuis world :)
>>
>> 2012/5/27 Paolo <[hidden email]>:
>>> Hi all, I am a curious hobby coder that fell in love with smalltalk a
>>> while ago. I find Cuis the preferred smalltalk for learning and
>>> exploration because of its size and good looking gui ... I love Themes
>>> ;-)
>>> Despite of the Cuis code quality I have still to understand Cuis Morphic
>>> therefore I have started to port ProfStef and published the packages in
>>>
>>> https://github.com/pmon/Cuis-ProfStef
>>>
>>> It works and pass all tests but code can be better (it is always the case
>>> with my code!) so please do not hesitate to criticize.
>>>
>>> Paolo
>>> _______________________________________________
>>> Cuis mailing list
>>> [hidden email]
>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>
>> _______________________________________________
>> Cuis mailing list
>> [hidden email]
>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>
>
> _______________________________________________
> Cuis mailing list
> [hidden email]
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>

_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: ProfStef port fix for 4.1 (was Re: Hi)

Juan Vuletich-4
In reply to this post by Paolo-2
Hi Paolo,

Paolo wrote:
> Happy New Year!! Just back from holiday and lots of messages to read!
>  

Yes, there's a lot of activity and discussion recently :)

> I should have fixes for ProfStef port I can upload but I suspect the fix is too ugly and not safe : what is currently failing in 4.1 is the World global instance that appears to be missing, I am willing to find a better solution than "PasteUpMorph allInstances at: 1" .
> Can someone suggest a more appropriate approach to get the current World instance in 4.1?
> Many thanks
>
> Paolo
>  

The problem with the global is that it means there can only be a World.
I'd like to raise that restriction. Maybe, some time, we'll have various
worlds, on different Displays or host windows, or even on different
computers on a network.

So, what to do when you just need the world? In Cuis 4.1, any morph that
is in a world can answer #world. It will be nil if the morph is not in
any world. In addition, any object can answer #runningWorld. This method
answers a world _only_ if called in the same process that is running the
Morphic world. Both this accessors will work in an image with multiple
worlds (provided that each world is run by a different process). If none
of them serves you, then we need something else. Ideas are welcome!

Cheers,
Juan Vuletich

> Il giorno 28/mag/2012, alle ore 01:10, Germán Arduino <[hidden email]> ha scritto:
>
>  
>> Nice job!
>>
>> And welcome to Cuis world :)
>>
>> 2012/5/27 Paolo <[hidden email]>:
>>    
>>> Hi all, I am a curious hobby coder that fell in love with smalltalk a while ago. I find Cuis the preferred smalltalk for learning and exploration because of its size and good looking gui ... I love Themes ;-)
>>> Despite of the Cuis code quality I have still to understand Cuis Morphic therefore I have started to port ProfStef and published the packages in
>>>
>>> https://github.com/pmon/Cuis-ProfStef
>>>
>>> It works and pass all tests but code can be better (it is always the case with my code!) so please do not hesitate to criticize.
>>>
>>> Paolo
>>> _______________________________________________
>>> Cuis mailing list
>>> [hidden email]
>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>      
>> _______________________________________________
>> Cuis mailing list
>> [hidden email]
>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>    
>
>
> _______________________________________________
> Cuis mailing list
> [hidden email]
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>
>
>  


_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: ProfStef port fix for 4.1 (was Re: Hi)

Paolo-2
Thank you Juan, I will try your suggestions.
ciao

Paolo

Il giorno 02/gen/2013, alle ore 14:58, Juan Vuletich <[hidden email]> ha scritto:

> Hi Paolo,
>
> Paolo wrote:
>> Happy New Year!! Just back from holiday and lots of messages to read!  
>
> Yes, there's a lot of activity and discussion recently :)
>
>> I should have fixes for ProfStef port I can upload but I suspect the fix is too ugly and not safe : what is currently failing in 4.1 is the World global instance that appears to be missing, I am willing to find a better solution than "PasteUpMorph allInstances at: 1" .
>> Can someone suggest a more appropriate approach to get the current World instance in 4.1?
>> Many thanks
>>
>> Paolo
>>  
>
> The problem with the global is that it means there can only be a World. I'd like to raise that restriction. Maybe, some time, we'll have various worlds, on different Displays or host windows, or even on different computers on a network.
>
> So, what to do when you just need the world? In Cuis 4.1, any morph that is in a world can answer #world. It will be nil if the morph is not in any world. In addition, any object can answer #runningWorld. This method answers a world _only_ if called in the same process that is running the Morphic world. Both this accessors will work in an image with multiple worlds (provided that each world is run by a different process). If none of them serves you, then we need something else. Ideas are welcome!
>
> Cheers,
> Juan Vuletich
>
>> Il giorno 28/mag/2012, alle ore 01:10, Germán Arduino <[hidden email]> ha scritto:
>>
>>  
>>> Nice job!
>>>
>>> And welcome to Cuis world :)
>>>
>>> 2012/5/27 Paolo <[hidden email]>:
>>>    
>>>> Hi all, I am a curious hobby coder that fell in love with smalltalk a while ago. I find Cuis the preferred smalltalk for learning and exploration because of its size and good looking gui ... I love Themes ;-)
>>>> Despite of the Cuis code quality I have still to understand Cuis Morphic therefore I have started to port ProfStef and published the packages in
>>>>
>>>> https://github.com/pmon/Cuis-ProfStef
>>>>
>>>> It works and pass all tests but code can be better (it is always the case with my code!) so please do not hesitate to criticize.
>>>>
>>>> Paolo
>>>> _______________________________________________
>>>> Cuis mailing list
>>>> [hidden email]
>>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>>      
>>> _______________________________________________
>>> Cuis mailing list
>>> [hidden email]
>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>    
>>
>>
>> _______________________________________________
>> Cuis mailing list
>> [hidden email]
>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>
>>
>>  
>
>
> _______________________________________________
> Cuis mailing list
> [hidden email]
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org


_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: ProfStef port fix for 4.1 (was Re: Hi)

Paolo-2
In reply to this post by Hannes Hirzel
Hannes,

I am sorry but I lost the original files I used to port the code. I have used the code in Lukas Renggli squeak source http://source.lukas-renggli.ch/ , I am pretty sure about this.
I remember the fixes were simple, mostly related to the different cr and lf constants used between squeak and cuis maybe we can find a way to automate the porting of the source project.
I will look into this option and I will get back to you.

Paolo

Il giorno 02/gen/2013, alle ore 08:21, H. Hirzel <[hidden email]> ha scritto:

> On 1/1/13, Paolo <[hidden email]> wrote:
>> Happy New Year!!
>
> The same to you.
> Thank you for the PetitParser port 7 months ago on
> https://github.com/pmon/Cuis-PetitParser.
>
> On which version of Lukas is that based?
>
> --Hannes
>
>
> Just back from holiday and lots of messages to read!
>> I should have fixes for ProfStef port I can upload but I suspect the fix is
>> too ugly and not safe : what is currently failing in 4.1 is the World global
>> instance that appears to be missing, I am willing to find a better solution
>> than "PasteUpMorph allInstances at: 1" .
>> Can someone suggest a more appropriate approach to get the current World
>> instance in 4.1?
>> Many thanks
>>
>> Paolo
>>
>> Il giorno 28/mag/2012, alle ore 01:10, Germán Arduino <[hidden email]>
>> ha scritto:
>>
>>> Nice job!
>>>
>>> And welcome to Cuis world :)
>>>
>>> 2012/5/27 Paolo <[hidden email]>:
>>>> Hi all, I am a curious hobby coder that fell in love with smalltalk a
>>>> while ago. I find Cuis the preferred smalltalk for learning and
>>>> exploration because of its size and good looking gui ... I love Themes
>>>> ;-)
>>>> Despite of the Cuis code quality I have still to understand Cuis Morphic
>>>> therefore I have started to port ProfStef and published the packages in
>>>>
>>>> https://github.com/pmon/Cuis-ProfStef
>>>>
>>>> It works and pass all tests but code can be better (it is always the case
>>>> with my code!) so please do not hesitate to criticize.
>>>>
>>>> Paolo
>>>> _______________________________________________
>>>> Cuis mailing list
>>>> [hidden email]
>>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>
>>> _______________________________________________
>>> Cuis mailing list
>>> [hidden email]
>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>
>>
>> _______________________________________________
>> Cuis mailing list
>> [hidden email]
>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>
>
> _______________________________________________
> Cuis mailing list
> [hidden email]
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org


_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: ProfStef port fix for 4.1 (was Re: Hi)

garduino
Hi Paolo:

Just a comment. To make easy to port packages from other Smalltalk's (aka Pharo and Squeak) I did a package of compatibility: https://github.com/garduino/Cuis-CompatibilityWithOtherSmalltalks

A lot of things as cr, crlf, crlfcrlf and so on are already solved.

Feel free to use, forke and improve it.


-- 
Sincerely,
Germán Arduino
about.me/garduino



2013/1/7 Paolo <[hidden email]>
Hannes,

I am sorry but I lost the original files I used to port the code. I have used the code in Lukas Renggli squeak source http://source.lukas-renggli.ch/ , I am pretty sure about this.
I remember the fixes were simple, mostly related to the different cr and lf constants used between squeak and cuis maybe we can find a way to automate the porting of the source project.
I will look into this option and I will get back to you.

Paolo

Il giorno 02/gen/2013, alle ore 08:21, H. Hirzel <[hidden email]> ha scritto:

> On 1/1/13, Paolo <[hidden email]> wrote:
>> Happy New Year!!
>
> The same to you.
> Thank you for the PetitParser port 7 months ago on
> https://github.com/pmon/Cuis-PetitParser.
>
> On which version of Lukas is that based?
>
> --Hannes
>
>
> Just back from holiday and lots of messages to read!
>> I should have fixes for ProfStef port I can upload but I suspect the fix is
>> too ugly and not safe : what is currently failing in 4.1 is the World global
>> instance that appears to be missing, I am willing to find a better solution
>> than "PasteUpMorph allInstances at: 1" .
>> Can someone suggest a more appropriate approach to get the current World
>> instance in 4.1?
>> Many thanks
>>
>> Paolo
>>
>> Il giorno 28/mag/2012, alle ore 01:10, Germán Arduino <[hidden email]>
>> ha scritto:
>>
>>> Nice job!
>>>
>>> And welcome to Cuis world :)
>>>
>>> 2012/5/27 Paolo <[hidden email]>:
>>>> Hi all, I am a curious hobby coder that fell in love with smalltalk a
>>>> while ago. I find Cuis the preferred smalltalk for learning and
>>>> exploration because of its size and good looking gui ... I love Themes
>>>> ;-)
>>>> Despite of the Cuis code quality I have still to understand Cuis Morphic
>>>> therefore I have started to port ProfStef and published the packages in
>>>>
>>>> https://github.com/pmon/Cuis-ProfStef
>>>>
>>>> It works and pass all tests but code can be better (it is always the case
>>>> with my code!) so please do not hesitate to criticize.
>>>>
>>>> Paolo
>>>> _______________________________________________
>>>> Cuis mailing list
>>>> [hidden email]
>>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>
>>> _______________________________________________
>>> Cuis mailing list
>>> [hidden email]
>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>
>>
>> _______________________________________________
>> Cuis mailing list
>> [hidden email]
>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>
>
> _______________________________________________
> Cuis mailing list
> [hidden email]
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org


_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org





_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: ProfStef port fix for 4.1 (was Re: Hi)

Hannes Hirzel
In reply to this post by Paolo-2
On 1/7/13, Paolo <[hidden email]> wrote:

> Hannes,
>
> I am sorry but I lost the original files I used to port the code. I have
> used the code in Lukas Renggli squeak source http://source.lukas-renggli.ch/
> , I am pretty sure about this.
> I remember the fixes were simple, mostly related to the different cr and lf
> constants used between squeak and cuis maybe we can find a way to automate
> the porting of the source project.
> I will look into this option and I will get back to you.
>
> Paolo

That is fine, thank you. In the meantime I suggest that you just add a
note in the README.md file that the code came from
    http://source.lukas-renggli.ch/

--Hannes

> Il giorno 02/gen/2013, alle ore 08:21, H. Hirzel <[hidden email]>
> ha scritto:
>
>> On 1/1/13, Paolo <[hidden email]> wrote:
>>> Happy New Year!!
>>
>> The same to you.
>> Thank you for the PetitParser port 7 months ago on
>> https://github.com/pmon/Cuis-PetitParser.
>>
>> On which version of Lukas is that based?
>>
>> --Hannes
>>
>>
>> Just back from holiday and lots of messages to read!
>>> I should have fixes for ProfStef port I can upload but I suspect the fix
>>> is
>>> too ugly and not safe : what is currently failing in 4.1 is the World
>>> global
>>> instance that appears to be missing, I am willing to find a better
>>> solution
>>> than "PasteUpMorph allInstances at: 1" .
>>> Can someone suggest a more appropriate approach to get the current World
>>> instance in 4.1?
>>> Many thanks
>>>
>>> Paolo
>>>
>>> Il giorno 28/mag/2012, alle ore 01:10, Germán Arduino
>>> <[hidden email]>
>>> ha scritto:
>>>
>>>> Nice job!
>>>>
>>>> And welcome to Cuis world :)
>>>>
>>>> 2012/5/27 Paolo <[hidden email]>:
>>>>> Hi all, I am a curious hobby coder that fell in love with smalltalk a
>>>>> while ago. I find Cuis the preferred smalltalk for learning and
>>>>> exploration because of its size and good looking gui ... I love Themes
>>>>> ;-)
>>>>> Despite of the Cuis code quality I have still to understand Cuis
>>>>> Morphic
>>>>> therefore I have started to port ProfStef and published the packages
>>>>> in
>>>>>
>>>>> https://github.com/pmon/Cuis-ProfStef
>>>>>
>>>>> It works and pass all tests but code can be better (it is always the
>>>>> case
>>>>> with my code!) so please do not hesitate to criticize.
>>>>>
>>>>> Paolo
>>>>> _______________________________________________
>>>>> Cuis mailing list
>>>>> [hidden email]
>>>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>>
>>>> _______________________________________________
>>>> Cuis mailing list
>>>> [hidden email]
>>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>
>>>
>>> _______________________________________________
>>> Cuis mailing list
>>> [hidden email]
>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>
>>
>> _______________________________________________
>> Cuis mailing list
>> [hidden email]
>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>
>
> _______________________________________________
> Cuis mailing list
> [hidden email]
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>

_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org