Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Henrik Johansen
Den 8. mai 2010 kl. 01.20 skrev Igor Stasenko : On 8 May 2010 02:07, Nicolas Cellier > wrote: 2010/5/8 Henrik Johansen : As Nicolas described, linkedlists certainly have their usecases. I think you might be blurring cause and effect when using is only used in process handling, as an argume

Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Ralph Boland
> +1. > OrderedCollection's addLast/removeFirst/removeLast, is enough to use > them as lists. > > About performance, i am little concerned. > Linked lists is good , that is costs you a constant time for each new > element you adding. > While for OrderedCollections it vary depending on container sta

Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Igor Stasenko
On 8 May 2010 02:07, Nicolas Cellier wrote: > 2010/5/8 Henrik Johansen : >> As Nicolas described, linkedlists certainly have their usecases. >> >> I think you might be blurring cause and effect when using is only used in >> process handling, as an argument why the easier-to-use, no noticeable >> p

Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Nicolas Cellier
2010/5/8 Henrik Johansen : > As Nicolas described, linkedlists certainly have their usecases. > > I think you might be blurring cause and effect when using is only used in > process handling, as an argument why the easier-to-use, no noticeable > performance overhead (but slightly more complex imple

Re: [Pharo-project] Set + collect:

2010-05-07 Thread Nicolas Cellier
2010/5/6 Germán Leiva : > 2010/5/3 Stéphane Ducasse  >> >> > Hi, this is my first post (please be gentle xD) >> >> Thanks! >> > xD > >> >> > >> > The #collect: message commonly return a new collection like the >> > receiver, but this is really unpractical in some cases >> > >> > e.g. >> > col := Se

Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Henrik Johansen
As Nicolas described, linkedlists certainly have their usecases. I think you might be blurring cause and effect when using is only used in process handling, as an argument why the easier-to-use, no noticeable performance overhead (but slightly more complex implementation wise) version shoul

Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Nicolas Cellier
2010/5/8 Nicolas Cellier : > 2010/5/7 Igor Stasenko : >> On 7 May 2010 23:47, Lukas Renggli wrote: He had the idea that it would be nice to be able to add any object to a LinkedList, instead of just Link subclasses. (IIRC, 'like you can in Ruby' ;)) So we added ValueLink

Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Nicolas Cellier
2010/5/7 Igor Stasenko : > On 7 May 2010 23:47, Lukas Renggli wrote: >>> He had the idea that it would be nice to be able to add any object to a >>> LinkedList, instead of just Link subclasses. (IIRC, 'like you can in Ruby' >>> ;)) >>> >>> So we added ValueLink as the common pattern for "A link

Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Igor Stasenko
On 7 May 2010 23:47, Lukas Renggli wrote: >> He had the idea that it would be nice to be able to add any object to a >> LinkedList, instead of just Link subclasses. (IIRC, 'like you can in Ruby' >> ;)) >> >> So we added ValueLink as the common pattern for "A link with an object in >> it", which

Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Stéphane Ducasse
Thanks henrik for the explanation. I'm not sure that I do not want to keep this class implementation minimal because it is only used by the scheduler. stef >> Yes, this was somehting Nico Schwartz and I did during the sprint. >> >> He had the idea that it would be nice to be able to add any obj

Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Lukas Renggli
> He had the idea that it would be nice to be able to add any object to a > LinkedList, instead of just Link subclasses. (IIRC, 'like you can in Ruby' ;)) > > So we added ValueLink as the common pattern for "A link with an object in > it", which is now the default if you add an object which itsel

Re: [Pharo-project] Settings Browser

2010-05-07 Thread Mariano Martinez Peck
On Fri, May 7, 2010 at 5:07 PM, Alain Plantec wrote: > Le 07/05/2010 16:21, Geert Claes a écrit : > > >> Alain Plantec-4 wrote: >> >> >>> from your screenshot - >>> don't forget that you have to accept your new value in text entries with >>> cmd-s or with the enter key. >>> >>> >>> >> Thanks Alai

[Pharo-project] infinite loop when Locale changed

