Re: [Pharo-users] SIXX in Pharo 4.0?

2015-08-28 Thread H. Hirzel
Masashi Umezawa fixed the Context class issue.

SIXX tests are now fine in Pharo 4.0

https://github.com/mumez/SIXX/issues/2

--Hannes

On 8/24/15, H. Hirzel  wrote:
> Thanks for the help so far;
>
> Updated
>
> https://github.com/mumez/SIXX/issues/2
> 123 test cases pass.
>
> Suggestions how to deal with the four test cases which fail?
>
> --Hannes
>
>
> On 8/24/15, Ben Coman  wrote:
>> On Mon, Aug 24, 2015 at 2:46 PM, H. Hirzel 
>> wrote:
>>> Hello
>>>
>>> I experience a load problem of SIXX * in Pharo 4.0.
>>>
>>> https://github.com/mumez/SIXX/issues/2
>>>
>>> The complaint is that a class
>>>
>>>  ContextPart
>>>
>>> is not found. Any suggestions/hints how to proceed?
>>
>> ContextPart and MethodContext classes have been merged into Contex class
>> https://github.com/pharo-project/pharo-changelogs/blob/master/Pharo40ChangeLogs.md
>>
>> cheers -ben
>>
>>
>



[Pharo-users] SixxExamples class >> example 4 . Preferences in Pharo 4.0

2015-08-28 Thread H. Hirzel
Hello

How would I write the following SIXX example in Pharo 4.0?

example4
"SixxExamples example4"
"Save and load Preferences data"

| preferences |
preferences := Preferences allPreferenceObjects sixxString.
preferences := Object readSixxFrom: preferences.
^preferences inspect.


Preferences is marked red.

Kind regards
Hannes



[Pharo-users] Becoming good at VM development

2015-08-28 Thread Ichiseki
Hi
hello to everyone & everybody
I am interesting in going deeply into VM design, development, optimization,
etc. I know a lot of Haskell, a good amount of C and some languages that use
VM like Python, Lua and Pharo of course.
What would be a road map (books, articles, code to read) to understand
deeply and in detail the Pharo VM, the inter operation between the VM and
the image. I know this could take a lot of time but I'm committed to invest
that time.
Please help me as literature on these topics is very scarce...
Thank SO SO much in advacne
ichiro 



--
View this message in context: 
http://forum.world.st/Becoming-good-at-VM-development-tp4846536.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] SixxExamples class >> example 4 . Preferences in Pharo 4.0

2015-08-28 Thread H. Hirzel
P.S. And BTW besides SIXX what options do I have to transfer
preferences from one Pharo 4.0 image to another?

On 8/28/15, H. Hirzel  wrote:
> Hello
>
> How would I write the following SIXX example in Pharo 4.0?
>
> example4
>   "SixxExamples example4"
>   "Save and load Preferences data"
>   
>   | preferences |
>   preferences := Preferences allPreferenceObjects sixxString.
>   preferences := Object readSixxFrom: preferences.
>   ^preferences inspect.
>
>
> Preferences is marked red.
>
> Kind regards
> Hannes
>



Re: [Pharo-users] Becoming good at VM development

2015-08-28 Thread Davorin Rusevljan
On Fri, Aug 28, 2015 at 10:11 AM, Ichiseki  wrote:

> Hi
> hello to everyone & everybody
> I am interesting in going deeply into VM design, development, optimization,
> etc. I know a lot of Haskell, a good amount of C and some languages that
> use
> VM like Python, Lua and Pharo of course.
> What would be a road map (books, articles, code to read) to understand
> deeply and in detail the Pharo VM, the inter operation between the VM and
> the image. I know this could take a lot of time but I'm committed to invest
> that time.
> Please help me as literature on these topics is very scarce...
> Thank SO SO much in advacne
> ichiro
>
>
>
> --
> View this message in context:
> http://forum.world.st/Becoming-good-at-VM-development-tp4846536.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>

Get a copy of Smalltalk blue book and read implementation part. It is very
old, but it would get you many important ideas.

http://stephane.ducasse.free.fr/FreeBooks/BlueBook/Bluebook.pdf

after that, there is a source of Squek/Pharo virtual machines, and you can
even run and debug them it inside Pharo.

Davorin Rusevljan
http://www.cloud208.com

>
>


Re: [Pharo-users] Becoming good at VM development

2015-08-28 Thread Christophe Demarey
Hi

