[Pharo-users] SpecGenerator

2018-07-25 Thread john pfersich
I have a question about SpecGenerator. The video introducing SpecGenerator about 2 years ago says you start it with: MEApplicationList open. There's no open method in version 15 that I loaded from SmalltalkHub. How do you start the app?

Re: [Pharo-users] Pharo 7 file streams guideline

2018-07-25 Thread David T. Lewis
On Wed, Jul 25, 2018 at 02:20:30PM +0200, Damien Pollet wrote: > On Wed, 25 Jul 2018 at 13:48, Sven Van Caekenberghe wrote: > > > > On 25 Jul 2018, at 13:39, Damien Pollet > > wrote: > > > Related issue: command line arguments come from VM system attributes as > > ByteStrings??? and thus interpr

Re: [Pharo-users] NeoJSON sorting instance variables/properties

2018-07-25 Thread Peter Uhnák
> Actually I do not think that the above is that bad ;-) It is too explicit for me and easy to forget to do. :) > I guess you could add some extension methods to NeoJSONWriter, or subclass it - yourself. In the end, this is probably the most reasonable. And I can change some of the defaults to

Re: [Pharo-users] OmniBase for Pharo 6

2018-07-25 Thread PBKResearch
Marco Thanks for this. Just for curiosity, did you test it just on Windows, or on other OSs as well. The logic of the Dec 2010 fix was that David Gorisek’s original, being developed on Dolphin, could not be guaranteed to work except on Windows. I only use Windows, so it is just curiosity. B

Re: [Pharo-users] NeoJSON sorting instance variables/properties

2018-07-25 Thread PBKResearch
Just as a comment to Henrik, NeoJSON will already preserve the order of an OrderedDictionary. When working with Stef on the HTML scraping booklet, I decided to find a way to preserve the order of the selected items, partly for aesthetic reasons, but mainly to demonstrate that the output matched the

Re: [Pharo-users] NeoJSON sorting instance variables/properties

2018-07-25 Thread Sven Van Caekenberghe
> On 25 Jul 2018, at 17:54, Henrik-Nergaard wrote: > > Hi Peter, > > This functionallity is already available in STON where it preserves the > order when you use an OrderedDictionary. > And was implemented for the usecase of dealing with fileout and versioning. > Perhaps the same could be ad

[Pharo-users] Pharo7, consistent image freeze/deadlock on snapshotAndQuit

2018-07-25 Thread Johan Brichau
Hi, I ran into a freeze issue when trying to save and/or quit an image after loading Seaside3 and Zinc (not an infrequent combination :) The cause seems to be that terminating processes in a `shutDown` handler (called on image shutdown / snapshot) leads to a deadlock (somewhere). Both Comet and

Re: [Pharo-users] NeoJSON sorting instance variables/properties

2018-07-25 Thread Henrik-Nergaard
Hi Peter, This functionallity is already available in STON where it preserves the order when you use an OrderedDictionary. And was implemented for the usecase of dealing with fileout and versioning. Perhaps the same could be added to NeoJson so that instead of some magic flag you provide an Order

Re: [Pharo-users] NeoJSON sorting instance variables/properties

2018-07-25 Thread Sven Van Caekenberghe
> On 25 Jul 2018, at 11:34, Peter Uhnák wrote: > > Ah, you are right that it might not be human-friendly. > > I don't want to rely on the order, but for (file) versioning it is quite > valuable. (or rather changing the order can easily make versioning quite > worthless). Ah, OK, I understa

Re: [Pharo-users] Using Icerberg programmatically.

2018-07-25 Thread Arturo Zambrano
Hi Guille. thanks for the advise. I will use it carefully, and try to move to Pharo 7 soon. Arturo On Wed, Jul 25, 2018 at 5:02 AM Guillermo Polito wrote: > Hi Arturo, > > First, I would not recommend too much to use the version on Pharo 6.1. > That version is a preview version that is >6 mon

Re: [Pharo-users] Using Icerberg programmatically.

2018-07-25 Thread Arturo Zambrano
Thanks Christophe, that's what I was looking for. Arturo On Wed, Jul 25, 2018 at 4:51 AM Christophe Demarey < christophe.dema...@inria.fr> wrote: > Hi Arthur, > > The starting point is the IceRepository. > You can build you own repository with IceRepositoryCreator or get an > existing one from Ic

Re: [Pharo-users] OmniBase for Pharo 6

2018-07-25 Thread Matias Maretto
Marco: thank you for this. A few weeks ago when I was trying to find the "lock" problem I saw this method but I did not dare to change it; and just as you said I been using OminBase with no problem, but never runned the Garbage Collector, Surely I was going to have a bigger problem in the futur

