Re: [Pharo-project] Pragmas/Annotations for classes

2010-07-11 Thread Stéphane Ducasse
ok I see

I was thinking using methods (instance or class) with pragmas.

Stf


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] PSMCOrganizationChangeWrapper???

2010-07-11 Thread Stéphane Ducasse
Apparently this class is totally empty so I do not really understand its 
purpose.

Stef
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Issue 2658 - Integration of WebClient on Pharo 1.2

2010-07-11 Thread Germán Arduino
Sorry the late response Mariano, but I'm doing a gazillion of different
things :(

I think that the idea is as on squeak, retain an extremely simple HTTPSocket
to basic operations (as keep MC working) and
have a well done client with all the functionalities.)

Germán.


2010/7/8 Mariano Martinez Peck marianop...@gmail.com

 I thought I was the only idiot, but it seems I am not. So, I am not shame
 to asking...

 What WebClient really is ?  Http client ?  Several times people say it
 should replace something in pharo...what exactly should be replaced in Pharo
 by this WebClient ?

 Why it needs to be in PharoCore and not as an external package?  are there
 (or will be) users of it inside the core?

 Thanks and sorry for the ignorance.

 Cheers

 mariano

 2010/7/8 Germán Arduino gardu...@gmail.com



 2010/7/8 Stéphane Ducasse stephane.duca...@inria.fr

 I will include the packages in the release.


 I loaded all the packages available
WebClientServerTesttestServerDestroy is red

 Now we will need to pay attention that we should have a look
- WebClient-Pharo and fix that
- pay attention to push back fixes to the package for squeakers

 Stef

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



 The ConfigurationOf is outdated.

 The packages to load are the latest of core-tests-help and http.

 The pharo package is not longer necesary.

 I did these steps yesterday and all tests are green (In Linux).

 Cheers.




 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

[Pharo-project] Sequential Dictionary

2010-07-11 Thread Joel Turnbull
What is the group's recommendation for creating a sequential Dictionary?
i.e. A Dictionary who's associations are ordered.

Is there any precedent for this? Or does it sound like I'm barking up the
wrong tree?

In my model, I've subclassed Dictionary into QuantityDictionary to store
line items, where the key is the item and the value is the quantity of the
item. It validates that the value is always a numeric, removes the
association when the value goes below zero, and other stuff specific to my
application.

Now I'm finding it makes sense to be able to order these associations.
Imagine a recipe ingredient list, where you add and edit quantities of
ingredients, and you want to put the ingredients that you use earliest in
the recipe at the top of the ingredient list.

Before I put any more work into it, I just wanted to make sure that a
sequential dictionary makes sense, and get your ideas on how to generally go
about implementing that?

Thanks.
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] Sequential Dictionary

2010-07-11 Thread Stéphane Ducasse
Hi Joel

On Jul 11, 2010, at 5:00 PM, Joel Turnbull wrote:

 
 What is the group's recommendation for creating a sequential Dictionary? i.e. 
 A Dictionary who's associations are ordered.

look at the one in Seaside :)
Lukas told me that they implemented one where the order of traversal using do: 
is the order of key/val addition.

 Is there any precedent for this? Or does it sound like I'm barking up the 
 wrong tree?
 
 In my model, I've subclassed Dictionary into QuantityDictionary to store line 
 items, where the key is the item and the value is the quantity of the item. 
 It validates that the value is always a numeric, removes the association when 
 the value goes below zero, and other stuff specific to my application.
 
 Now I'm finding it makes sense to be able to order these associations. 
 Imagine a recipe ingredient list, where you add and edit quantities of 
 ingredients, and you want to put the ingredients that you use earliest in the 
 recipe at the top of the ingredient list.
 
 Before I put any more work into it, I just wanted to make sure that a 
 sequential dictionary makes sense, and get your ideas on how to generally go 
 about implementing that?
 
 Thanks.
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] [update 1.2] #12046

2010-07-11 Thread Stéphane Ducasse
12046
-

- Issue 2665:   Fixed broken string in selection evaluation.
- Add System-Installers as package (empty but code is coming)

Stef

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Sequential Dictionary

2010-07-11 Thread Levente Uzonyi

On Sun, 11 Jul 2010, Joel Turnbull wrote:


What is the group's recommendation for creating a sequential Dictionary?
i.e. A Dictionary who's associations are ordered.

Is there any precedent for this? Or does it sound like I'm barking up the
wrong tree?

In my model, I've subclassed Dictionary into QuantityDictionary to store
line items, where the key is the item and the value is the quantity of the
item. It validates that the value is always a numeric, removes the
association when the value goes below zero, and other stuff specific to my
application.

Now I'm finding it makes sense to be able to order these associations.
Imagine a recipe ingredient list, where you add and edit quantities of
ingredients, and you want to put the ingredients that you use earliest in
the recipe at the top of the ingredient list.

Before I put any more work into it, I just wanted to make sure that a
sequential dictionary makes sense, and get your ideas on how to generally go
about implementing that?


A sequential dictionary can mean a lot of different things. There are 
some implementations with different semantics available. See these for 
example:

http://squeaksource.com/BTree.html
http://forum.world.st/OrderedDictionary-td277320.html

If you just want to iterate over your dictionary once in the sorted order, 
then the best thing to do is to collect your data into an array, sort the 
array, then iterate over that sorted array.



Levente



Thanks.



___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] [update 1.2] #12047

2010-07-11 Thread stephane ducasse

12047
-

Issue 2664: Lost some classes only sarInstaller and MczInstaller

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] [update 1.2] #12048

2010-07-11 Thread Stéphane Ducasse

12048
-

- Issue 2664: empty classes: WebBrowser, SketchMorph, PasteUpMorphTest, 
NameOfSubclass, MethodTempsNode
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] [update 1.2] #12049

2010-07-11 Thread Stéphane Ducasse
12049
-

- Issue 2501: Refactored directory scanning
- PackageOrganizer enh
- Issue 2623: Make sure MCWorkingCopy receives system change notifications by 
reregistering for them on startup.
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] Tracing on Linux

2010-07-11 Thread Schwab,Wilhelm K
I am trying to track down a segmentation fault in calling into the Gnu 
Scientific Library.  These are things that I had working under Windows+Dolphin 
and am now trying to do with Pharo and Linux.   Offsets to structure elements 
and sizes of structures are possible snags, but the calls that are failing 
should be reasonably independent of such things: I call the relevant allocation 
method and pass along the pointer, so even if my interpretation of the structs 
is bogus, I would still expect the functions to succeed.  That is all the more 
true of new functions that I am adding for testing purposes.

The GSL functionality is split into two libraries, and the .so modules appear 
to be hobbled on Linux due to circular dependencies between them.  A wrapper 
.so that is  linked to both libraries seems to allow me to call all of the 
functions (the few I have tried to access) and gives a home for code of my own.

I went so far as to compile some GSL sample code, and it does not crash.  I 
further linked it to my wrapper library and it still works calling the GSL 
functions through the wrapper (or at least I *think* that's happening).  I plan 
to gradually sneak up on the crash by moving things into my library and then 
hopefully into Pharo via FFI.

On Windows, I would use OutputDebugString() to write tracing messages to look 
at what is happening until I found the problem.  How do you unix VM gurus 
tackle such debugging problems?

Bill


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project