Le 28 août 2015 à 10:11, Ichiseki a écrit :

> Hi
> hello to everyone & everybody
> I am interesting in going deeply into VM design, development, optimization,
> etc. I know a lot of Haskell, a good amount of C and some languages that use
> VM like Python, Lua and Pharo of course.
> What would be a road map (books, articles, code to read) to understand
> deeply and in detail the Pharo VM, the inter operation between the VM and
> the image. I know this could take a lot of time but I'm committed to invest
> that time.
> Please help me as literature on these topics is very scarce...
> Thank SO SO much in advacne
> ichiro 

There are some nice blogs:
http://www.mirandabanda.org/cogblog/
https://clementbera.wordpress.com/ (cog/spur/sista categories)

smime.p7s
Description: S/MIME cryptographic signature


Re: [Pharo-users] SixxExamples class >> example 4 . Preferences in Pharo 4.0

2015-08-28 Thread Sven Van Caekenberghe
Preferences does not exist as a class.

You could use STON.

> On 28 Aug 2015, at 10:31, H. Hirzel  wrote:
> 
> P.S. And BTW besides SIXX what options do I have to transfer
> preferences from one Pharo 4.0 image to another?
> 
> On 8/28/15, H. Hirzel  wrote:
>> Hello
>> 
>> How would I write the following SIXX example in Pharo 4.0?
>> 
>> example4
>>  "SixxExamples example4"
>>  "Save and load Preferences data"
>>  
>>  | preferences |
>>  preferences := Preferences allPreferenceObjects sixxString.
>>  preferences := Object readSixxFrom: preferences.
>>  ^preferences inspect.
>> 
>> 
>> Preferences is marked red.
>> 
>> Kind regards
>> Hannes
>> 
> 




Re: [Pharo-users] SixxExamples class >> example 4 . Preferences in Pharo 4.0

2015-08-28 Thread Marcus Denker
Yes, we need re-thing and improve Preference modelling and storage. 



> On 28 Aug 2015, at 11:39, Sven Van Caekenberghe  wrote:
> 
> Preferences does not exist as a class.
> 
> You could use STON.
> 
>> On 28 Aug 2015, at 10:31, H. Hirzel  wrote:
>> 
>> P.S. And BTW besides SIXX what options do I have to transfer
>> preferences from one Pharo 4.0 image to another?
>> 
>> On 8/28/15, H. Hirzel  wrote:
>>> Hello
>>> 
>>> How would I write the following SIXX example in Pharo 4.0?
>>> 
>>> example4
>>> "SixxExamples example4"
>>> "Save and load Preferences data"
>>> 
>>> | preferences |
>>> preferences := Preferences allPreferenceObjects sixxString.
>>> preferences := Object readSixxFrom: preferences.
>>> ^preferences inspect.
>>> 
>>> 
>>> Preferences is marked red.
>>> 
>>> Kind regards
>>> Hannes
>>> 
>> 
> 
> 




Re: [Pharo-users] SixxExamples class >> example 4 . Preferences in Pharo 4.0

2015-08-28 Thread Thierry Goubier
2015-08-28 11:49 GMT+02:00 Marcus Denker :

> Yes, we need re-thing and improve Preference modelling and storage.
>

I very strongly agree... Anything which prevents failure on non-present
class, or settings selector change, gets my vote.

Thierry


>
>
>
> > On 28 Aug 2015, at 11:39, Sven Van Caekenberghe  wrote:
> >
> > Preferences does not exist as a class.
> >
> > You could use STON.
> >
> >> On 28 Aug 2015, at 10:31, H. Hirzel  wrote:
> >>
> >> P.S. And BTW besides SIXX what options do I have to transfer
> >> preferences from one Pharo 4.0 image to another?
> >>
> >> On 8/28/15, H. Hirzel  wrote:
> >>> Hello
> >>>
> >>> How would I write the following SIXX example in Pharo 4.0?
> >>>
> >>> example4
> >>> "SixxExamples example4"
> >>> "Save and load Preferences data"
> >>>
> >>> | preferences |
> >>> preferences := Preferences allPreferenceObjects sixxString.
> >>> preferences := Object readSixxFrom: preferences.
> >>> ^preferences inspect.
> >>>
> >>>
> >>> Preferences is marked red.
> >>>
> >>> Kind regards
> >>> Hannes
> >>>
> >>
> >
> >
>
>
>


Re: [Pharo-users] Multi desktops inside Pharo!