2010-05-07 Thread Hilaire Fernandes
What is the use to call StrikeFont localeChanged. It is provocing an infinite loop when Locale is changed it comes from the StrikeFont localeChanged message What is supposed to do StrikeFont localeChanged ? Hilaire Locale class>>localeChanged #(#ParagraphEditor) do: [ :key | Smalltalk globals

[Pharo-project] Class variable

2010-05-07 Thread Hilaire Fernandes
When I look at the class NaturalLanguageTranslator, I see the class method allKnownPhrases refering a class variable AllKnownPhrases, however I don't see this variable defined in the class nor in the ancestor. How can it be? Hilaire ___ Pharo-proje

Re: [Pharo-project] bug in the code of CompiledMethod >> =

2010-05-07 Thread Stéphane Ducasse
Yes there is a ticket and I should take some time to get over that. But if somebody has time. Stef > Hi. I am using Moose (an image that Cyrille Delaunay gave me) and I am having > this problem. > > Is there a ticket for this ? I don't see analogousCodeTo: in > PharoCore-1.1-11336-UNSTABL

[Pharo-project] is MVC package somewhere?

2010-05-07 Thread Esteban Lorenzano
Hi, AFAIK, MVC was removed from Pharo 1.1... I wonder where is the extracted package. Cheers, Esteban ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

[Pharo-project] Newbie: How to load and use HTTP parser

2010-05-07 Thread Andrei Stebakov
Hi Sent this message to the Pharo-users group, but no response for a couple of days, so trying it here ;) I have a simple task of parsing some html content in Pharo (loading an html page using HTTPSocket and retrieving useful info from it). Having browsed for an html parser in my current one-clic

Re: [Pharo-project] Settings Browser

2010-05-07 Thread Alain Plantec
Le 07/05/2010 16:21, Geert Claes a écrit : Alain Plantec-4 wrote: from your screenshot - don't forget that you have to accept your new value in text entries with cmd-s or with the enter key. Thanks Alain. I have now managed to save the HTTP Proxy port and Server now using the ctrl-

Re: [Pharo-project] Settings Browser

2010-05-07 Thread Geert Claes
Alain Plantec-4 wrote: > > from your screenshot - > don't forget that you have to accept your new value in text entries with > cmd-s or with the enter key. > Thanks Alain. I have now managed to save the HTTP Proxy port and Server now using the ctrl-s (windows) but the User name and password

[Pharo-project] new gettext package

2010-05-07 Thread Hilaire Fernandes
I have uploaded a new version of the gettext package. I have removed a few classes used for the itnernal translator. So now, only gettext based catalog messages is used. Philipp, I have added a String>>translateTo: aLocale you can used from Seaside application. If we agree on that protocole,

Re: [Pharo-project] Settings Browser

2010-05-07 Thread Alain Plantec
Le 06/05/2010 14:25, Geert Claes a écrit : Hi Geert, It's just that I can't seem to figure out how to save the settings I have changed? I did noticed the "Style> New/Update/Load/Browse/Remove". yes, if you want to save your current settings you can create a new styles (Style/New). A style

Re: [Pharo-project] gettext package

2010-05-07 Thread Philippe Marschall
On 05/06/2010 04:55 PM, Hilaire Fernandes wrote: > Philippe Marschall a écrit : > The protocol I have in mind for Seaside is something like: html translate: >>> aString translated "return the translating in the current locale." >> >> Nope sorry, in a server the current locale in t

Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Henrik Johansen
On May 7, 2010, at 3:08 33PM, Henrik Johansen wrote: > Yes, this was somehting Nico Schwartz and I did during the sprint. > > He had the idea that it would be nice to be able to add any object to a > LinkedList, instead of just Link subclasses. (IIRC, 'like you can in Ruby' ;)) > > So we added

Re: [Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Henrik Johansen
Yes, this was somehting Nico Schwartz and I did during the sprint. He had the idea that it would be nice to be able to add any object to a LinkedList, instead of just Link subclasses. (IIRC, 'like you can in Ruby' ;)) So we added ValueLink as the common pattern for "A link with an object in it",

Re: [Pharo-project] Help System

2010-05-07 Thread laurent laffont
On Fri, May 7, 2010 at 1:25 AM, Torsten Bergmann wrote: > >In addition to the story around tests, > > Could you be a little bit more specific what your wishes are > for using tests within the help documentation? > It's still not clear to me what you expect here. > Hi Torsten, IIRC this idea ca

Re: [Pharo-project] Help System

2010-05-07 Thread Lukas Renggli
>>Torsten do you think we could use book.pharo-project.org to populate the help? > > Dont know how the pier books are implemented. > Is it possible to access/parse the contents either on > the server or directly online from a client image? You can download the wiki or plain text of any Pier site l

Re: [Pharo-project] bug in the code of CompiledMethod >> =

2010-05-07 Thread Mariano Martinez Peck
Hi. I am using Moose (an image that Cyrille Delaunay gave me) and I am having this problem. Is there a ticket for this ? I don't see analogousCodeTo: in PharoCore-1.1-11336-UNSTABLE should we integrate the fix ? Thanks Mariano On Tue, Mar 23, 2010 at 12:55 PM, Nicolas Cellier < nicolas.celli

Re: [Pharo-project] [Metacello] Fwd: Metacello questions

2010-05-07 Thread Andreas Raab
On 5/6/2010 5:26 PM, Dale Henrichs wrote: I don't think I've completely answered your questions so we might want to continue the dialog on this question We're getting close :-) Let me take my own questions and answer them in my own words to see if I understand the issues correctly: Q1:

Re: [Pharo-project] [Metacello] Fwd: Metacello questions

2010-05-07 Thread Dale Henrichs
- "Andreas.Raab" wrote: | 3) When exactly is HelpSystem loaded? | | What I'm wondering about in the above is that HelpSystem should only | be | loaded if WebClient-Help is being loaded. Is this implicitly part of | specifying a 'project' instead of a 'package'? Or is there some other | way

Re: [Pharo-project] Metacello questions

2010-05-07 Thread Dale Henrichs
Andreas, You have bumped into a bug in Metacello 1.0-beta.26. I discovered the bug a couple of weeks ago while using Metacello in GLASS so the bug is fixed in Metacello 1.0-beta.26.1. 1.0-beta.26.1 is under development (#development blessing) so is not loaded by #latestVersion. I am a couple of

[Pharo-project] Help System

2010-05-07 Thread Torsten Bergmann
>In addition to the story around tests, Could you be a little bit more specific what your wishes are for using tests within the help documentation? It's still not clear to me what you expect here. >Torsten do you think we could use book.pharo-project.org to populate the help? Dont know how the

[Pharo-project] Fwd: [squeak-dev] Re: Metacello questions

2010-05-07 Thread Dale Henrichs
- "Dale" wrote: | Teleplacer wrote: | > | > On 5/6/2010 9:55 AM, Dale wrote: | > | >> #includes is used quite extensively for Seaside30 where an | expression | >> like | >> the following is used: | >> | >>spec for: #common do: [ | >> spec | >>packag

Re: [Pharo-project] [Metacello] Fwd: Metacello questions

2010-05-07 Thread Dale Henrichs
I've replied to question 1) in the Squeak-dev list (http://forum.world.st/Metacello-questions-tt2132073.html#a2133038), but will finish/continue the discussion on the Metacello list (http://forum.world.st/Fwd-Metacello-questions-tt2132927.html#a2132927)... Dale - "Andreas.Raab" wrote: | [

[Pharo-project] Metacello questions

2010-05-07 Thread Torsten Bergmann
>Does that mean the documentation is just wrong then? I would see/interpret it like this: With the baseline you describe a set of packages (structure/dependencies) that form your app/project (MyApp). Beside the usual loading of a version: (ConfigurationOfMyApp project version: '1.0') load it

[Pharo-project] Getting Shout in Pharo 1.1

2010-05-07 Thread Alexandre Bergel
Hi Andy, Little needs to be done to have a preliminary version of Pharo 1.1. One of remaining things is the method SHWorkspace class >> initialize which uses the former registration mechanism. Would it be possible to replace this method by: initialize ((TheWorldMenu respondsTo: #

[Pharo-project] another fun case for Linked>>add:

2010-05-07 Thread Stéphane Ducasse
LinkedList>>add: aLinkOrObject "Add aLink to the end of the receiver's list. Answer aLink." ^self addLast: aLinkOrObject LinkedList>>addLast: aLinkOrObject "Add aLink to the end of the receiver's list. Answer aLink." |aLink| aLink := aLinkOrObject asLink.

[Pharo-project] PluggableMenuSpec>>add:

2010-05-07 Thread Stéphane Ducasse
It seems that PluggableMenuSpec >> add: aString ^ self add: aString action: nil does not exist in Squeak and since add:action: does not return a String, we should check if we should not remove this method. Stef (in the train - could not add that in the bugtracker)

Re: [Pharo-project] Help System

2010-05-07 Thread Stéphane Ducasse
In addition to the story around tests, Torsten do you think we could use book.pharo-project.org to populate the help? On May 5, 2010, at 11:45 PM, Torsten Bergmann wrote: > Again, in its current state Help System supports the two options: > > a) class comment/method comment for API help and >

[Pharo-project] [ENH] Added CompiledMethod>>isDeprecated

2010-05-07 Thread Alexandre Bergel
SLICE-DeprecationTestMethod-Alexandre_Bergel.1 is in the inbox. It simply add a isDeprecated test method on CompiledMethod. A test has been added to CompiledMethodTest. http://code.google.com/p/pharo/issues/detail?id=2390 It would be great to have this slice in the image. I am working to prod

Re: [Pharo-project] Set + collect:

2010-05-07 Thread Germán Leiva
2010/5/3 Stéphane Ducasse > > Hi, this is my first post (please be gentle xD) > > Thanks! > > xD > > > > The #collect: message commonly return a new collection like the receiver, > but this is really unpractical in some cases > > > > e.g. > > col := Set with: 'one'->1 with: 'two'->2 with: 'dos

Re: [Pharo-project] Metacello questions

2010-05-07 Thread Andreas Raab
On 5/5/2010 11:36 PM, Torsten Bergmann wrote: Just have a look at ConfigurationOfSQLite3 for a simple example. This one has a "project dependency" on ConfigurationOfFFI. If you want Help system project to be loaded in your configurartion you need to define it in the baselineXXX method and set

Re: [Pharo-project] gettext package

2010-05-07 Thread Hilaire Fernandes
Philippe Marschall a écrit : The protocol I have in mind for Seaside is something like: html translate: aString translated "return the translating in the current locale." Nope sorry, in a server the current locale in the one of the request or session, not a global variable. Seaside can fig

Re: [Pharo-project] customizing tab looks in watery2

2010-05-07 Thread Richard Durr
Take a Look at: UITheme >> newTabGroupIn: aThemedMorph for: labelsAndControls On Thu, May 6, 2010 at 1:32 AM, Tudor Girba wrote: > Hi, > > I would like to change slightly the default Watery2 theme. For starters, I > would like to change the tab widget: > - to make it look like a group box > - use

[Pharo-project] Settings Browser

2010-05-07 Thread Geert Claes
I have to say that the new Settings Browser in 1.1 is a huge improvement over the old Preference Browser. It's just that I can't seem to figure out how to save the settings I have changed? I did noticed the "Style > New/Update/Load/Browse/Remove". I managed to create a new style, but when sele

[Pharo-project] Settings Browser

2010-05-07 Thread Geert Claes
I have to say that the new Settings Browser in 1.1 is a huge improvement over the old Preference Browser. It's just that I can't seem to figure out how to save the settings I have changed? I did noticed the "Style > New/Update/Load/Browse/Remove". I managed to create a new style, but when selec

Re: [Pharo-project] [Vm-dev] About CompactClasses and their future [WAS] how many free bits we have in Object Header?

2010-05-07 Thread Mariano Martinez Peck
On Thu, May 6, 2010 at 12:14 PM, Adrian Lienhard wrote: > > For measuring, I wouldn't look at the current process' memory consumption > because the VM has some headroom to not have to allocate new memory too > often. Depending on when memory is grown or shrunken, this may yield very > different r