Re: [Pharo-users] Pharo 7 file streams guideline

2018-07-25 Thread Damien Pollet
On Wed, 25 Jul 2018 at 13:48, Sven Van Caekenberghe wrote: > > On 25 Jul 2018, at 13:39, Damien Pollet > wrote: > > Related issue: command line arguments come from VM system attributes as > ByteStrings… and thus interpreted as iso-8859-1, which is incorrect in most > cases nowadays, even though

Re: [Pharo-users] Pharo 7 file streams guideline

2018-07-25 Thread Sven Van Caekenberghe
> On 25 Jul 2018, at 13:39, Damien Pollet wrote: > > On Tue, 24 Jul 2018 at 11:39, Alistair Grant wrote: > > On 23 Jul 2018, at 12:07, Sven Van Caekenberghe wrote: > So, > > Stdio stdout > > should return return a character write stream with UTF-8 encoding while > > Stdio binaryStdout

Re: [Pharo-users] Pharo 7 file streams guideline

2018-07-25 Thread Damien Pollet
On Tue, 24 Jul 2018 at 11:39, Alistair Grant wrote: > > On 23 Jul 2018, at 12:07, Sven Van Caekenberghe wrote: >> So, >> >> Stdio stdout >> >> should return return a character write stream with UTF-8 encoding while >> >> Stdio binaryStdout >> >> should be the lower level binary one. >> This

Re: [Pharo-users] OmniBase for Pharo 6

2018-07-25 Thread marco
One serious problem left: OmniBaseTest>>testGC fails. Have a look at the 2 methods /ODBContainer>>lockDataFile "Dec, 2010 sas: this code was relying in evaluating a block that was happening only in win32 but not in *nix. So now I'm making it wait for the lock and then execute the code normall

[Pharo-users] Dynabook learning model

2018-07-25 Thread Hilaire
A critic view on the underneath learning model of the Dynabook: http://blog.drgeo.eu/post/2018/The-Dynabook-and-its-learning-models Hilaire -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] NeoJSON sorting instance variables/properties

2018-07-25 Thread Peter Uhnák
Ah, you are right that it might not be human-friendly. I don't want to rely on the order, but for (file) versioning it is quite valuable. (or rather changing the order can easily make versioning quite worthless). I can manually sort it, but it creates a lot of mess: (NeoJSONWriter on: stream) pr

Re: [Pharo-users] NeoJSON sorting instance variables/properties

2018-07-25 Thread Sven Van Caekenberghe
From json.org "An object is an unordered set of name/value pairs." IOW, it is not in the spec, it would be dangerous to rely up it in any way (not that you are suggesting that). It might look better sometimes, but even then alphabetic sorting might not be the most human friendly or most mea

[Pharo-users] NeoJSON sorting instance variables/properties

2018-07-25 Thread Peter Uhnák
Hi, would it be possible to provide option to automatically sort instance variables when serializing objects? Either always sorted NeoJSONObjectMapping>>writeObject: anObject on: jsonWriter jsonWriter writeMapStreamingDo: [ :jsonMapWriter | (properties sorted: #propertyName ascending) do: [ :eac

Re: [Pharo-users] NeoJSON ignore some instance variables

2018-07-25 Thread Sven Van Caekenberghe
> On 25 Jul 2018, at 10:17, Peter Uhnák wrote: > > Hi, > > what is the best way to ignore instance variables when serializing with > NeoJSON? > > I figured out this so far... > > (NeoJSONWriter on: stream) > for: Something > do: [ :mapping | mapping mapInstVars: mapping identif

[Pharo-users] NeoJSON ignore some instance variables

2018-07-25 Thread Peter Uhnák
Hi, what is the best way to ignore instance variables when serializing with NeoJSON? I figured out this so far... (NeoJSONWriter on: stream) for: Something do: [ :mapping | mapping mapInstVars: mapping identifier instVarNames \ #(unwanted) ]; nextPut: aSomething Thanks, Peter

Re: [Pharo-users] Using Icerberg programmatically.

2018-07-25 Thread Guillermo Polito
Hi Arturo, First, I would not recommend too much to use the version on Pharo 6.1. That version is a preview version that is >6 months older than the new one in Pharo 7. This does not mean you cannot write a script, but we do not guarantee it will work in more recent version :). If you then settle

Re: [Pharo-users] Using Icerberg programmatically.

2018-07-25 Thread Christophe Demarey
Hi Arthur, The starting point is the IceRepository. You can build you own repository with IceRepositoryCreator or get an existing one from IceRepository registry. Then on the repository you can call #pull. Christophe > Le 24 juil. 2018 à 20:09, Arturo Zambrano a écrit > : > > Hi All, > the