2015-08-28 Thread Sean P. DeNigris
philippeback wrote
> FWIW, the TilingWindowManager has some support for this.
> 
> Not sure how it behaves in 4.x|5.x
> 
> Sean did some fixes IIRC.

Sorry, I was on holidays… Yes, TWM supports multi-desktops, but it's been
buggy since Pharo 4.0 and I've never tried on 5.0.



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Multi-desktops-inside-Pharo-tp4845338p4846632.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Becoming good at VM development

2015-08-28 Thread Ichiseki
I've already read those blogs. There are lots of useful information - it
seems - but what I want is a head start, something that starts from zero but
for someone who has programming knowledge.
I will definitely read the blue book. That goes first!
Any more sources, indications?
TYVM

ichiro 



--
View this message in context: 
http://forum.world.st/Becoming-good-at-VM-development-tp4846536p4846648.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] SixxExamples class >> example 4 . Preferences in Pharo 4.0

2015-08-28 Thread stepharo

STON is the way to go to save preferences.
But I do not have free cycles.

Stef


Le 28/8/15 11:55, Thierry Goubier a écrit :



2015-08-28 11:49 GMT+02:00 Marcus Denker >:


Yes, we need re-thing and improve Preference modelling and storage.


I very strongly agree... Anything which prevents failure on 
non-present class, or settings selector change, gets my vote.


Thierry




> On 28 Aug 2015, at 11:39, Sven Van Caekenberghe mailto:s...@stfx.eu>> wrote:
>
> Preferences does not exist as a class.
>
> You could use STON.
>
>> On 28 Aug 2015, at 10:31, H. Hirzel mailto:hannes.hir...@gmail.com>> wrote:
>>
>> P.S. And BTW besides SIXX what options do I have to transfer
>> preferences from one Pharo 4.0 image to another?
>>
>> On 8/28/15, H. Hirzel mailto:hannes.hir...@gmail.com>> wrote:
>>> Hello
>>>
>>> How would I write the following SIXX example in Pharo 4.0?
>>>
>>> example4
>>> "SixxExamples example4"
>>> "Save and load Preferences data"
>>>
>>> | preferences |
>>> preferences := Preferences allPreferenceObjects sixxString.
>>> preferences := Object readSixxFrom: preferences.
>>> ^preferences inspect.
>>>
>>>
>>> Preferences is marked red.
>>>
>>> Kind regards
>>> Hannes
>>>
>>
>
>







Re: [Pharo-users] Becoming good at VM development

2015-08-28 Thread Christian Caldeiro
Hi Ichiro,

there are a bunch of posts in Mariano Martinez Peck's blog named "journey
through the VM", done some years ago. He writes about anything related to
the VM, how to build it, class format, bytecodes, detailed description of
the CompiledMethod class, etc.

You can find the first post here:
https://marianopeck.wordpress.com/2011/03/31/journey-through-the-vm/

Definitely worth reading!

Cheers
Christian



On Fri, Aug 28, 2015 at 10:15 AM, Ichiseki  wrote:

> I've already read those blogs. There are lots of useful information - it
> seems - but what I want is a head start, something that starts from zero
> but
> for someone who has programming knowledge.
> I will definitely read the blue book. That goes first!
> Any more sources, indications?
> TYVM
>
> ichiro
>
>
>
> --
> View this message in context:
> http://forum.world.st/Becoming-good-at-VM-development-tp4846536p4846648.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


[Pharo-users] Pharo 4.0 -- Inspecting a recursive data structure is slow

2015-08-28 Thread H. Hirzel
Hello

I have realized that inspecting a recursive data structure is very
slow in Pharo 4.0

A test case:

| myDict |
myDict := Dictionary new.
myDict at: #hello put: 'hello'.
myDict at: #recurHello put: myDict.
myDict inspect

It takes a long time for the inspector to come up. And the image
freezes later on if you continue.

The problem is with the inspector because if I do
| myDict |
myDict := Dictionary new.
myDict at: #hello put: 'hello'.
myDict at: #recurHello put: myDict.
3 + 4 inspect

it comes up instantly.


As a comparison I attach the Cuis ** test result. The inspector comes
up instantly and the image does not have any problems.


What are the workarounds in Pharo 4.0?

- Setting a time out somewhere?
- Disabling certain functions?
- Loading a simpler inspector?

Regards

Hannes


** current build  2463.image
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev