Re: [Pharo-project] [Seaside] Re: Has anyone used Zodiac and Seaside to for https?

2013-05-14 Thread Mariano Martinez Peck
I forgot to thanks this thread.
Thanks Sven for your help, it was very helpful and much appreciated!


On Fri, Apr 19, 2013 at 7:01 AM, Esteban Lorenzano esteba...@gmail.comwrote:


 On Apr 19, 2013, at 12:59 AM, Igor Stasenko siguc...@gmail.com wrote:

  On 18 April 2013 23:46, Sven Van Caekenberghe s...@stfx.eu wrote:
  Igor,
 
  On 18 Apr 2013, at 23:21, Igor Stasenko siguc...@gmail.com wrote:
 
  why?
  anything i can help with?
 
  Well, last time I looked (eons ago), in the C code of the Mac SSL
 plugin, the certificate was not used/implemented.
 
  For starters, follow ZdcPluginSSLSession#certiificate[:] to find the
 primitive.
 
  Then see ihow/if that actually does something and/or is being used - in
 the C/plugin code.
 
  It would be really great if we could fix this.
 
  For some reason i was thinking that we already using bundled SSL libs
  for Mac VM.

 we are.
 but I remember there where a problem with certificates and mac...

  (so plugin works with vanilla ssl library on all platforms).
  Not true. We should fix that: it worked for windows, don't see why it
  won't work for Mac.
  I added this to my todo list.
 
  Sven
 
 
  --
  Sven Van Caekenberghe
  Proudly supporting Pharo
  http://pharo.org
  http://association.pharo.org
  http://consortium.pharo.org
 
 
 
 
  ___
  seaside mailing list
  seas...@lists.squeakfoundation.org
  http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
 
 
 
  --
  Best regards,
  Igor Stasenko.
  ___
  seaside mailing list
  seas...@lists.squeakfoundation.org
  http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

 ___
 seaside mailing list
 seas...@lists.squeakfoundation.org
 http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] RFB in 2.0

2013-05-03 Thread Mariano Martinez Peck
Hi Norbert,

I would move it to its own new repo in SmalltalkHub.

Also, I had another problem with RFB and the UIManager. The solution I
found was this one: http://samadhiweb.com/blog/2012.11.04.headless.rfb.html
I don't like it because I need to change Pharo's base source, but I didn't
spend time finding a better solution...I guess there is, though.

Best,




On Fri, May 3, 2013 at 2:56 PM, Norbert Hartl norb...@hartl.name wrote:

 I've found the problem. There is a FileDirectory access in
 RFBSession#desktopName. Removing it makes RFB work.

 The current RFB sources are on Lukas' server. What do we do with that
 stuff? Move to smalltalkhub? If not I can ask Lukas to give me write
 permission. Just wanted to ask what kind of behaviour is en vogue this days.

 Norbert

 Am 03.05.2013 um 19:31 schrieb Norbert Hartl norb...@hartl.name:

  Esteban,
 
  now I can tell that it isn't working for me either. Socket is open and
 server is running. But there are immediate disconnects when trying to
 connect to a pharo2.0 image.
 
  Did you figure it out?
 
  Norbert





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] RFB in 2.0

2013-05-03 Thread Mariano Martinez Peck
On Fri, May 3, 2013 at 3:05 PM, Norbert Hartl norb...@hartl.name wrote:


 Am 03.05.2013 um 20:00 schrieb Mariano Martinez Peck 
 marianop...@gmail.com:

 Hi Norbert,

 I would move it to its own new repo in SmalltalkHub.

 Ok, but then it goes under my private section, right?


you can put it under PharoContributions team.



 Also, I had another problem with RFB and the UIManager. The solution I
 found was this one:
 http://samadhiweb.com/blog/2012.11.04.headless.rfb.html
 I don't like it because I need to change Pharo's base source, but I didn't
 spend time finding a better solution...I guess there is, though.

 The first line of code all my images (deployed on server using RFB) see is

 UIManager default: MorphicUIManager new.


I was going to do that as well. But it is not clear to me WHERE you write
that line of code. Because even if you save the image with that, doesn't
the image set its own UI manager when booting?  So I guess you need to pass
around a script when running the image or something?
What about adding RFB at startup list and implement #startUp doing
 UIManager default: MorphicUIManager new. ?

Best,



 With that I don't have problems at all.

 thanks,

 Norbert

 Best,




 On Fri, May 3, 2013 at 2:56 PM, Norbert Hartl norb...@hartl.name wrote:

 I've found the problem. There is a FileDirectory access in
 RFBSession#desktopName. Removing it makes RFB work.

 The current RFB sources are on Lukas' server. What do we do with that
 stuff? Move to smalltalkhub? If not I can ask Lukas to give me write
 permission. Just wanted to ask what kind of behaviour is en vogue this days.

 Norbert

 Am 03.05.2013 um 19:31 schrieb Norbert Hartl norb...@hartl.name:

  Esteban,
 
  now I can tell that it isn't working for me either. Socket is open and
 server is running. But there are immediate disconnects when trying to
 connect to a pharo2.0 image.
 
  Did you figure it out?
 
  Norbert





 --
 Mariano
 http://marianopeck.wordpress.com





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] RFB in 2.0

2013-05-03 Thread Mariano Martinez Peck
On Fri, May 3, 2013 at 3:17 PM, Sean P. DeNigris s...@clipperadams.comwrote:

 Mariano Martinez Peck wrote
  What about adding RFB at startup list and implement #startUp doing
   UIManager default: MorphicUIManager new. ?

 But you don't necessarily always want it to be headful, do you?


If the RFB is running, in which case I would not want it to be a UIMorphic?
otherwise it simply does not work.
Maybe I was not clearthe #startUp I was suggesting would be something
like:

startUp
 RFBServer server isRunning ifTrue: [ UIManager default:
MorphicUIManager new ]


 If you have
 a headless server image, then use RFB to debug, then it seems you would
 want
 to subsequently start headless again, and then maybe realize you need to
 debug more and start Morphic... Could there be a concept of an RFB session,
 so when a connection is made to the RFB socket, the session is started
 (including installing the correct UI Manager), and then cleared manually or
 on shutdown (reinstalling the original manager)... how does that sound?


yes, that could be another option. But I don't know if there is a place to
hook in there...I should check...




 -
 Cheers,
 Sean
 --
 View this message in context:
 http://forum.world.st/RFB-in-2-0-tp4685418p4685430.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] FLClassNotFound on materialization

2013-05-01 Thread Mariano Martinez Peck
Hernan this may also help as inspiration:

http://rmod.lille.inria.fr/web/pier/software/Fuel/Version1.9/Documentation/FormatMigration


On Wed, May 1, 2013 at 4:12 AM, Max Leske maxle...@gmail.com wrote:

 Thanks. Let me know how you get along.


 On 01.05.2013, at 07:01, Hernán Morales Durand hernan.mora...@gmail.com
 wrote:

 Thanks! Now I get this exception:

 FLBadVersion: Materialization error. Unexpected stream version 18 where it
 should be 19.

 but that's another issue. I will re-serialize the whole thing again, but
 just wanted to provide some feedback.




 2013/4/30 Max Leske maxle...@gmail.com


 http://rmod.lille.inria.fr/web/pier/software/Fuel/Version1.9/Documentation/Migration?_s=H48DZqhQOi3ii0La_k=vsCCzX7_rCTEGZvS_n20

 FLMaterializer newDefault
 migrateClassNamed: #Point
 toClass: Coordinate.


 HTH,
 Max

 On 30.04.2013, at 14:42, Hernán Morales Durand hernan.mora...@gmail.com
 wrote:

 I wonder if this feature is already implemented?


 http://lists.gforge.inria.fr/pipermail/pharo-project/2011-November/056143.html

 because I have a map of class renames but I don't know how to tell the
 materializer to serialize and re-materialize with updated names.

 I am using Fuel 1.8 in Pharo 1.4 (Fuel-MartinDias.685,
 FuelCompatibilityBeforePharo20-MartinDias.4)

 Cheers,

 Hernán








-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Where are your package configs for Pharo 2.0

2013-04-30 Thread Mariano Martinez Peck
Maybe this shows that we really need the automated process we are
looking/wishing since a long time :)


On Tue, Apr 30, 2013 at 8:03 AM, Torsten Bergmann asta...@gmx.de wrote:

 I heard about RFB already working on Pharo 2.0
 I heard about Seaside 3.0.8 already work in Pharo 2.0
 I heard about SandstoneDB is now adopted for Pharo 2.0
 I heard about ... already work in Pharo 2.0
 ...

 So please: update your ConfigurationOfXXX and put working
 configs with a #stable definition for Pharo 2.0 into the writable

   http://ss3.gemstone.com/ss/MetaRepoForPharo20

 repo so they show up on Config Browser and can be
 easily installed.

 Your packages and projects will never be visible if you hide
 them on ss, ss3 or SmalltalkHub.

 Also I hope for a Seaside 3.1 config for Pharo 2.0
 which would really be a step forward ...

 Bye
 T.





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [Pharo-users] Cannot be recompiled

2013-04-24 Thread Mariano Martinez Peck
On Wed, Apr 24, 2013 at 10:08 AM, Martin Dias tinchod...@gmail.com wrote:

 Hi,

 (forwarded from pharo-users)

 Object
 subclass: #A
  instanceVariableNames: ''
 classVariableNames: ''
  poolDictionaries: ''
 category: 'Unclassified'.

 (Smalltalk at: #A)
 subclass: #B
  instanceVariableNames: ''
 classVariableNames: ''
  poolDictionaries: ''
 category: 'Unclassified'.

 Object
 variableSubclass: #A
  instanceVariableNames: ''
 classVariableNames: ''
  poolDictionaries: ''
 category: 'Unclassified'.

 I'm working in the new class builder [1]. It automatically propagates
 this format change to the subclasses, instead of raising the error like the
 current class builder does. ie, the class B becomes variable when A becomes
 variable.

 Do you agree?


What happens if a subclass was already variable but not simple variable,
like byte or words?  they will be changed?



 Cheers,
 Martin

 [1]: https://ci.inria.fr/pharo-contribution/job/Slot/



 On Tue, Apr 23, 2013 at 2:05 PM, Martin Dias tinchod...@gmail.com wrote:

 Hi,

 In:

 Object
 subclass: #A
  instanceVariableNames: ''
  classVariableNames: ''
 poolDictionaries: ''
 category: 'Unclassified'.

 (Smalltalk at: #A)
 subclass: #B
 instanceVariableNames: ''
 classVariableNames: ''
  poolDictionaries: ''
 category: 'Unclassified'.

 Object
 variableSubclass: #A
  instanceVariableNames: ''
 classVariableNames: ''
 poolDictionaries: ''
  category: 'Unclassified'.

 --- why do we raise the error B cannot be recompiled?

 what's the problem with reformatting subclasses automatically?

 best regards,
 Martin







-- 
Mariano
http://marianopeck.wordpress.com


[Pharo-project] Has anyone used Zodiac and Seaside to for https?

2013-04-18 Thread Mariano Martinez Peck
Hi. Let's say I have a seaside running over HTTP with
a ZnZincServerAdaptor. Is there a Zodiac adaptor I can use to have my
seaside app running over HTTPS?

Thanks,

-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [Metacello] FTP repo without storing username/pass in ConfigurationOf

2013-04-17 Thread Mariano Martinez Peck
On Tue, Apr 16, 2013 at 6:13 PM, Dale Henrichs dhenr...@vmware.com wrote:

 Mariano,

 repositorOverrides: does apply to the entire load sequence, so it's not
 the best option for trying to simply keep your credentials private ...


OK.


 The http repository does not expose user names and works just fine picking
 up the image based instance with credentials defined so I would expect the
 ftp repository to behave similarly.


+



 If you want to keep the ftp user private the long term answer is submit a
 bug against the ftp repository implementation and ask that ftp repositories
 behave the same as http repositories with respect to credentials.


+1



 Like I said before, I don't think that Metacello should be in the business
 of managing credentials and that includes adding features to Metacello
 whose sole purpose is to make up for a deficiencies elsewhere in the system
 ...

 For the short term, you might just change the definition of
 MCFtpRepositorydescription from:

   description
 ^ 'ftp://', user, '@', host, '/', directory

 to:

   description
 ^ 'ftp://', host, '/', directory

 and your username can be kept private ... I doesn't appear that
 description is used for anything other than display and comparison purposes
 ...


Yes, this is a very good idea.
I will open an issue in the bug tracker.
Anyone has an objection?

Cheers,



 Dale

 - Original Message -
 | From: Mariano Martinez Peck marianop...@gmail.com
 | To: metace...@googlegroups.com
 | Sent: Tuesday, April 16, 2013 12:35:18 PM
 | Subject: Re: [Metacello] FTP repo without storing username/pass in
 ConfigurationOf
 |
 | On Tue, Apr 16, 2013 at 3:47 PM, Dale Henrichs dhenr...@vmware.com
 wrote:
 |
 |  Mariano,
 | 
 |  After closer inspection it turns out that for FTP repositories, you
 must
 |  specify the username to uniquely identify the FTP url. If you specify
 the
 |  username and leave the password empty in your Metacello spec, things
 should
 |  work correctly ...
 | 
 | 
 | Hi Dale,
 |
 | Thanks for the gory details, I understood :)
 | Now I wonder...imagine I don't want to even include the username in the
 | ConfigurationOf  shouldn't the repository override trick work?
 | Something along the lines of:
 |
 | | repository |
 | repository := MCFtpRepository
 |   host: 'ftp.mydomain.com'
 |  directory: 'myDirectory'
 |  user: 'whatever'
 |  password: 'whatelse'.
 | version := (ConfigurationOfXX project version: 'xxx').
 | version
 | repositoryOverrides: Array with: repository.
 | version load.
 |
 | just to be sure...#repositoryOverrides: does not propagate to transitive
 | dependencies right?
 |
 | Thanks in advance,
 |
 |
 |
 |
 |
 |  Here are the gory details.
 | 
 |  There is code in Metacello that looks like the following:
 | 
 |description := aSpec description.
 |(repo := repositories
 |  detect: [:rep | rep description = description ]
 |  ifNone: [ aSpec createRepository ]) ~~ nil
 |ifTrue: [ repos add: repo ]
 | 
 |  where Metacello is attempting to determine if the repository has
 already
 |  been created in the image. If the repository exists, then the in-image
 |  credentials are used and you don't have to include user and password
 in the
 |  Metacello repository spec.
 | 
 |  BTW, if you look at MCRepository= Metacello is basically using the
 same
 |  algorithm.
 | 
 |  Now if you look at how MCHttpRepository behaves:
 | 
 |(MCHttpRepository
 |  location: 'http://example.com'
 |  user: 'foo'
 |  password: 'bar') description.
 | 
 |  prints as:
 | 
 |'http://example.com'
 | 
 |  Notice that the user is excluded from the description.
 | 
 |  Whereas for MCFtpRepository behaves differently:
 | 
 |(MCFtpRepository
 |  host: 'ftp.mydomain.com'
 |  directory: 'myDirectory'
 |  user: 'whatever'
 |  password: 'whatelse') description.
 | 
 |  prints as:
 | 
 |'ftp://whate...@ftp.mydomain.com/myDirectory',
 | 
 |  Notice that the `user` is included in the description...
 | 
 |  So if you want an FTP repository to be considered #= to another FTP
 |  repository you must specify the user name ...
 | 
 |  Let me know if this works for you.
 | 
 |  Dale
 | 
 |  - Original Message -
 |  | From: Mariano Martinez Peck marianop...@gmail.com
 |  | To: metace...@googlegroups.com
 |  | Sent: Tuesday, April 16, 2013 7:55:50 AM
 |  | Subject: Re: [Metacello] FTP repo without storing username/pass in
 |  ConfigurationOf
 |  |
 |  | On Mon, Apr 15, 2013 at 10:14 PM, Dale Henrichs dhenr...@vmware.com
 
 |  wrote:
 |  |
 |  | 
 |  | 
 |  |  |
 |  |  |
 |  |  |  and set the username/password there, then Metacello should
 honor
 |  that
 |  |  |  (like it does for the HTTP repository) ... so instead of adding
 |  some
 |  |  sort
 |  |  |  of repository override to the load script, simply create the
 FTP
 |  |  repository
 |  |  |  with username/password inline in your load script.
 |  |  | 
 |  |  |
 |  |  |
 |  |  | Do you mean that I

[Pharo-project] About sqnappy and LZ4

2013-04-17 Thread Mariano Martinez Peck
Hi,

I was checking https://github.com/mumez/sqnappy. Some time ago I wrote
bindings for LZ4:
http://smalltalkhub.com/#!/~marianopeck/LZ4

Do you know which are the differences?

It looks both are intended for the same purpose: speed in
decompression/compression over compression ratio. From what I can see in
http://fastcompression.blogspot.fr/p/lz4.html it says encoding 555 MB/s
decoding 1.80 GB/  while in  https://code.google.com/p/snappy/  it says
Snappy compresses at about 250 MB/sec or more and decompresses at about
500 MB/sec or more.

So...doesn't LZ4 seem to be faster than sqnappy?  And I already wrote the
bindings for LZ4...so I was wondering that...

Best regards,



-- 
Mariano
http://marianopeck.wordpress.com


[Pharo-project] FTP repo without storing username/pass in ConfigurationOf

2013-04-15 Thread Mariano Martinez Peck
Hi all,

I have the code of an app in a FTP repo which has username/password.
I am doing a ConfigurationOfMyApp now and I would need to define in the
baseline something like

spec repository: 'ftp.mydomainapp.com ...etc'.

I know I have a similar method for also specifying the username/pass. But I
don't want that because it means storing the username/pass in the
ConfigurationOf code.

Sohow can I manage this with metacello? the only thing I found (which I
am not sure if it works) is to use repositoryOverride so when I am about to
load my project I do a #repositoryOverride: passing as argument a FTP with
my username/password.

What do you think?

best,

-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] RFB server and 2.0

2013-04-15 Thread Mariano Martinez Peck
It worked for me when I tried 2 or 3 weeks ago


On Mon, Apr 15, 2013 at 3:37 PM, Esteban Lorenzano esteba...@gmail.comwrote:

 Hi,

 Someone has tried RFB in 2.0? I installed it, but looks like it is not
 working :(

 Esteban




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Toothpick

2013-04-09 Thread Mariano Martinez Peck
shouldn't be better to use the newer paulepulpe or something like that done
by Santiago Bragañolo? I guess he did not write it from scratch just
because


On Tue, Apr 9, 2013 at 12:47 PM, p...@highoctane.be p...@highoctane.bewrote:

 You have been added.

 Have fun.

 Like your work BTW
 Phil


 2013/4/9 S Krish krishnamachari.sudha...@gmail.com

 skrish


 On Tue, Apr 9, 2013 at 7:42 PM, p...@highoctane.be p...@highoctane.bewrote:

 I can add you to the repo on STH. What's your user?


 2013/4/9 S Krish krishnamachari.sudha...@gmail.com

 *LoggingEvent* 

 *printBasicsOn: aStream
 aStream nextPutAll: LoggingEvent timestampClass now asString;
 nextPutAll: '   ';
 nextPutAll: self levelString;
  nextPutAll: ' - ';
  nextPutAll: self messageString*

 I will like to see the timestamp printed out akin to the log4j output..

 Also I had added a Logger class that will allow* multi channel logging*of 
 the same log outputs: transcript, stream , file , socket, based on
 adding to a loggerCollection class instance variable.




 On Tue, Apr 9, 2013 at 1:20 PM, p...@highoctane.be 
 p...@highoctane.bewrote:

 Hi,

 No, it didn't. There are missing selectors for DateAndTime and the
 tests aren't right in the first place.

 No, didn't change SqueakSource. Anyone is welcome to do so.

 Also, some FileSystem changes have to occur.

 Phil


 2013/4/9 Paul DeBruicker pdebr...@gmail.com

 philippeback wrote
  I've taken the Toothpick source (as mentioned in the Collaboractive
 book)
  and put the packages in Smalltalk Hub.
 
  There were some things with trimming blanks which I fixed.
 
  Now, some tests aren't right (but because they use dates from 2006
 and we
  are in 2013)
 
  If someone could look in there, it would be nice.
 
  http://smalltalkhub.com/#!/~philippeback/Toothpick
 
  Phil


 So just changing from 2006 to 2013 made the tests pass?


 Thanks for moving the repo.  Did you edit the Squeaksource page to
 point at
 it?






 --
 View this message in context:
 http://forum.world.st/Toothpick-tp4680310p4680345.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.









-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Hot keys in Pharo

2013-04-09 Thread Mariano Martinez Peck
On Mon, Apr 8, 2013 at 10:49 AM, p...@highoctane.be p...@highoctane.bewrote:

 There already a lot that are documented under the little arrow on the top
 right of the windows, at the bottom.


Indeed. I tried to explain that in:
http://marianopeck.wordpress.com/2012/05/19/pharo-tips-and-tricks/
under title  *There is a top-right arrow!*  and *Get list of available
shortcuts*:

Best,


 Phil


 2013/4/8 roberto.mine...@usi.ch roberto.mine...@usi.ch

 Hi,

 When I attended PharoConf last week, I've seen that there are many
 keyboard shortcuts embedded in Pharo that I wasn't aware of (e.g., creating
 a default initialize message). IMHO it would be cool to collect all such
 hot keys in a webpage or Wiki since those are really a killer features for
 developers.

 Cheers,
 Roby





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Collect all references to AnObsoleteFoo

2013-04-06 Thread Mariano Martinez Peck
Martin, should be manage obsolete always that way (meaning to put such
behavior directly inside Fuel)?
If not, could be write your awesome code in the Fuel website?

Thanks!!! :)




On Sat, Apr 6, 2013 at 8:26 AM, roberto.mine...@usi.ch 
roberto.mine...@usi.ch wrote:

 Martin, your solution is awesome.

 I've seen the presentation at Pharoconf about setting an analyzer to the
 serializer and I was thinking in that direction.

 Thanks a lot,
 R

 On Apr 5, 2013, at 4:59 PM, Martin Dias tinchod...@gmail.com wrote:

  As Fernando said, probably is better for you to substitute the obsolete
 class by a ring definition. Look here:
 
  http://ws.stfx.eu/OAVG8IXKWOYA
 
  Don't need to filein the workaround of my previous email.
 
  Martin
 
 
  On Fri, Apr 5, 2013 at 4:47 PM, Martin Dias tinchod...@gmail.com
 wrote:
  Hi,
  I'm sorry for my delay. I didn't stop to think a good solution. There
 were interesting answers before mine. But if it's a prototype... maybe this
 workaround helps you. I played with this code:
 
  http://ws.stfx.eu/HYWM1ZB9R45K
 
  (the first time I use the shared workspace :-)
 
  if you file in the attached file, it materializes the new A class.
 
  But this will be not useful for you, if either:
  - you don't have the original class at materialization time
  - you don't want to know if the class was obsolete at serialization time
 
  HTH
  Martin
 
 
 
  On Tue, Apr 2, 2013 at 7:33 AM, Yanni Chiu ya...@rogers.com wrote:
  On 02/04/13 12:50 AM, roberto.minelli-BHDiRLqP7qo@public.gmane.orgwrote:
 
  Is there any way to browse through such references to understand where
 are they?
 
  From an inspector, choose the Explore pointers, making sure you've
 selected the object that you're trying to understand what is referencing it.
 
  It takes trial  error, and intuition on which pointers to follow. This
 method has often been unsuccessful for me.
 
  Another approach (my memory is fuzzy), was to put a halt at a suitable
 place during the Fuel serialization. Then explore the intermediate
 structures used by Fuel, to try to find out why Fuel thinks it needs to
 serialize that object.
 
  Yet another approach is to put a halt in the Fuel materialization, and
 explore the intermediate structures used by Fuel. You might even set up a
 mapping of the obsolete class to some temporary class, which allows Fuel to
 fully materialize the saved objects. You can then explore the Fuel
 intermediate structures, as well as the final de-serialized object
 structure.
 
 
 
 





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Nautilus accessor over-generation

2013-04-04 Thread Mariano Martinez Peck
On Thu, Apr 4, 2013 at 9:07 AM, Sean P. DeNigris s...@clipperadams.comwrote:

 Benjamin Van Ryseghem-2 wrote
  Since Nautilus is meant to also work without the refactoring engine, I
  have provided the Analyze menu

 Maybe it could appear conditionally - only if refactoring is not present -
 and be called something more similar to Refactoring like Basic
 Refactoring...


+1   I also found confusing Sean observation. Also, sometimes I did have
some of the setters/getters before and I didn't like Nautilus would
recreate them anyway (without warning me that some of them were already
defined). This is problematic when you use lazy getters (getters in which
you set something only when nil).

Best,




 -
 Cheers,
 Sean
 --
 View this message in context:
 http://forum.world.st/Nautilus-accessor-over-generation-tp4679480p4679575.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Looking for a Seaside 3.1 Configuration for Pharo 2.0

2013-03-27 Thread Mariano Martinez Peck
On Wed, Mar 27, 2013 at 2:11 PM, Stéphane Ducasse stephane.duca...@inria.fr
 wrote:

 Hi guys

 we would like to use seaside to validate the VM and also make sure that
 Seaside31. works perfectly in Pharo2.0.
 I saw that some of you have a working configuration. Where can we find it
 because we would like to publish it in the
 MetaRepoForPharo20.


+. I would love to have working confs for Seaside 3.1, Pier 2 and
Magritte 2.

Cheers,

-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Problem downloading packages with Monticello from Smalltalkhub because of setAcceptEncodingGzip

2013-03-21 Thread Mariano Martinez Peck
Once I have a problem loading something from SS3 which was a piece of
source code with non-utf8 characters (WideString).
Could it be possible you have some non-utf characters in the source of the
package you are loading?
Cheers,

On Thu, Mar 21, 2013 at 10:08 AM, Sven Van Caekenberghe s...@stfx.euwrote:

 Andrei,

 On 21 Mar 2013, at 13:28, Andrei Vasile Chis chisvasileand...@gmail.com
 wrote:

  Hi Sven,
 
  I tried all the command from your previous mail and the results are
  the same (output bellow).

 Thanks for the feedback.

  The strange thing is that I can download other files from smalltalkhub
  without problems.

 What do you mean, that it only fails for that particular mcz file from
 StHub in Pharo, but that others are OK ?
 That would be very disturbing. Can you give an example of a call that does
 work, with the Transcript output, like

 ZnClient new
 logToTranscript;
 setAcceptEncodingGzip;
 get: '
 http://www.smalltalkhub.com/mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-Tests-AndreiChis.1.mcz
 ';
 response.

 2013-03-20 23:17:17 995343 I Wrote a ZnRequest(GET
 /mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-Tests-AndreiChis.1.mcz)
 2013-03-20 23:17:17 995343 D Sent headers
 User-Agent: Zinc HTTP Components 1.0
 Accept-Encoding: gzip
 Host: www.smalltalkhub.com
 Accept: */*

 2013-03-20 23:17:17 995343 I Read a ZnResponse(200 OK
 application/x-monticello 3451B)
 2013-03-20 23:17:17 995343 D Received headers
 Date: Wed, 20 Mar 2013 22:17:18 GMT
 Content-Encoding: gzip
 Transfer-Encoding: chunked
 Content-Length: 3451
 Vary: Accept-Encoding
 Server: KomHttpServer/7.1.3 (unix)
 Content-Type: application/x-monticello

 2013-03-20 23:17:17 995343 T GET
 /mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-Tests-AndreiChis.1.mcz 200
 3451B 272ms

  A short summary:
 
  ZnEntityReader#readEntity calls ZnEntityReader#readEntityFromStream
  which does 'GZipReadStream on: stream', after which
  'readFrom:usingType:andLength:' is called.
  In a wrong call,  'GZipReadStream on: stream' always throws
  ConnectionClosed. This is handled in
  ZnClientexecuteWithRetriesRemaining:
  which keeps retrying until retryCount is 0. On the other hand for some
  files 'GZipReadStream on: stream'
  returns correctly, no exception is raised and it works ok.
 
  The exception is thrown in SocketwaitForDataFor:ifClosed:ifTimedOut:
  because SocketprimSocketConnectionStatus:
  returns 3 instead of 2.
   [(Time millisecondsSince: startTime)  msecsDelta] whileTrue: [
 here 'self primSocketConnectionStatus: socketHandle' is
 2
(self primSocketReceiveDataAvailable: socketHandle)
ifTrue: [Transcript crShow: 'hasData'. ^self].
 here 'self primSocketConnectionStatus: socketHandle' is
 3, if
  there is no more content to be read
  so 'self isConnected' will be false.
self isConnected
ifFalse: [Transcript crShow: '
  notConnected'.^closedBlock value].
self readSemaphore waitTimeoutMSecs:
(msecsDelta - (Time millisecondsSince: startTime)
 max: 0).
].
 
  That fact that this exception is raised during the call to
  'GZipReadStream on: stream' seem to be the problem,
  as this does not allow readFrom: stream usingType: self contentType
 andLength:
 
  I hope this makes sense.

 We probably do not have to look in the socket[stream] layer, the first
 place to look is in ZnEntityReader, more specifically: what was the
 situation wrt headers before it starts reading the body, what decisions
 were taken, and how far was/is it in the reading process.

  I can try to dig more into it tomorrow.
  If you want me to look at other things let me know.

 I am wondering whether we could set some temporary screen sharing over the
 internet, so that I can remotely work in an image running on a machine in
 your network…

 Sven

  Cheers,
  Andrei
 
 
 --
 
  $ curl
 http://www.smalltalkhub.com/mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-Tests-AndreiChis.1.mcz
  -H Accept-Encoding: gzip | gunzip  foo.mcz
   % Total% Received % Xferd  Average Speed   TimeTime Time
  Current
  Dload  Upload   Total   SpentLeft
  Speed
  100  33070  33070 0   7583  0 --:--:-- --:--:-- --:--:--
  8889
 
  $ file foo.mcz
  foo.mcz: Zip archive data, at least v2.0 to extract
 
  $ ls -l foo.mcz
  -rw-r--r--  1 andrei  staff  3451 Mar 21 09:55 foo.mcz
 
  $ unzip -l foo.mcz
  Archive:  foo.mcz
   Length Date   TimeName
     
18  03-27-11 02:22   package
   188  03-27-11 02:22   version
  8588  03-27-11 02:22   snapshot/source.st
  9014  

Re: [Pharo-project] [Pharo-users] [squeak-dev] GSoC13: Google Summer of Code started, your ideas please!

2013-03-21 Thread Mariano Martinez Peck
Hola tocayo!

Maybe you can find this interesting: http://www.squeaksource.com/Jabber/

Best,


On Thu, Mar 21, 2013 at 2:41 PM, Mariano Vicente m.vic...@gmail.com wrote:


 ​Hi, my name is Mariano,i'm a student at University of Quilmes. i have a
 experience in other programing languages like Scala, or Objective-c, and i
 like to participate in a real Smaltalk project. My background  in this
 tecnology, is a little small, i never make a real project (I do in other
 tecnlogies) and i think the summer of code is a great oportunity for learn
 and practice.

 My ideas are:


 Level: intermediate
 Possible mentor: guillermo polito
 Possible second mentor: (?)
 Description: jabber client / server to communicate smaltalk with this
 common protocol.
 Technical Details: Create a jabber client api, to provide the capacity to
 connect with accouts like google talk, or facebook chat.
 Create a jabber api server, with the capacity of accept connection of
 diferent jabber clients.
 Benefits to the Student:
   - Learn
 ​​
 ​​
 ​ and understand ​
 architecture
 ​​
 server/client
   - Learn about the protocol jabber.

 ​
 ​
   - Use a highly reflective dynamic language​


 Benefits to the Community:
   - Server and client for jabber protocol
   - Posible implementations for chatbots, chatclients, chatservers
 ​

 And :

 ​Level: intermediate
 Possible mentor: Guillermo Polito
 Possible second mentor: (?)
 Description: Animation Library based on Athens
 Technical Details: Animation Library, to make visual animation objects in
 the screen, such as move, bounce , etc.
 Benefits to the Student:
   - Learn the basics of animations and moving objects.
   - Learn about manage of graphics
   - Understand the concepts of movement functions

 Benefits to the Community:
   - Get a library to make custom animations with the posibility of add new
 ones.



 ​


  ​Regards,
 Mariano


 On Wed, Mar 13, 2013 at 7:14 PM, Guillermo Polito 
 guillermopol...@gmail.com wrote:

 And another one:

  Level: intermediate
  Possible mentor: Santiago Bragagnolo
  Possible second mentor: Guillermo Polito

  Description: Gamification is becoming more and more popular in a lot of
 applications. What about gamify the pharo development process? You get
 points by adding comments, fixing bugs or answering questions. You can be a
 comment healer, a bug slayer, a Zinc magician. The intend of this project
 is to build an application that integrates with the Pharo development
 process tools (issue tracker, smalltalkhub, stack overflow) and provides a
 gamified experience, so we get more and more motivated to code.

   Technical Details: This project implies the creation of an application
 which communicates with different applications APIs and perform some
 analysis on them such as running source code Lint rules. Additionally, this
 application should have a web frontend.


   Benefits to the Student
   - Use a highly reflective dynamic language
   - Learn to develop a complex application architecture with several
 communicating components
   - Learn about ramification concepts
   - Learn about an open source project development and integration
 process, such as Pharo
   - Learn web application development techniques

   Benefits to the Community
   - have a platform to organize activities and events around the Pharo
 development
   - be more motivated to participate into the development for rewards
 such as experience, badges and abilities


 On Wed, Mar 13, 2013 at 4:40 PM, Guillermo Polito 
 guillermopol...@gmail.com wrote:

 Hi Janko!

 We have this:

  Level: intermediate
  Possible mentor: Guillermo Polito

  Possible second mentor: Esteban Lorenzano

  Description: DBXTalk database driver nowadays uses a native library
 called OpenDBX. This library stands as an adaptor between different
 database drivers, implemented in C. This native library supposes many
 problems:
   - it should be normally compiled for each different platform (Windows,
 *nix, macosx) and database vendor
   - each of its bugs should be fixed in a C source code base
   - OpenDBX do not expose the particular behavior of each database
 vendor, but their common denominator
   - difficulty for distribution, and problems to locate libraries.
   This project proposes to use NativeBoost bindings to remove the
 necessity of the native openDBX library, simplifying the deployment of
 applications using relational databases, and moving all the code base to
 Smalltalk.

   Technical Details: This project supposes the replacement of openDBX
 old FFI bindings by direct nativeBoost bindings to the database drivers.
 The new drivers should be completely written in Smalltalk, and take care of
 platform and library resolution in the image side. These drivers should be
 polymorphic while also enabling the access to specific API provided by
 database vendors.

   Benefits to the Student
   - Use a highly reflective dynamic language
   - Learn the basics of foreign function interface (and its exponent
 

Re: [Pharo-project] Problem downloading packages with Monticello from Smalltalkhub because of setAcceptEncodingGzip

2013-03-21 Thread Mariano Martinez Peck
On Thu, Mar 21, 2013 at 4:47 PM, Sven Van Caekenberghe s...@stfx.eu wrote:


 On 21 Mar 2013, at 14:52, Sven Van Caekenberghe s...@stfx.eu wrote:

  On 21 Mar 2013, at 14:37, Andrei Vasile Chis chisvasileand...@gmail.com
 wrote:
 
  I will check, however it happes for a lot of packages.
  Some work, and some do not work.
 
  Strange, I don't think it has to do with the contents, the MC unzipping
 has not yet even happened.
  Maybe the size is an element (chunking, buffering).
 
  @Sven I have a linux installation on virtual box where I could
 reproduce this problem.
  I can give you access to it.
 
  OK, continuing off list.
 
  Sven

 Andrei was very helpful in giving me remote access to a machine with a
 Pharo 2.0 image running inside their network, so that I could have a look
 at his problem myself - Thanks Andrei !

 I think I finally found the cause of this mysterious bug.

 The bug only appears when ZnEntityReader#readEntityFromStream needs to
 read a GZIP compressed response without an explicit Content-Length (so that
 it has to read up to end - pretty rare, apparently more common in the case
 of certain proxies) for a total size less than 65536 bytes (that is why it
 didn't happen on all cases ;-).

 In these particular circumstances, a GZipReadStream was created directly
 on top of a raw SocketStream, which immediately sends a #next: 65536 to the
 SocketStream. Which fails with a ConnectionClosed instead of returning just
 the available bytes (like #upToEnd).

 The fix depends on the question which method is actually wrong, the
 subject of my next mail ;-)


wowwhat a great catch. Thanks Sven for all your hard and excellent
work!!!



 Sven

 --
 Sven Van Caekenberghe
 http://stfx.eu
 Smalltalk is the Red Pill





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Penelope is in town! (or how to have access to the new issue tracker)

2013-03-19 Thread Mariano Martinez Peck
Could someone explain what Penelope is and why we need it?
We need it now (fogbugz) but we didn't need it before (google code)?
What does it do?
Doesn't fogbugz provide what penelope does?  from the website I just see
the items and I can filter by groups...isn't that provided by fogbugz?

thanks,

On Tue, Mar 19, 2013 at 2:38 PM, Nicolas Petton petton.nico...@gmail.comwrote:

 Hi!

 Ben and I finally put the Penelope monkey online!
 You can access to all issues at http://bugs.pharo.org and register there
 to get access to Fogbugz.

 Cheers,
 Nico




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] beta 1.4 documentation online

2013-03-12 Thread Mariano Martinez Peck
Why don't we add a link in the Pharo website with such an online help?
It would be nice if this is indexable by Google.

Thanks Cami!!! Nice job

On Tue, Mar 12, 2013 at 2:00 PM, Camillo Bruni camillobr...@gmail.comwrote:

 how I hate the options of the VM |(

 no --help,
 -help exits unsuccessful
  grml grml grml

 On 2013-03-12, at 17:20, p...@highoctane.be p...@highoctane.be wrote:

  And it is not even true
 
   imageName defaults to `Squeak.image'.
 
  as I get  a file dialog when such an image is in the folder. (Duly
  created with the save command)
 
  Phil
 
  2013/3/12 Camillo Bruni camillobr...@gmail.com:
 
  On 2013-03-12, at 16:51, Sven Van Caekenberghe s...@stfx.eu wrote:
 
  These are the standard installed handlers:
 
  $ ../vm.sh Pharo.image --list
  Currently installed Command Line Handlers:
st  Loads and executes .st source files
FuelLoads fuel files
config  Install and inspect Metacello Configurations from
 the command line
saveRename the image and changes file
testA command line test runner
update  Load updates
printVersionPrint image version
evalDirectly evaluates passed in one line scripts
 
  for each of them you can do --help
 
  $ ../vm.sh Pharo.image save --help
  Usage: save imageBaseName [--delete-old]
   imageName a base name for the image
   --delete-oldremove the old image and changes file
 
  Documentation:
  Saves the image and changes file under a new name.
 
  Examples:
   # create a 'bar.image' and 'foo.changes'
   $PHAROVM Foo.image saveAs bar
   # create the same file as in the previous example but delete
 Foo.image and Foo.changes
   $PHAROVM Foo.image saveAs bar --delete-old
 
  Sven
 
  ups, typos, typos: saveAs = save :/
  I'll open an issue
 
 
  On 12 Mar 2013, at 16:48, Sven Van Caekenberghe s...@stfx.eu wrote:
 
  That already exists no ?
 
  $ ./vm.sh Pharo.image save Foo
 
  will do a 'Save As..' to Foo.[image|changes]
 
  On 12 Mar 2013, at 16:45, p...@highoctane.be p...@highoctane.be
 wrote:
 
  BTW, an interesting additional ./vm.sh command would be:
 
  $./vm.sh clone Pharo WebDocExperiment
 
  which would do a copy of Pharo.image and Pharo.changes to the
  WebDoc.image and WebDoc.changes
 
  Phil
  2013/3/12 Martin Dias tinchod...@gmail.com:
  impressive!!
 
  On Tue, Mar 12, 2013 at 3:06 PM, p...@highoctane.be 
 p...@highoctane.be wrote:
  http://pharo.gforge.inria.fr/doc/1.4/doc/package/undefined
 
  RSArrayNode.
 
  2013/3/12 Camillo Bruni camillobr...@gmail.com:
 
  On 2013-03-12, at 14:49, Guillermo Polito 
 guillermopol...@gmail.com wrote:
 
  On Tue, Mar 12, 2013 at 2:18 PM, Camillo Bruni 
 camillobr...@gmail.comwrote:
 
  finally, after the 100th attempt I managed to export the
 documentation on
  1.4
 
  http://pharo.gforge.inria.fr/doc/1.4
 
  this weekend I will tackle 2.0 :) and of course, it still needs
 some love!
 
 
  - How can I export it myself too?
 
  currently work in progress, but there is a configuration for it:
 
  Gofer new
  url: 'http://smalltalkhub.com/mc/dh83/webdoc/main'
  configurationOf: 'WebDoc';
  loadDevelopment.
 
  And I think you have to manually start up a seaside adapter, once
 that is done:
 
  http://localhost:8080/doc
 
  should do the trick.
 
 
  - We should report issues about it in the foogzbuz (or whatever
 it is
  called I cannot reproduce yet :P).
 
  yes, maybe let's wait until next weekend :) since it doesn't run
 under
  2.0 yet :P. I won't work on during the day :P that is reserved
 for Guido and
  the paper...
 
 
 
 
 
 
 
 





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Pharo consultants

2013-03-09 Thread Mariano Martinez Peck
Thanks Stef for the nice words :)
Maybe a first step which could be quite easy is to add a page of Pharo
associated consultants or something like that in the Pharo website. Like
the one we have now for contributors:
http://www.pharo-project.org/community/contributors
but for consultants. And each consultant can write a few keywords or small
paragraph about their expertise.

Best,

On Sat, Mar 9, 2013 at 7:11 PM, Sebastian Sastre 
sebast...@flowingconcept.com wrote:

 Ah I get it, that's right.

 Probably what I mean is a better site of that goal which is answering *who
 is who in terms of what he/she did*

 thinking in https://angel.co/ as a benchmark

 sebastian https://about.me/sebastianconcept

 o/





 On Mar 9, 2013, at 5:39 PM, stephane ducasse wrote:


 That would be awesome.

 Glad to hear about an initiative to make things sustainable.

 A catalog of people who works using it would be great.


 We have the association just for that! In the next version we will add
 blogging facilities.

 No need to be a social network site, just a catalog for people to navigate
 who's working with it. Plus a subscribe/login for everyone manage its own
 profile so consultants can set a photo some bio and its portfolio


 Did you check the association web site :)

 Everybody could endorse skills or write reviews


 We cannot do that but you can link to linkedIn.

 I know I know... Linked In already kind of does that, but that's not the
 point


 so we are already linking into  linkedIn :)


 The point is that we have our little proprietary thing focused on Pharo
 and endorsed by Pharo itself


 We have the association and it points to linkedIn


 If I would have available time I would make flowing itself to sponsor with
 developing such a site/extension to current pharo site


 Sorry but I do not understand what you mean.



 sebastian https://about.me/sebastianconcept

 o/





 On Mar 8, 2013, at 6:05 PM, Stéphane Ducasse wrote:

 Hi guys

 I just got a nice chat with a cool Pharo expert (Mariano) that is doing
 consulting and development around Pharo and this is a cool feeling to know
 that smart guys in our community can find nice jobs that keeps them busy in
 Pharo.
 I think that we should market the community much more, because I think
 that this is important for other companies
 to know that they can find help with really talented people in our
 community.
 May be we should make more noise around:
 Pharo: a community with smart developers for cool business

 Stef











-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] VM Crashes

2013-03-08 Thread Mariano Martinez Peck
On Fri, Mar 8, 2013 at 11:44 AM, Sven Van Caekenberghe s...@stfx.eu wrote:


 On 08 Mar 2013, at 13:09, Camillo Bruni camillobr...@gmail.com wrote:

  On 2013-03-08, at 11:53, Sven Van Caekenberghe s...@stfx.eu wrote:
 
  On 08 Mar 2013, at 11:16, Sven Van Caekenberghe s...@stfx.eu wrote:
 
  But I have said this before: the wall clock time of loading a lot of
 code is actually close to unacceptable - I don't think it is the download
 or the compilation, but more all the dynamic stuff that happens after that.
 There should be a way to not do all those updates for each method and move
 the updates to one big batch update after the load - if that is possible.
 
  To continue my rant (sorry ;-) about the problem with slow code loading.
 
  These are some benchmarks on the same machine:
 
  $ ./vm.sh experimental.image eval '[Smalltalk allClassesAndTraits do:
 #compileAll] timeToRun'
  106532
 
  $ ./stack/vm.sh experimental.image eval '[Smalltalk allClassesAndTraits
 do: #compileAll] timeToRun'
  221708
 
  So it takes like 3 minutes to recompile every method in the system.
 
  How in the hell can it take 40 minutes to load some code (with all
 packages already present in the package-cache (but then again the
 package-cache is only 3.5 Mb, which could be downloaded in seconds)) ?
 
  I with you on this one! :D I always wondered what Metacello and Compiler
 do there! :D

 Well, open the Time Profiler and load your favourite Config. You'll have a
 hard time finding the actual time slice of the compiler. As far as I could
 see in my run it was less than 1% !  All the rest MC, Gofer, RPackage and
 SystemAnnouncement stuff, even completion stuff.


Indeed, we noticed this as well when benchmarking Tanker to replace source
compilation in Monticello. We got to a similar conclusion.

Quite a challenge to optimize if you ask me.


- Batch notifications: do not do a notification per method/class added.
Instead do one notification with all the methods/classes together.


-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Is this possible with XMLWriter?

2013-03-05 Thread Mariano Martinez Peck
Thank you all guys. Indeed, it was quite possible to manually build the DOM.
I was confused because the package was called XML*Parser*. I could see
the nodes and all the DOM but I didn't expected these classes would
understand writing behavior like #named: , #add: etc... but yes, they do
understand so you can manually build the DOM and when you are done you can
just get the resulting string.

Best,

On Thu, Feb 28, 2013 at 12:50 PM, stephane ducasse stephane.duca...@free.fr
 wrote:

 Please use the version that is now published in PharoExtras.
 If you add tests please commit them :)


 On Feb 27, 2013, at 6:55 PM, Mariano Martinez Peck marianop...@gmail.com
 wrote:

 Hi guys. I am using XMLWriter from http://www.squeaksource.com/XMLWriterto 
 write a specific XML that a protocol expects.
 What I need is to build the XML file from parent to children and
 dynamically. For example, I want to be able to define a tag, but then,
 later on, add more tags to a parent element.
 I found this impossible to do with the current XMLWriter. Here,  messages
 like #tag:with: , #with:  do not help.
 I know I will need to build everything in memory and send a write
 contents at the end to get the final XML string...

 For example, say I wanna build this XML:

 root
 parent1
 child1grrrchild1
  child2grrrchild2
 /parent1
 parent2
  child3buhhhchild3
 /parent2
 /root

 i would like an API like this:

 | xmlWriter |
 xmlWriter := XMLWriter new.
 xmlWriter tag: 'root'.
 (xmlWriter named: 'root') tag: 'parent1'.
 (xmlWriter named: 'parent1') tag: 'child' with: 'grrr'.
 (xmlWriter named: 'root') tag: 'parent2'.
 
 xmlWriter write contents.


 Or even if I don't have #named:  but I can store them in instVars it would
 be fine:

 | xmlWriter rootTag parent1Tag |
 xmlWriter := XMLWriter new.
 rootTag xmlWriter tag: 'root'.
 parent1Tag rootTag tag: 'parent1'.
 parent1Tag tag: 'child' with: 'grrr'.
 rootTag tag: 'parent2'
 xmlWriter write contents.


 Any ideas how to do this?

 Thanks,

 --
 Mariano
 http://marianopeck.wordpress.com





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [Nautilus] Slow Package Menu on Mouse Button Right Click + Fix

2013-03-04 Thread Mariano Martinez Peck
Don't forget to sign the license and send it if you didn't do it yet!

Best,

On Mon, Mar 4, 2013 at 4:50 PM, stephane ducasse
stephane.duca...@free.frwrote:

 Thanks a lot Mike.
 Such contributions are really welcome. We are all working like nuts on so
 many things :).

 Stef



 Dear Pharoers,

 thank you all for your time and great contributions!

 Here is a quick performance fix for Nautilus.

 In Pharo2.0a #20581 and previous versions, selecting the package menu with
 my right mouse button lasts too long;
 here is why:

 95.4% {564ms} NautilusUI(AbstractNautilusUI)packageMenuBuilder
   95.4% {564ms} PragmaMenuBuilder classwithAllPragmaKeywords:model:
 95.4% {564ms} PragmaMenuBuilderbuildTree
   95.4% {564ms} PragmaMenuBuildercollectRegistrations
 *90.3%* {534ms} CriticBrowser classpackagesMenu:

 Solution, only call CriticsBrowser initialization when this exact menu
 item is selected.

 CriticsBrowserpackagesMenu: aBuilder
 nautilusGlobalPackageMenu
 (aBuilder item: #'Critics Browser')
 action: [ | packages target env rules |
 target := aBuilder model.
 packages := OrderedCollection new.
 target selectedPackages do: [:p |  MCWorkingCopy managersForCategory: p
 packageName do: [:package | packages add: package]].
 rules :=  RBCompositeLintRule allGoodRules.
 env := (RBPackageEnvironment new packages: packages ).
 self  openOnRule: rules onEnvironment: env];
 help: 'Running critics rules on this package'.


 Maybe there are more





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Test Resources

2013-02-28 Thread Mariano Martinez Peck
On Thu, Feb 28, 2013 at 2:37 PM, Noury Bouraqadi bouraq...@gmail.comwrote:

 Hi,

 Jannik and I are having trouble dealing with resources in our robotic
 project.
 It's strange that resources are reset on every test run. This happens when
 resources are declared in test class method resources.

 My understanding of resources is that they should be reset only once for a
 whole test suite.
 For every test case, they should be setUp/tearDown, but not fully reset.


I don't know what the problem is, but yes, it should be as you said. If
this is not the case, then there is a bug.
wait a minute...what do you mean by reset of resources? I guess you mean
#setUp, right?



 We couldn't find a clean way of working this out.
 We ended up defining our own subclass of TestSuite, which I believe is
 dirty.
 Besides, the behavior is kind of random. It seems that there are some
 cleanups that aren't performed the right time. But, since the failure is
 random, we couldn't manage today to fix this.


 Any hint, idea is welcome,
 Noury
 Ecole des Mines de Douai
 http://car.mines-douai.fr/noury
 --




 Afin de contribuer au respect de l'environnement,
 merci de n'imprimer ce courriel qu'en cas de necessite

 Please consider the environment before you print







-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Is this possible with XMLWriter?

2013-02-27 Thread Mariano Martinez Peck
On Wed, Feb 27, 2013 at 4:24 PM, Gastón Dall' Oglio 
gaston.dallog...@gmail.com wrote:

 Hi Mariano.

 Some like this:


 xmlWriter := XMLWriter new writeWith: [ :writer |
 writer
  enablePrettyPrinting;
 xml;
 comment: 'Generated from Pharo.'.
  writer tag: 'root' with: [
 writer tag: 'parent1' with: [
  writer tag: 'child1' with: 'grrr'.
 writer tag: 'child2' with: 'grrr' ].
  writer tag: 'parent2' with: [
 writer tag: 'child3' with: 'buhhhr' ] ] ].
  xml := xmlWriter contents.


Thanks Gaston. But that exactly what I cannot do  ;) Looks like I didn't
express myself well.
In this case, you are defining a tag completely from the beginning. For
example, to write parent1 and parent2 you already have to pass them from
the beginning to the root.
I want to be able to do that at different times. Add one, THEN (not in the
same block closure) the other one.

Please let me know if my problem is clear. Otherwise, I try again :)





 2013/2/27 Mariano Martinez Peck marianop...@gmail.com

 Hi guys. I am using XMLWriter from http://www.squeaksource.com/XMLWriterto 
 write a specific XML that a protocol expects.
 What I need is to build the XML file from parent to children and
 dynamically. For example, I want to be able to define a tag, but then,
 later on, add more tags to a parent element.
 I found this impossible to do with the current XMLWriter. Here,  messages
 like #tag:with: , #with:  do not help.
 I know I will need to build everything in memory and send a write
 contents at the end to get the final XML string...

 For example, say I wanna build this XML:

 root
 parent1
 child1grrrchild1
  child2grrrchild2
 /parent1
 parent2
  child3buhhhchild3
 /parent2
 /root

 i would like an API like this:

 | xmlWriter |
 xmlWriter := XMLWriter new.
 xmlWriter tag: 'root'.
 (xmlWriter named: 'root') tag: 'parent1'.
 (xmlWriter named: 'parent1') tag: 'child' with: 'grrr'.
 (xmlWriter named: 'root') tag: 'parent2'.
 
 xmlWriter write contents.


 Or even if I don't have #named:  but I can store them in instVars it
 would be fine:

 | xmlWriter rootTag parent1Tag |
 xmlWriter := XMLWriter new.
 rootTag xmlWriter tag: 'root'.
 parent1Tag rootTag tag: 'parent1'.
 parent1Tag tag: 'child' with: 'grrr'.
 rootTag tag: 'parent2'
 xmlWriter write contents.


 Any ideas how to do this?

 Thanks,

 --
 Mariano
 http://marianopeck.wordpress.com





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] fast #becomeForward: crashes without PharoV10.sources

2013-02-25 Thread Mariano Martinez Peck
mmm what do you mean by fast becomeForward: ?

On Mon, Feb 25, 2013 at 1:01 PM, Camillo Bruni camillobr...@gmail.comwrote:

 While setting up the new multi platform VM tests I saw that the tests fail
 extremely quickly
 when there are not PharoV10.sources available.

 It is still our know #becomeForward: but on CompiledMethods, but I just
 want to share that.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] A solution to manage units like inches and centimeters in Pharo?

2013-02-23 Thread Mariano Martinez Peck
Yes, I was going to suggest that.
Maybe Hernan can say more.


On Fri, Feb 22, 2013 at 11:04 PM, Ben Coman b...@openinworld.com wrote:

 Frank Shearar wrote:

 On 22 February 2013 15:45, Guillaume Larcheveque
 guillaume.larcheveque@gmail.**com guillaume.larcheve...@gmail.com
 wrote:


 Does something exists because I looked and don't find anything.



 Something like these?
 * 
 http://map.squeak.org/package/**b546b6af-984e-4e89-a7a5-**875ce0435710http://map.squeak.org/package/b546b6af-984e-4e89-a7a5-875ce0435710
 * 
 http://map.squeak.org/package/**8664cb28-916b-4e8a-8cd6-**b6db73f5024chttp://map.squeak.org/package/8664cb28-916b-4e8a-8cd6-b6db73f5024c

 frank




 I had Aconcagua running on Pharo a year ago before I got sidetracked.
  Can't remember if or what I needed to tweak, but I found a mcz with my
 name on it.

 cheers -ben




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Weird behavior in Nautilus when doing a method rename

2013-02-23 Thread Mariano Martinez Peck
I think all this topic should be quite easy. It should be similar to OB
scope.
All refactors like method rename affects everything if the scope is the
default. If you want to affect only a class/package do a Browse scoped to
a class/package. And then the refactors should only affect that. Of course,
we should explain this somewhere in Pharo doc.
I think this is quite easy and enough for most cases.

On Thu, Feb 21, 2013 at 6:45 AM, Goubier Thierry thierry.goub...@cea.frwrote:

 Le 20/02/2013 21:33, Benjamin a écrit :

 On Feb 20, 2013, at 8:43 PM, stephane ducasse stephane.duca...@free.fr
 mailto:stephane.ducasse@free.**fr stephane.duca...@free.fr wrote:


 On Feb 20, 2013, at 1:07 PM, Benjamin
 benjamin.vanryseghem.pharo@**gmail.combenjamin.vanryseghem.ph...@gmail.com
 mailto:benjamin.vanryseghem.**ph...@gmail.combenjamin.vanryseghem.ph...@gmail.com
 wrote:

  There is actually no simple way to simply rename a method.
 We should maybe add one which keep track of the versions :)


 sure there is:
 click on the method
 in the text pane change the selector of the method and compile.


 I am kind of aware of that :)

 But for a new comer, it's not obvious at all.
 And usually they first look in the menu and click on the first entry
 matching the need

 Ben


 What about restricting the rename to the current package or class? With,
 say, a box to tick to go system wide?

 (And a nice GUI, moose-like, showing on a color map how much of the system
 the rename will impact :))

 Thierry
 --
 Thierry Goubier
 CEA list
 Laboratoire des Fondations des Systèmes Temps Réel Embarqués
 91191 Gif sur Yvette Cedex
 France
 Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Pharo on osx 10.5

2013-02-23 Thread Mariano Martinez Peck
I think Pharo 1.3 and 1.4 (not 2.0) should run ok with Carbon-based VMs.
You can get them from:
http://www.mirandabanda.org/files/Cog/VM/VM.r2693/Cog.app.tgz

Let me know if that works.

On Sat, Feb 23, 2013 at 5:47 PM, Marcus Denker marcus.den...@inria.frwrote:

 
  
 
  - Google announced that the Chrome browser will be dropping support for
 Leopard starting on Chrome 21.
  By that time Chrome will no longer auto-update, and new Chrome
 installations are unalloyed.
  Their rationale for removal of support is that Leopard is an OS X
 version also no longer being updated by Apple.[61]
 
  - Firefox also dropped support for Leopard after it shipped Firefox 16
 in October, 2012.[62]
 
 Nice quote:

 “Apple releases new versions of its operating systems relatively quickly,
 and each new version contains
  significant changes that we must adapt to,” Aas said. “This requires
 resources, and with limited resources
  this sometimes means we have to make tough decisions about where to
 invest.”


 http://www.macworld.com/article/1168241/mozilla_sets_end_of_firefox_for_os_x_leopard.html
 (this article is already 6 months old…)

 Mozilla had limited resources (revenue, but revenue is resource in
 software) of over 163 million USD in 2011…

 Marcus





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Migrated SS/Growl to Pharo/Archive

2013-02-18 Thread Mariano Martinez Peck
On Mon, Feb 18, 2013 at 9:55 AM, Ben Coman b...@openinworld.com wrote:

 Mariano Martinez Peck wrote:

 On Sun, Feb 17, 2013 at 2:56 PM, stephane ducasse
 stephane.duca...@free.fr**wrote:





 Stef, now that you are migrating everything to SmalltalkHub, are you:

 - putting a big text in the old repositories saying PROJECT XXX WAS


 MOVED TO YYY. Because then we run in problems where people refer/commit
 to
 old repos


 - make old project repo read only


 I did it for all the projects that I administrate.




 Excellent :)






 I am wondering if perhaps someone accessing one of those repositories via
 Monticello might miss that.  Perhaps a final package with filename
 package.movedToSmalltalkhub.**mcz would be useful (or maybe just
 overkill)


Yes, I was thinking the same for deprecating a package.  In fuel we have
lots of packages that with newer versions are deprecated. And when you
browse with Monticello you still see them around... Moving them to another
repo is not an option because it would mean to update all previous versions
in ConfgiurationOfFuel.  So I was also thinking about committing a last
version like: FuelXXXDeprecated-THIS_PACKAGE_IS_DEPRECATED.nnn.mzc.

 Cheers,



-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Migrated SS/Growl to Pharo/Archive

2013-02-17 Thread Mariano Martinez Peck
Stef, now that you are migrating everything to SmalltalkHub, are you:

- putting a big text in the old repositories saying PROJECT XXX WAS MOVED
TO YYY. Because then we run in problems where people refer/commit to old
repos
- make old project repo read only

?

cheers,

On Sun, Feb 17, 2013 at 1:51 PM, Stéphane Ducasse stephane.duca...@inria.fr
 wrote:

 Hi guys

 since growl has been integrated to Pharo I migrated the SS project to the
 Pharo/Archive one.

 Stef




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [Failing Tests] Cleaned up failing test serialization

2013-02-16 Thread Mariano Martinez Peck
On Sat, Feb 16, 2013 at 10:16 AM, Marcus Denker marcus.den...@inria.frwrote:


 On Feb 16, 2013, at 2:14 PM, Camillo Bruni camillobr...@gmail.com wrote:

 
  On 2013-02-16, at 14:11, Ben Coman b...@openinworld.com wrote:
 
  Marcus Denker wrote:
  Hi,
 
  To make it easy to explore why a test fails on the test server we
 serialize the stack of falling tests.
 
  With two changes this has now gotten much easier:
 
  1) Drag and Drop support for .fuel file
  Just drag the file to the Pharo Desktop -- Debugger opens
 
 
  Could you advise how to do this from an operational image (that is, not
 a CI test image).  I would like to use this to demonstrate Pharo's
 outstanding development environment. A killer feature would be the
 debugger having a File out button, that a user could use to mail to
 support.  Does any other programming system allow this ?
 
 
  you can just select fileout / serialize stack in the debugger
 somewhere.
  The you get a local .fuel file with the serialized stack :)

 We should

 - rename it Fuel out stack


+1


 - set a post-dematerialization action


Yes, you can copy it from the HDTestRunner that does exactly this :)



 Because right now drag-and-drop does not lead to any result.

 Marcus




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [Failing Tests] Cleaned up failing test serialization

2013-02-16 Thread Mariano Martinez Peck
On Sat, Feb 16, 2013 at 10:27 AM, Camillo Bruni camillobr...@gmail.comwrote:

  We should
 
- rename it Fuel out stack
- set a post-dematerialization action
  Because right now drag-and-drop does not lead to any result.



 that is strange.. since I remember Mariano added a post action
 that opens the debugger:


But I think Marcus is talking about the button in the debugger, not the
HDTestRunner


 see HDTestReport#serializeTestFailureContext:toFileNamed:
 ---
 ...
 serializer addPostMaterializationAction: [:materialization |
 Smalltalk tools debugger
 openContext: materialization root
 label: 'This is the new debugger!'
 contents: nil
 ].
 ...
 ---
 so there must be something wrong with drag n'drop handler...




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [ANN] Headless support for Cog Cocoa VM

2013-02-15 Thread Mariano Martinez Peck
Hi guys. For those who had a crash with the VM I attached previously, you
can try now with the just released Pharo VM from the Pharo CI server:

https://ci.inria.fr/pharo/view/VM/job/PharoVM/Architecture=32,OS=mac/

This VM has already included the headless support and should work for OSX
= 10.6. The only change is to set the flag LSBackgroundOnly of Info.plist
to true.

If there is some problem, please let me know.

Esteban: thanks for fixing the VM built and for integrating my changes :)

Best regards,

-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] About dependency granularity in metacello

2013-02-10 Thread Mariano Martinez Peck
On Sun, Feb 10, 2013 at 12:24 PM, Stéphane Ducasse 
stephane.duca...@inria.fr wrote:

 Hi dale

 I'm migrating Moose and I got the following question. In terms of
 granularity of dependency when depending of project.

 Before we had Fame that depended directly on one package of phexample.

 baseline11: spec
 version: '1.1-baseline'

 spec for: #'common' do: [
 spec blessing: #'baseline'.
 spec description: 'Baseline 1.1 first version on
 SmalltalkHub, copied from baseline 1.0 on SqueakSource'.
 spec repository: '
 http://www.smalltalkhub.com/mc/Moose/Fame/main'.
 spec
 package: 'Fame-Core';
 package: 'Fame-Util';
 package: 'Fame-ImportExport' with: [spec requires:
 #('Fame-Core' ) ];
 package: 'Fame-SmalltalkBinding' with: [spec
 requires: #('Fame-Core' ) ];
 package: 'Fame-Example';
 package: 'Phexample' with: [spec repository: '
 http://www.squeaksource.com/phexample' ];

 ^^^

 package: 'Fame-Tests-Core' with: [spec requires:
 #('Fame-Core' 'Fame-Example' 'Phexample' ) ].
 spec
 group: 'Core' with: #('Fame-Core'
 'Fame-ImportExport' 'Fame-Util' 'Fame-SmalltalkBinding' );
 group: 'Tests' with: #('Fame-Tests-Core' ) ].

 Stefan created a configuration for PhExample so the Fame baseline now
 depends on the Phexample project

 baseline12: spec
 version: '1.2-baseline'

 spec for: #'common' do: [
 spec blessing: #'baseline'.
 spec description: 'Baseline 1.2 to make explicit that Fame
 depends on HashTable and Phexample (now on smalltalkHub and with working
 configurations'.
 spec repository: '
 http://www.smalltalkhub.com/mc/Moose/Fame/main'.

 spec project: 'HashTable' with: [
 spec
 className:
 'ConfigurationOfHashTable';
 versionString: #stable;
 repository: '
 http://www.smalltalkhub.com/mc/Moose/HashTable/main' ].

 spec project: 'Phexample' with: [
 spec
 className:
 'ConfigurationOfPhexample';
 versionString: #stable;
 repository: '
 http://www.smalltalkhub.com/mc/Phexample/main' ].



Say you just need the package Core from Phexample (I have just invented the
package name) so you can define:

  spec project: 'PhexampleCore' with: [
 spec
 className:
 'ConfigurationOfPhexample';
 versionString: #stable;

loads: #('Core');

 repository: '
 http://www.smalltalkhub.com/mc/Phexample/main' ].



And then do:

'Fame-Tests-Core' with: [spec requires: #('Fame-Core' 'Fame-Example'
'PhexampleCore' ) ].

Notice all this above this is NOT the same as doing:

  package: 'Phexample' with: [spec repository: '
http://www.squeaksource.com/phexample' ];

That way you are just download a package from a repository, Metacello is
not involved. So for example if PhexampleCore has dependenciesthey are
not laoded.

With the code I pasted above, you don't just download a package from a
repo, instead, you say Metacello you depend on a package. And that is
managed as metacello. So for example if PhexampleCore has dependencies,
they will be loaded and managed.

Best,


 spec
 package: 'Fame-Core' with: [spec requires:
 'HashTable'];
 package: 'Fame-Util';
 package: 'Fame-ImportExport' with: [spec requires:
 #('Fame-Core' ) ];
 package: 'Fame-SmalltalkBinding' with: [spec
 requires: #('Fame-Core' ) ];
 package: 'Fame-Example';
 package: 'Fame-Tests-Core' with: [spec requires:
 #('Fame-Core' 'Fame-Example') ].
 spec
 group: 'Core' with: #('Fame-Core'
 'Fame-ImportExport' 'Fame-Util' 'Fame-SmalltalkBinding' );
 group: 'Tests' with: #('Fame-Tests-Core' ) ].


 Now my question
 we got from package: 'Fame-Tests-Core' with: [spec requires: #('Fame-Core'
 'Fame-Example' 'Phexample' ) ].
 to a dependency between project and I was wondering if this is ok because
 may be a project is large and we only
 depend on a small part.

 Then doing so we are also losing the information that this is
 Fame-Tests-Core that introduces the dependency to 

Re: [Pharo-project] About dependency granularity in metacello

2013-02-10 Thread Mariano Martinez Peck
On Sun, Feb 10, 2013 at 2:18 PM, stephane ducasse
stephane.duca...@free.frwrote:

 Mariano have a look at section 1.10 :)


Looks OK, but isn't this a duplication? Loading specific packages in page
21 looks similar.


-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] CouchDB and Pharo

2013-01-24 Thread Mariano Martinez Peck
On Thu, Jan 24, 2013 at 8:37 AM, Igor Stasenko siguc...@gmail.com wrote:

 On 24 January 2013 10:07, Göran Krampe go...@krampe.se wrote:
  Hi!
 
  Just noticed your stuff:
 
 
 http://vinsicaves.seasidehosting.st/resources/Developing%20Applications%20with%20Smalltalk%20and%20CouchDB.pdf
 
  http://www.smalltalkhub.com/#!/~jmari/SCouchDBViewServer
 
  Looks very nice!
 
 indeed!



Wow, very nice pdf. Very very well done.
It should be more available and known!!




  I also wrote a view server implementation a while ago - I remember I did
  some tricks to make Compiler deal with it properly etc. Can dig it out an
  email it to you, in that way I am at least sure it didn't go to waste.
 
  regards, Göran
 
  PS. I moved on to Riak after CouchDB and now I am heavily intrigued by
  HyperDex and have a binding brewing using NB FFI :)
 



 --
 Best regards,
 Igor Stasenko.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] In-Image Fuel Documentation

2013-01-24 Thread Mariano Martinez Peck
On Thu, Jan 24, 2013 at 4:16 PM, Sean P. DeNigris s...@clipperadams.comwrote:

 I eventually found this awesome website [1]. It would be great if there
 were
 some basic examples in the image. I found the tests too well factored to be
 used for this purpose.


what do you mean by this?
FLUserGuidesTest contains the examples used in the website (although there
may not be everything and still it could be outdated).
Maybe we can move this test into a Fuel-Examples package?


 Even a HelpSystem entry simply pointing to [1] would
 be really helpful for beginners like me ;) (although a full Help entry
 would
 have the nice benefit of executable examples)


Hi Sean. One problem I found is that then we have too many places with the
same doc. Hence, a simple update means changing a lot of places:

- Doc in image
- Examples in image / tests
- Website
- Help system
- PBE chapter

so...that does not scale.

I don't know yet the best way to solve this. Markdown and then output all
the different pieces is not an option I think.
thoughts?



 Thanks,
 Sean

 [1]

 http://rmod.lille.inria.fr/web/pier/software/Fuel/Version1.8.1/Documentation



 --
 View this message in context:
 http://forum.world.st/In-Image-Fuel-Documentation-tp4665190.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [ANN] Headless support for Cog Cocoa VM

2013-01-23 Thread Mariano Martinez Peck
On Wed, Jan 23, 2013 at 11:07 AM, Stephan Eggermont step...@stack.nlwrote:

 Hi Mark,

 Should have read the man page for open instead of a web page.


No problem.


 I had already tried the second version.
 Still crashes though, with the same error, on 10.6.8
 (can try it on newer and older versions too, after finding a working
 version)

 Mariano: CogVM-sandard also has the illegal instruction


Ok, the good news for me then is that it is not my headless change but the
problem of GNU GCC VS. LLVM GCC ;)

We need to find a way to compile the VM in 10.8 and with GNU :(

Stephan






-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] TalkFFI: automatic FFI generation for Pharo

2013-01-23 Thread Mariano Martinez Peck
On Wed, Jan 23, 2013 at 11:51 AM, Stefan Marr smallt...@stefan-marr.dewrote:

 Hi:

 On 23 Jan 2013, at 15:28, Stefan Marr wrote:

  On 06 Jan 2013, at 17:22, Ciprian Teodorov wrote:
  The project is released under MIT license, and you can find it on the
 smalltalkhub site.
  http://smalltalkhub.com/#!/~CipT/TalkFFI
 
  I was trying to play with TalkFFI, but it looks like libclang3.1 is not
 compiled correctly or something.
 
  How do you build it? In your code I see you are also targeting OSX, so
 that doesn't seem to be the problem.
 
  I was trying to use the MacPorts version of libclang3.1 without having
 set any special compiler flags.
  So, I am not entirely sure whether it is build correctly.

 I searched a bit more and found the libclang of Xcode
 (/Developer/usr/clang-ide/lib/libclang.dylib).

 With that lib it crashes the VM on a callout to parse the header file
 (clang_createTranslationUnitFromSourceFile).
 The MacPorts version already stopped way earlier when trying to use
 clang_createIndex.

 So, still not a lot of luck.


Maybe the lib needs to be 32 bits? can you check if the lib you are trying
is compiled for 32 or 64?





 I am on a OSX 10.6 with the latest NBCog, downloaded today (
 http://pharo.gforge.inria.fr/ci/vm/nbcog/mac/NBCog-mac-latest.zip)

 Best regards
 Stefan

 --
 Stefan Marr
 Software Languages Lab
 Vrije Universiteit Brussel
 Pleinlaan 2 / B-1050 Brussels / Belgium
 http://soft.vub.ac.be/~smarr
 Phone: +32 2 629 2974
 Fax:   +32 2 629 3525





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [ANN] Headless support for Cog Cocoa VM

2013-01-22 Thread Mariano Martinez Peck
On Sat, Jan 19, 2013 at 12:08 PM, Mariano Martinez Peck 
marianop...@gmail.com wrote:



 On Sat, Jan 19, 2013 at 10:40 AM, Ciprian Teodorov 
 ciprian.teodo...@gmail.com wrote:

 Hi Mariano,

 on MacOS 10.6.8 doing  
 ./CogVM-release-noflash-noArgs.app/Contents/MacOS/CogVM
 Pier3.image does not work, I get Illegal instruction...
 the same with ./CogVM-release-noflash-noArgs.app/Contents/MacOS/CogVM
 --headless Pier3.image

 if i try using open CogVM-release-noflash-noArgs.app Pier3.image, it
 works but It's not headless, however when looking in the info.plist the key
 you have mentioned is there
 keyLSBackgroundOnly/key
 true/


 Well, this one is weird ;)  I think the problem is (as Mark pointed out)
 the open. When you do:

 open CogVM-release-noflash-noArgs.app Pier3.image

 I will (I think) do two things:
 - open the CogVM-release-noflash-noArgs.app (which will popup the window
 to choose an image)
 - open the Pier3.image with the default app associated (that would be the
 same as double clicking the .image from the finder)

 So, I think that what you need is to add the -a:

 open -a CogVM-release-noflash-noArgs.app Pier3.image

 In this case, you should at least get the same behavior as:

  ./CogVM-release-noflash-noArgs.app/Contents/MacOS/CogVM Pier3.image

 that is, a ilegal instruction. Is it like this?

 Now...why the ilegal instruction?? I don't know. I will check. I could be
 maybe what I said that I compiled with LLVM GCC.
 We should compile this VM with GNU GCC...but so far I couldn't in 10.8.2
 :(


Well, I have compiled a normal VM (without my headless changes) with LLVM
GCC.
Now, can you try this VM (CogVM-standard) please? If we get Ilegal
Instruction, then it is the compiler. If we don't, and it works, then it is
something related with my changes.
https://www.dropbox.com/s/kpqnfycjpe76fo1/CogVM-standard.zip


Thanks,





 Thanks for the testing to everybody!!!



 On Sat, Jan 19, 2013 at 2:26 PM, Mariano Martinez Peck 
 marianop...@gmail.com wrote:



 On Sat, Jan 19, 2013 at 7:24 AM, Stephan Eggermont step...@stack.nlwrote:

 This doesn't work


  open CogVM-release-noflash-noArgs.app Pier3.image 


 Which OSX version are you using?




 Jan 19 11:20:51 Stephan-Eggermonts-iMac
 [0x0-0x2f92f9].org.seaside-project[36832]: This interpreter (vers. 6502)
 cannot read image file (vers. 6505).
 Jan 19 11:20:51 Stephan-Eggermonts-iMac
 [0x0-0x2f92f9].org.seaside-project[36832]: Press CR to quit...
 Jan 19 11:20:52 Stephan-Eggermonts-iMac ReportCrash[36836]: Failed to
 create CSSymbolicatorRef for launchd
 Jan 19 11:20:52 Stephan-Eggermonts-iMac
 com.apple.launchd.peruser.501[207]
 ([0x0-0x2fa2fa].org.squeakfoundation.Squeak[36835]): Job appears to have
 crashed: Segmentation fault
 Jan 19 11:20:52 Stephan-Eggermonts-iMac ReportCrash[36836]: Saved crash
 report for launchd[36835] version ??? (???) to
 /Users/stephan/Library/Logs/DiagnosticReports/launchd_2013-01-19-112052_Stephan-Eggermonts-iMac.crash




 --
 Mariano
 http://marianopeck.wordpress.com




 --
 Dr. Ciprian TEODOROV
 Ingénieur Développement CAO

 tél : 06 08 54 73 48
 mail : ciprian.teodo...@gmail.com
 www.teodorov.ro




 --
 Mariano
 http://marianopeck.wordpress.com




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [ANN] Headless support for Cog Cocoa VM

2013-01-22 Thread Mariano Martinez Peck
On Sat, Jan 19, 2013 at 1:08 PM, Sean P. DeNigris s...@clipperadams.comwrote:

 Mariano Martinez Peck wrote
  thanks Square [i] International lt;http://www.square-i.net/gt;
  ... headless support will be included in the official Pharo
  VM and will be, therefore, accessible to everybody.

 Yes, thank you, thank you!! I've been using Pharo for Jenkins build
 scripts,
 and it was really disruptive to see the image pop up every time a job
 started.

 As to the flag limitation, I think for now I'll have two copies of the VM -
 a headful one, which will be the default on my Mac, and one with the
 headless flag set, that gets explicitly launched by Jenkins... not perfect,
 but a HUGE step!!


Yes, that's the easiest way.
I spent *a lot* of time trying to find another way, but they all failed.
There is one possibility that should work but it is too hacky for me:
very at the beginning of the VM (before starting Cocoa) read the arguments.
If -headless is present, then programmatically set/write the flag in the
Info.plist. If it it not, do nothing (or set it to false).  But modifying
the file on startup looks hacky to me. I prefer the user to manually set
it.


 Cheers,
 Sean



 --
 View this message in context:
 http://forum.world.st/ANN-Headless-support-for-Cog-Cocoa-VM-tp4664137p4664212.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Object#name

2013-01-22 Thread Mariano Martinez Peck
Hi Sven. Yes, as far as I remember, Objectname was safe to remove. Not
likewise Classname but ok, it is less likely final users will need class
side #name.
So +1 to removing instance side #name.


On Mon, Jan 21, 2013 at 3:43 PM, Sven Van Caekenberghe s...@stfx.eu wrote:

 Hi,

 Many people have hit the fact that Object implements #name, which then
 seems to conflict with some other class where one would really like to use
 name as an instance variable and thus accessor.

 Turns out that it seems that Object#name is actually not used (anymore).

 I just put a halt in it and tried a couple of tools and everything seems
 to work just fine.

 The comment talks about Inspector use, but there is
 #defaultLabelForInspector for that.

 It is a small thing, but it confuses everybody for no good reason,

 Any comments ?

 Sven

 PS: it was also in the testing procotol ;-)

 --
 Sven Van Caekenberghe
 http://stfx.eu
 Smalltalk is the Red Pill





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [ANN] Headless support for Cog Cocoa VM

2013-01-22 Thread Mariano Martinez Peck
On Tue, Jan 22, 2013 at 1:19 PM, Esteban Lorenzano esteba...@gmail.comwrote:

 yeah, I declare my self guilty for having that incredibly ugly idea... :)


heheheheh :)
As you see (and I thanked in the email) Esteban has been helping me here.
And then he will merge and integrate :)


 On Jan 21, 2013, at 3:35 PM, Mariano Martinez Peck marianop...@gmail.com
 wrote:



 On Sat, Jan 19, 2013 at 1:08 PM, Sean P. DeNigris 
 s...@clipperadams.comwrote:

 Mariano Martinez Peck wrote
  thanks Square [i] International lt;http://www.square-i.net/gt;
  ... headless support will be included in the official Pharo
  VM and will be, therefore, accessible to everybody.

 Yes, thank you, thank you!! I've been using Pharo for Jenkins build
 scripts,
 and it was really disruptive to see the image pop up every time a job
 started.

 As to the flag limitation, I think for now I'll have two copies of the VM
 -
 a headful one, which will be the default on my Mac, and one with the
 headless flag set, that gets explicitly launched by Jenkins... not
 perfect,
 but a HUGE step!!


 Yes, that's the easiest way.
 I spent *a lot* of time trying to find another way, but they all failed.
 There is one possibility that should work but it is too hacky for me:
 very at the beginning of the VM (before starting Cocoa) read the
 arguments. If -headless is present, then programmatically set/write the
 flag in the Info.plist. If it it not, do nothing (or set it to false).  But
 modifying the file on startup looks hacky to me. I prefer the user to
 manually set it.


 Cheers,
 Sean



 --
 View this message in context:
 http://forum.world.st/ANN-Headless-support-for-Cog-Cocoa-VM-tp4664137p4664212.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.




 --
 Mariano
 http://marianopeck.wordpress.com





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [ANN] Headless support for Cog Cocoa VM

2013-01-19 Thread Mariano Martinez Peck
On Sat, Jan 19, 2013 at 7:24 AM, Stephan Eggermont step...@stack.nl wrote:

 This doesn't work


  open CogVM-release-noflash-noArgs.app Pier3.image 


Which OSX version are you using?




 Jan 19 11:20:51 Stephan-Eggermonts-iMac
 [0x0-0x2f92f9].org.seaside-project[36832]: This interpreter (vers. 6502)
 cannot read image file (vers. 6505).
 Jan 19 11:20:51 Stephan-Eggermonts-iMac
 [0x0-0x2f92f9].org.seaside-project[36832]: Press CR to quit...
 Jan 19 11:20:52 Stephan-Eggermonts-iMac ReportCrash[36836]: Failed to
 create CSSymbolicatorRef for launchd
 Jan 19 11:20:52 Stephan-Eggermonts-iMac com.apple.launchd.peruser.501[207]
 ([0x0-0x2fa2fa].org.squeakfoundation.Squeak[36835]): Job appears to have
 crashed: Segmentation fault
 Jan 19 11:20:52 Stephan-Eggermonts-iMac ReportCrash[36836]: Saved crash
 report for launchd[36835] version ??? (???) to
 /Users/stephan/Library/Logs/DiagnosticReports/launchd_2013-01-19-112052_Stephan-Eggermonts-iMac.crash




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [ANN] Headless support for Cog Cocoa VM

2013-01-19 Thread Mariano Martinez Peck
On Sat, Jan 19, 2013 at 10:40 AM, Ciprian Teodorov 
ciprian.teodo...@gmail.com wrote:

 Hi Mariano,

 on MacOS 10.6.8 doing  ./CogVM-release-noflash-noArgs.app/Contents/MacOS/CogVM
 Pier3.image does not work, I get Illegal instruction...
 the same with ./CogVM-release-noflash-noArgs.app/Contents/MacOS/CogVM
 --headless Pier3.image

 if i try using open CogVM-release-noflash-noArgs.app Pier3.image, it works
 but It's not headless, however when looking in the info.plist the key you
 have mentioned is there
 keyLSBackgroundOnly/key
 true/


Well, this one is weird ;)  I think the problem is (as Mark pointed out)
the open. When you do:

open CogVM-release-noflash-noArgs.app Pier3.image

I will (I think) do two things:
- open the CogVM-release-noflash-noArgs.app (which will popup the window to
choose an image)
- open the Pier3.image with the default app associated (that would be the
same as double clicking the .image from the finder)

So, I think that what you need is to add the -a:

open -a CogVM-release-noflash-noArgs.app Pier3.image

In this case, you should at least get the same behavior as:

 ./CogVM-release-noflash-noArgs.app/Contents/MacOS/CogVM Pier3.image

that is, a ilegal instruction. Is it like this?

Now...why the ilegal instruction?? I don't know. I will check. I could be
maybe what I said that I compiled with LLVM GCC.
We should compile this VM with GNU GCC...but so far I couldn't in 10.8.2 :(

Thanks for the testing to everybody!!!



 On Sat, Jan 19, 2013 at 2:26 PM, Mariano Martinez Peck 
 marianop...@gmail.com wrote:



 On Sat, Jan 19, 2013 at 7:24 AM, Stephan Eggermont step...@stack.nlwrote:

 This doesn't work


  open CogVM-release-noflash-noArgs.app Pier3.image 


 Which OSX version are you using?




 Jan 19 11:20:51 Stephan-Eggermonts-iMac
 [0x0-0x2f92f9].org.seaside-project[36832]: This interpreter (vers. 6502)
 cannot read image file (vers. 6505).
 Jan 19 11:20:51 Stephan-Eggermonts-iMac
 [0x0-0x2f92f9].org.seaside-project[36832]: Press CR to quit...
 Jan 19 11:20:52 Stephan-Eggermonts-iMac ReportCrash[36836]: Failed to
 create CSSymbolicatorRef for launchd
 Jan 19 11:20:52 Stephan-Eggermonts-iMac
 com.apple.launchd.peruser.501[207]
 ([0x0-0x2fa2fa].org.squeakfoundation.Squeak[36835]): Job appears to have
 crashed: Segmentation fault
 Jan 19 11:20:52 Stephan-Eggermonts-iMac ReportCrash[36836]: Saved crash
 report for launchd[36835] version ??? (???) to
 /Users/stephan/Library/Logs/DiagnosticReports/launchd_2013-01-19-112052_Stephan-Eggermonts-iMac.crash




 --
 Mariano
 http://marianopeck.wordpress.com




 --
 Dr. Ciprian TEODOROV
 Ingénieur Développement CAO

 tél : 06 08 54 73 48
 mail : ciprian.teodo...@gmail.com
 www.teodorov.ro




-- 
Mariano
http://marianopeck.wordpress.com


[Pharo-project] [ANN] Headless support for Cog Cocoa VM

2013-01-18 Thread Mariano Martinez Peck
Hello there,

For a long time, Pharaoers and Squakers have been asking for headless
support in the Cocoa VMs just as we have with Carbon VMs. Carbon is
becoming a legacy framework so people needed this.

I wanted to thanks Square [i] International http://www.square-i.net/ for
sponsoring me to implement such a support. Not only have they sponsored the
development but they have also agreed to release it under MIT license for
the community. This headless support will be included in the official Pharo
VM and will be, therefore, accessible to everybody.

The project is not yet finished but I do have a demo/prototype that I
wanted to share with you so that you can test it and give me feedback. This
VM should only work starting at OSX 10.6.

*How to use it?*  Basically it works this way: to have headless, just edit
the Info.plist and set the flag LSBackgroundOnly to 1 (add the key if it is
not present):

 keyLSBackgroundOnly/key
 true/

When doing this, you don't even need the -headless anymore since, setting
LSBackgroundOnly to 1, will cause the same effect (being the flag almost
mandatory). If you don't want headless, put it to false or don't even put
the key. If you don't set LSBackgroundOnly to 1 but send -headless, the VM
will still be headless but you will see a little flash. If this flash
bothers you, then set the flag. I am trying to get a way to avoid the
flash while also avoiding to set LSBackgroundOnly to 1, but I still
couldn't find it. Anyway, I think we can live with the current situation.

*How to test it?* You should run the image with something like RFB or
Seaside or whatever you can and then confirm if it is working even if you
are headless. As a matter of testing, I saved an image with seaside running
in the port . You can get both, this Seaside image and the VM with
headless from: https://www.dropbox.com/sh/r7qk49bxywk2xce/6N7-fdyx6V
So if you run the VM headless with that image and go to localhost:, you
should see that Seaside is running.

I would appreciate if you can test it. And please let me know in which
version of OSX you tried. Of course, the more of you who can test it, the
better. Notice that this VM was compiled with LLVM GCC 4.2 and it may have
some problems in older OSX versions (but I think it shouldn't). I still
couldn't compile a VM with GNU GCC 4.2 as I get a crash :(

*Expected results?*  In headless mode, anything should be displayed (no
window, no menu, no item in the dock and nothing appear when switching
apps). When running headfull, everything should be normal.

*Where is the code? *The code I have modified to the VM is committed to my
own fork of the VM:
https://gitorious.org/~marianopeck/cogvm/marianopecks-blessed
Once the code is ready, I will do a pull request so that it can be
integrated.

Thanks everyone for the testing and feedback. Once again, thanks Square [i]
International for sponsoring this great feature. Also thanks Esteban
Lorenzano and Mark Smith for their incredible help.

This was just the first prototype. I will keep you informed about possible
progress.

Best regards,

-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] CI Current Status

2013-01-17 Thread Mariano Martinez Peck
Thanks Marcus for keeping up informed.
Good progress!!!

Best,

On Thu, Jan 17, 2013 at 2:10 PM, Sean P. DeNigris s...@clipperadams.comwrote:

 Marcus Denker-4 wrote
  We have moved more or less everything to the new Jenkins setup.
  ...
  it gets better every day.

 Bravo! Thanks for all the hard work, Marcus :)



 --
 View this message in context:
 http://forum.world.st/CI-Current-Status-tp4663967p4663969.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Smalltalkhub error messages

2013-01-14 Thread Mariano Martinez Peck
It is down now :(

On Mon, Jan 14, 2013 at 7:47 AM, Camillo Bruni camillobr...@gmail.comwrote:

 I am having big issues with smalltalkhub.

 It seems like all the Pinocchio stuff is broken again.
 I cannot load P4-Kernel-CamilloBruni.10.mcz from my repository
 http://smalltalkhub.com/#!/~dh83

 Furthermore while Clement is loading it, Smalltalkhub blocks completely!





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] TalkFFI: automatic FFI generation for Pharo

2013-01-06 Thread Mariano Martinez Peck
That's super awesome. Thanks!!
And the documentation answer that I was just going to ask you :)
*The libclang bindings themselves were also generated using TalkFFI (using
minimal hand-written binding for bootstrapping).*

sweet :)

On Sun, Jan 6, 2013 at 1:22 PM, Ciprian Teodorov ciprian.teodo...@gmail.com
 wrote:

 Happy new year everybody!

 I am pleased to announce today the initial release of TalkFFI.

 TalkFFI enables *automatic* FFI generation for Smalltalk.
 It uses libclang http://clang.llvm.org to parse *unmodified* C header
 files and generate FFI bindings to c libraries.
 For now it supports the generation of NativeBoost FFI bindings.

 The project is released under MIT license, and you can find it on the
 smalltalkhub site.
 http://smalltalkhub.com/#!/~CipT/TalkFFI

 Please do not hesitate send me your comments/critics/ideas.

 Best regards,
 --
 Dr. Ciprian TEODOROV
 Ingénieur Développement CAO

 tél : 06 08 54 73 48
 mail : ciprian.teodo...@gmail.com
 www.teodorov.ro




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [squeak-dev] Re: [ANN] Fuel 1.8.1

2013-01-01 Thread Mariano Martinez Peck
On Tue, Jan 1, 2013 at 4:34 PM, H. Hirzel hannes.hir...@gmail.com wrote:

 On 1/1/13, Torsten Bergmann asta...@gmx.de wrote:
  Hannes Hirzel wrote:
 Thank you for the announcment of Fuel. Where do I found the home page of
  it?
 
  AFAIK it is here:
  http://rmod.lille.inria.fr/web/pier/software/Fuel
 
  Bye
  T.

 Thank you this is what I was looking for. It contains many links.
 The blog page mentions user guides but I do not see a link.


It means everything it is under the section Documentation in
http://rmod.lille.inria.fr/web/pier/software/Fuel

BTW, thanks Max for pushing Fuel so much. It is good to see new blood a new
developers.
It is amazing to see Fuel work in so many version of Pharo/Squeak :)


-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [squeak-dev] A blog article on Oak

2012-12-30 Thread Mariano Martinez Peck
Thanks Goran.
I read the whole article, and I really like it. Hope you continue pushing.
I always wanted to build some kind of database on top of Fuel :)

On Sun, Dec 30, 2012 at 9:24 AM, stephane ducasse 
stephane.duca...@gmail.com wrote:


 On Dec 30, 2012, at 12:54 PM, Göran Krampe wrote:

  Hi!
 
  I just moved my blog to Octopress (away from Wordpress) and must say
 this is much more up my alley. And doing so I also published a rather long
 article on Oak - Nicolas little OODB-thing that I am using:
 
  http://goran.krampe.se/2012/12/29/oak/
 Cool
 this is the best way to create more documentation.
 I would like to have a chapter on fuel, mongotalk,….for the next book.
 Deep into pharo 2 :)
 Stef
 
  If you have questions about Oak, feel free to either reply here or
 comment on the article. If you have questions on Octopress and migrating
 from Wordpress - feel free to ask about that too!
 
  ...and a happy new year!
 
  regards, Göran
 
  PS. Colorized Smalltalk code in Octopress markdown is trivial, I just do
 this:
 
  ``` smalltalk
  3 + 4
  ```
 





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Pharo Logo in High Resolution

2012-12-27 Thread Mariano Martinez Peck
Check under category Media in https://gforge.inria.fr/frs/?group_id=1299
Cheers,

On Thu, Dec 27, 2012 at 2:03 PM, Esteban A. Maringolo
emaring...@gmail.comwrote:

 Who should I contact if I want a high resolution version (vector
 based?) of the Pharo Project logotype?

 Does somebody have such assets and want to share them with me?

 Thank you!

 Esteban.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Open a view to compare two metods

2012-12-20 Thread Mariano Martinez Peck
On Tue, Dec 18, 2012 at 12:16 PM, Benjamin 
benjamin.vanryseghem.ph...@gmail.com wrote:

 I guess you can do something like

 (DiffMorph from: (MyClass#myFirstMethod) sourceCode to:
 (MyClass#mySecondMethod) sourceCode) openInWindow

 (I tried it in 2.0).

 Otherwise, I do no think that such a tool exists in 1.4 (in 2.0, you can
 do it with Nautilus).


How can I do that with nautilus?




 Ben

 On Dec 18, 2012, at 4:11 PM, Dario Trussardi wrote:

  Hi,
i work with Pharo 1.4.
 
I have a class with some methods.
 
Now i'm interested to open a view to compare and see the
 difference relative two methods of a class.
 
I see into   method version  theCompare to current
  buttons.
 
 It display the  change.
 
I can create this view relative to  two methods of one class ?
 
Thanks,
 
Dario





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] How to load Phoseydon and Neptuno?

2012-12-13 Thread Mariano Martinez Peck
On Thu, Dec 13, 2012 at 6:40 PM, Torsten Bergmann asta...@gmx.de wrote:

 Are there plans for SqueakDBX regarding porting it to Pharo 2.0
 or moving it from FFI to NativeBoost?


It would be a nice idea. And not hard to do since the functions of OpenDBX
are quite easy to wrap: easy types and no need of callbacks. Only one
external structure.
Unfortunately, right now my plate is full. If someone wants to take a look,
I can provide more details on how that should be done.

Cheers,

-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] just help :)

2012-12-02 Thread Mariano Martinez Peck
On Fri, Nov 30, 2012 at 10:06 AM, Sebastian Nozzi sebno...@gmail.comwrote:

 2012/11/30 Marcus Denker marcus.den...@inria.fr:
  On Nov 29, 2012, at 11:55 PM, dimitris chloupis theki...@yahoo.co.uk
  wrote:
 
  * Framework for seamless data/object-synchronization. I suggested this a
  while ago, didn't get much response. I don't blame anyone, there is not
 much
  need for this right now. What I would want is to be able to modify
 certain
  objects in my image, while offline, and connect to the Internet, and
 these
  objects be synchronized between other images. This way Internet-enabled
 apps
  could be built on top of Pharo in a better way that web-apps are built
 now
  (because, in Pharo you can not hit F5 and get fresh data ;-). But this is
  low-priority for me.
 
  This is a hard problem… but if would be nice to have, yes.

 I think it would make a nice research project ;-)

 Maybe as an extension(*) to Fuel/Tanker?
 I guess Fuel/Tanker also has to deal with conflicts, right?


Right.  This already happens and Fuel deals with some of them.




 * - Extension or on-top-of




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] STON Update

2012-12-01 Thread Mariano Martinez Peck
On Fri, Nov 30, 2012 at 11:39 PM, Sven Van Caekenberghe s...@stfx.euwrote:

 Hi,

 Based on feedback by Norbert Hartl, Stuart Herring and Dale Hendrichs
 (thank you) I improved the current STON version a bit.

 http://ss3.gemstone.com/ss/STON
 https://github.com/svenvc/ston

 Changelog:

 A nasty cycle bug was fixed
 Performance was improved, especially for large structures.
 Some implementation changes (recursion done using a stack,
 stonProcessSubObjects: optimized using stonContainsSubObjects)

 I did some stress/performance testing/tuning. Using

 STONTestMap classTreeExtended.

 to generate a structure mimicing the class hierarchy, with objects for all
 classes, about 7000 in my image and all methods, about 64000 in my image,
 with super/subclass and method owner links to create cycles. This results
 in a 7 Mb .ston file.

 The normal code, serializes this in 28 seconds and materializes it in 11.5
 seconds.
 The 'fast' versions (using ZnBuffered[Write|Read]Streams and Fuel Large
 Datastructures) does it in 1.1 and 3.8 seconds respectively.


You mean FLLargeHashedCollection and subclasses?


 New users are always welcome.

 Sven

 --
 Sven Van Caekenberghe
 http://stfx.eu
 Smalltalk is the Red Pill







-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] STON Update

2012-12-01 Thread Mariano Martinez Peck
On Sat, Dec 1, 2012 at 6:03 PM, Sven Van Caekenberghe s...@stfx.eu wrote:


 On 30 Nov 2012, at 23:39, Sven Van Caekenberghe s...@stfx.eu wrote:

  Hi,
 
  Based on feedback by Norbert Hartl, Stuart Herring and Dale Hendrichs
 (thank you) I improved the current STON version a bit.
 
http://ss3.gemstone.com/ss/STON
https://github.com/svenvc/ston
 
  Changelog:
 
A nasty cycle bug was fixed
Performance was improved, especially for large structures.
Some implementation changes (recursion done using a stack,
 stonProcessSubObjects: optimized using stonContainsSubObjects)
 
  I did some stress/performance testing/tuning. Using
 
STONTestMap classTreeExtended.
 
  to generate a structure mimicing the class hierarchy, with objects for
 all classes, about 7000 in my image and all methods, about 64000 in my
 image, with super/subclass and method owner links to create cycles. This
 results in a 7 Mb .ston file.
 
  The normal code, serializes this in 28 seconds and materializes it in
 11.5 seconds.
  The 'fast' versions (using ZnBuffered[Write|Read]Streams and Fuel Large
 Datastructures) does it in 1.1 and 3.8 seconds respectively.

 It occurred to me that I hadn't tried with Fuel (expecting it to be
 totally out of reach, since it is a binary protocol). Well, Fuel serializes
 my test structure in 5 seconds and materializes it in 1.2 seconds, the file
 being 6.4 Mb. Not bad for a textual protocol ;-)


So 5.6x for serializing and 9.5x for materializing. Similar stream result.
So, yes, not bad :)  SIXX  was way slower from what I remember.
Don't have time now but I will check your   STONTestMap classTreeExtended
 ...
BTW, which stream class you use for the bench?


 This does of course not proof a lot, results will depend on each specific
 use case.

  New users are always welcome.
 
  Sven
 
  --
  Sven Van Caekenberghe
  http://stfx.eu
  Smalltalk is the Red Pill
 
 
 





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] STON Update

2012-12-01 Thread Mariano Martinez Peck
On Sat, Dec 1, 2012 at 7:02 PM, Sven Van Caekenberghe s...@stfx.eu wrote:


 On 01 Dec 2012, at 18:58, Mariano Martinez Peck marianop...@gmail.com
 wrote:

  You mean FLLargeHashedCollection and subclasses?

 Yes:

 optimizeForLargeStructures
 self class environment
 at: #FLLargeIdentityDictionary
 ifPresent: [ :identityDictionaryClass | objects :=
 identityDictionaryClass new ].
 self class environment
 at: #FLSimpleStackstack
 ifPresent: [ :stackClass | stack := stackClass new ]



Excellent :)



-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] STON Update

2012-12-01 Thread Mariano Martinez Peck
On Fri, Nov 30, 2012 at 11:39 PM, Sven Van Caekenberghe s...@stfx.euwrote:

 Hi,

 Based on feedback by Norbert Hartl, Stuart Herring and Dale Hendrichs
 (thank you) I improved the current STON version a bit.

 http://ss3.gemstone.com/ss/STON
 https://github.com/svenvc/ston

 Changelog:

 A nasty cycle bug was fixed
 Performance was improved, especially for large structures.
 Some implementation changes (recursion done using a stack,
 stonProcessSubObjects: optimized using stonContainsSubObjects)


Yes, using a stack is also a good idea :)
Good to see you are tacking some of the Fuel code/ideas to improve STON. It
is awesome to have both,  a fast binary and text serializers :)



 I did some stress/performance testing/tuning. Using

 STONTestMap classTreeExtended.

 to generate a structure mimicing the class hierarchy, with objects for all
 classes, about 7000 in my image and all methods, about 64000 in my image,
 with super/subclass and method owner links to create cycles. This results
 in a 7 Mb .ston file.

 The normal code, serializes this in 28 seconds and materializes it in 11.5
 seconds.
 The 'fast' versions (using ZnBuffered[Write|Read]Streams and Fuel Large
 Datastructures) does it in 1.1 and 3.8 seconds respectively.

 New users are always welcome.

 Sven

 --
 Sven Van Caekenberghe
 http://stfx.eu
 Smalltalk is the Red Pill







-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [[ false ] whileFalse: [ ]] in workspace

2012-11-29 Thread Mariano Martinez Peck
On Thu, Nov 29, 2012 at 5:26 PM, Serge Stinckwich 
serge.stinckw...@gmail.com wrote:

 On Thu, Nov 29, 2012 at 3:30 PM, Camillo Bruni camillobr...@gmail.com
 wrote:
  if you have time try to figure out in which pharo version the bug
 appeared...
  (I should write a tool for that :P)
 
  = do a binary search over pharo versions
 http://pharo.gforge.inria.fr/ci/image/20/

 Like a git bissect  ? :-)

 http://www.kernel.org/pub/software/scm/git/docs/git-bisect.html


Cami, the wiki police says you should store this as a student project ;)


 --
 Serge Stinckwich
 UCBN  UMI UMMISCO 209 (IRD/UPMC)
 Every DSL ends up being Smalltalk
 http://doesnotunderstand.org/




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] smalltalkhub and project ownership

2012-11-22 Thread Mariano Martinez Peck
And what happens where is isnt't ONE gay? say there are 3 or 4 guys in the
community that manage the project? what should we do? create a user named
after the project? hahaha

On Thu, Nov 22, 2012 at 1:51 PM, Esteban Lorenzano esteba...@gmail.comwrote:

 yes, you're right, but Norbert point is that, right now, you cannot fork
 the project (and you should be able to do it)

 Esteban


 On Nov 22, 2012, at 1:47 PM, Sebastian Sastre 
 sebast...@flowingconcept.com wrote:

 Is there an explanation why in smalltalkhub every project resides below a
 user?


 because things in this universe don't get done if someone isn't leading
 it? :D

 the leader of any project is (a) the curator of that project and (b) the
 one positioned to better inspire followers

 if people likes it, people follows the project and/or the guy

 if someone doesn't like the direction, that person can fork and lead it
 himself in another direction

 github got it right, I'm glad smalltalkhub too

 and it's not about mimicking github (which wouldn't be bad) it's mimicking
 the way people want to work

 it's about natural selection applied to software projects at its best

 makes sense?

 sebastian https://about.me/sebastianconcept

 o/

 PD: if someone abandons a project, no big deal, it will be there hanging
 out while another fork might be flourishing. Also projects property should
 be transferrable from one user to another for the cases in which that
 happens orderly.






-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] smalltalkhub and project ownership

2012-11-22 Thread Mariano Martinez Peck
On Thu, Nov 22, 2012 at 1:53 PM, Mariano Martinez Peck 
marianop...@gmail.com wrote:

 And what happens where is isnt't ONE gay? say there are 3 or 4 guys in the
 community that manage the project? what should we do? create a user named
 after the project? hahaha



sorry, s/gay/guy  (mixing english writing with spanish pronunciation)


 On Thu, Nov 22, 2012 at 1:51 PM, Esteban Lorenzano esteba...@gmail.comwrote:

 yes, you're right, but Norbert point is that, right now, you cannot fork
 the project (and you should be able to do it)

 Esteban


 On Nov 22, 2012, at 1:47 PM, Sebastian Sastre 
 sebast...@flowingconcept.com wrote:

 Is there an explanation why in smalltalkhub every project resides below a
 user?


 because things in this universe don't get done if someone isn't leading
 it? :D

 the leader of any project is (a) the curator of that project and (b) the
 one positioned to better inspire followers

 if people likes it, people follows the project and/or the guy

 if someone doesn't like the direction, that person can fork and lead it
 himself in another direction

 github got it right, I'm glad smalltalkhub too

  and it's not about mimicking github (which wouldn't be bad) it's
 mimicking the way people want to work

 it's about natural selection applied to software projects at its best

 makes sense?

 sebastian https://about.me/sebastianconcept

 o/

 PD: if someone abandons a project, no big deal, it will be there hanging
 out while another fork might be flourishing. Also projects property should
 be transferrable from one user to another for the cases in which that
 happens orderly.






 --
 Mariano
 http://marianopeck.wordpress.com




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Loading dependencies

2012-11-21 Thread Mariano Martinez Peck
On Wed, Nov 21, 2012 at 9:37 AM, Max Leske maxle...@gmail.com wrote:

 Metacello is probably the way to go. It's a bit of a pain until you have
 it set up but then it's pretty easy to use, especially for development
 since you'll simply always load the latest versions (AKA bleeding edge or
 development).
 Take a look at the ProfStef tutorial (not sure how up to date it is but it
 helped me a lot to get started with Metacello).


Yes, Metacello. And we also wrote a PharoByExample chapter:
http://pharobooks.gforge.inria.fr/PharoByExampleTwo-Eng/latest/Metacello.pdf


 Cheers,
 Max

 On 21.11.2012, at 09:30, roberto.mine...@usi.ch wrote:

  Hi,
 
  At the moment I'm creating an analysis tool for Git repositories.
  I'm versioning my source code on Smalltalkhub, so that I can easily load
 my code in a fresh image, when needed.
 
  My project depends on several external packages such as the
 Filesystem-Git, Fuel, and the last version of Filesystem.
 
  I was wondering if it's possible to add such dependencies
 programmatically so that once I load my project from Monticello
 dependencies are added as well.
 
  I heard that Metacello is probably suitable to handle dependencies, but
 it would be glad to hear an opinion from you.
 
  Thanks in advance,
  Roberto
 
 





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] I don't agree with DummyXXX

2012-11-21 Thread Mariano Martinez Peck
On Wed, Nov 21, 2012 at 4:50 PM, Igor Stasenko siguc...@gmail.com wrote:

 On 21 November 2012 12:47, Fernando Olivero fernando.oliv...@usi.ch
 wrote:
  I totally agree.  Dummy does not tell me about the class.
 
  Are there just 3 uses of Dummy in the core?
 
  We should either use Null  or use a specific prefix always, so its form a
  consisten pattern.
 
  DummyUIManager - NullUIManager
 
 yes, not Headless please.


why?

It is not a complete NULL UIManager.  A NullUIManager would implement all
the API and do nothing (or implement nothing but only #doesNotUnderstand:
doing nothing or something like that)  DummyUIManger DOES stuff, but it
makes sures not to end up calling the UI (like progress bar, notifications,
confirmations, etc). So, in this particular case, HeadlessUIManager is much
more accurate for me than Null.

 Fernando
 
  On Wed, Nov 21, 2012 at 4:34 PM, Mariano Martinez Peck
  marianop...@gmail.com wrote:
 
  From what I understand, Dummy means something different. I have using
 that
  for class names. More accurate names can be found.
  I would rename:
 
  DummyUIManager - HeadlessUIManager
  DummySystemProgressItem - NullSystemProgressItem
  DummySoundSystem - NullSoundSystem
 
  what do you think? do you have better names?
 
  --
  Mariano
  http://marianopeck.wordpress.com
 
 



 --
 Best regards,
 Igor Stasenko.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] when do we go beta?

2012-11-21 Thread Mariano Martinez Peck
+1 for including only NB and then just bug fixes. No new stuff.
So...slots and new classbuilder will be for next release. Same for Opal I
guess.

On Wed, Nov 21, 2012 at 11:30 PM, Stéphane Ducasse 
stephane.duca...@inria.fr wrote:

 Please!
 Because I refrain myself to fix and changes so we should focus on bug
 fixing and not opening new things.

  I was thinking on going beta next week, actually :)
 
 
  when do we go beta?
 
  I have been using 2.0 for months now, it has been very stable (apart
 from some hiccups).
 
  It is so much better that it would be immoral to keep this from the
 world ;-)
 
  We just have to declare a stabilization period in which we refrain from
 big/dangerous changes and work more on stability and testing.

 Thanks sven.





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] when do we go beta?

2012-11-21 Thread Mariano Martinez Peck
On Wed, Nov 21, 2012 at 11:47 PM, Camillo Bruni camillobr...@gmail.comwrote:


 On 2012-11-21, at 19:41, Stéphane Ducasse stephane.duca...@inria.fr
 wrote:

 
  On Nov 21, 2012, at 11:37 PM, Mariano Martinez Peck wrote:
 
  +1 for including only NB and then just bug fixes. No new stuff.
  So...slots and new classbuilder will be for next release. Same for Opal
 I guess.
 
  No Opal should be in previous as well as Athens.
  These projects should come back to light. Else this will never happen.

 I think that the thing we did with filesystem in 1.4 was good
 - integrate the detached project
 - apply the refactorings during development

 then in the next release
 - change tools to use the new infrastructure
 - remove old code

 I think we did almost the same with Zinc, no?



What about NOT including new class builder nor Opal in 2.0 but as soon as
we create the initial repo for 2.1 (or whatever), the first 2 things we do
is to integrate them?


-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Beeper

2012-11-20 Thread Mariano Martinez Peck

  And why it is a AppRegistry. AppRegistry
 associates some application, tool. It is very confusing to use it for
 a sound provider.

 More the name of AppRegistry being confusing, what it does is provide
 infrastructure for registering providers of a service, and switching which
 is currently in use.
 In other words, SoundService (due to being an ApprRegistry) can switch
 between using multiple SoundSystems.


Would it make sense to rename AppRegistry to ServiceRegistry therefore?



Then I do not understand why it is named
 AbstractSoundSystem and not simply SoundSystem (remember
 AbstractString).

 Yes let us clean all that :)
 Can you take the lead on that?
 We could include the sound package in the release.

 Because AbstractSoundSystem provides the common interface that is expected
 to be supported by a given entry in the SoundService providers . Whether
 that warrants including Abstract in the name is debatable I guess :)

  On Sat, Nov 17, 2012 at 9:33 PM, Stéphane Ducasse
 stephane.duca...@inria.fr wrote:

 Hi pavel

 In fact the registration default sound system is broken and we should
 fix it.
 I forgot what is the problem :)

  Hi,

 I would like to discuss the Beeper class a little bit. The main
 purpose of this class is to provide Beeper beep message and use
 SoundService with respect to current sound enabled settings or VM
 implemented primitive for beeping.

 Yes this was the idea and to remove it from smalltalk.

 Outright removal is a bit harsh considering what external users may
 exist.
 It probably deserves either being put in a deprecated package, or moved to
 a loadable compat package.

 Cheers,
 Henry




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Pharo Association

2012-11-16 Thread Mariano Martinez Peck
Hi. I am trying to add a contribution to my user. I put the title,  I
upload a picture for the project, and I set the description, but when I
press accept it hangs in loading (on the top right) and after a timeout
I get:

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request *GET
/web/membershttp://association.pharo.org/web/members
*.

Reason: *Error reading from remote server*

--
Apache/2.2.17 (Ubuntu) Server at association.pharo.org Port 80



On Fri, Nov 16, 2012 at 2:52 PM, Marcus Denker marcus.den...@inria.frwrote:

 Thank you for your suggestions!

 I am making a list of what to improve and added them (the association
 pharo vs. pharo association one I think is not to fix sadly...)

 Marcus

 On Nov 16, 2012, at 4:50 AM, Ben Coman b...@openinworld.com wrote:

 
  Well done getting all this up an running.  Some minor feedback on the
 web site...
 
  1. I would guess that one of the more important purposes of the site is
 that people sign up. So don't hide the signup and login buttons away from
 the the front page.  There is room on the right hand side of the title bar.
  Once logged in these could change to the membername and logout button.
 
  2. Paypal says the payment transaction will appear on my bank statement
 as PayPal*ASSOCIATION. I guess that because the payment goes to
 Association Pharo.
  It would be nicer if the payment when to Pharo Association so that my
 bank statement said PayPal*PHARO - but I don't expect you could change
 that.
 
  3. When choosing subscription type, the term _simple_ member to
 distinguish from premium member feels a bit condescending and
 unnecessary.  Just member on its own is enough to distinguish from
 premium  member.
 
  simple = *2. *A fool; a simpleton.[1] /b //(1)/ *:* stupid 
 http://www.merriam-webster.com/dictionary/stupid /(2)/ *:* mentally
 retarded [2]
  [1] http://www.thefreedictionary.com/simple
  [2] http://www.merriam-webster.com/dictionary/simple
 
  4. Perhaps when members add contribution for display on the slide show,
 these could be added to the What's new sidebar.  This might help increase
 the show of activity.
  As an aside, I love the name Pharo for the project but it is
 unfortunate that Pharo is such a widely used name with 3,000,000
 unrealated results on google search, and pharo.com domain being used
 for other purposes.   A tip for others making up new project names is to
 choose one with a small number of results on Google.  A service like
 http://wordoid.com/ can help.
 
  Marcus Denker wrote:
  Hello,
 
  We are happy to announce the Pharo User Association:
 
   http://association.pharo.org
 
  The goal of the Pharo User Association is to support Pharo development
 and
  promotion.
  There are two individual memberships
 
   - Individual Pharo Association Member: Yearly fee 40 Euros
   - Golden Individual Pharo Association Member: Yearly fee 99 Euros
 
  You will get
   - reduction access to pharo conferences,
   - reduction for training and access to teaching material,
   - be part of the pharoAssociation-individual-members mailing-list,
   - an account at the pharo association web site.
 
  This Association is complementary to the Pharo consortium managed by
 INRIA. The Consortium is for entities  such as companies, research teams,
 or institutes.
  For more information, see:
 http://www.pharo-project.org/community/consortium
 
  The funds collected by the Association will be used in coordination
 with the Consortium to support the development of Pharo.
 
   The Pharo Board and Pharo Core Team.
 
 
 
 
 
 

 --
 Marcus Denker -- http://marcusdenker.de





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [update 2.0] #20403

2012-11-16 Thread Mariano Martinez Peck
Marcus, you are in fire!!! Thanks :)

On Fri, Nov 16, 2012 at 8:08 PM, Marcus Denker marcus.den...@inria.frwrote:

 20403
 -

 Issue 6989: Move DebuggerMethodMap to Compiler package
 http://code.google.com/p/pharo/issues/detail?id=6989

 Issue 6988: Run #cleanUpForRelease in postscript
 http://code.google.com/p/pharo/issues/detail?id=6988

 Issue 6894: Add Error tolerant parsing to RB
 http://code.google.com/p/pharo/issues/detail?id=6894



 Diff information:
 http://ss3.gemstone.com/ss/Pharo20/Kernel-MarcusDenker.1252.diff
 http://ss3.gemstone.com/ss/Pharo20/Compiler-MarcusDenker.360.diff
 http://ss3.gemstone.com/ss/Pharo20/AST-Core-MarcusDenker.103.diff

 --
 Marcus Denker -- http://marcusdenker.de





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] OSProcess in Pharo 2.0

2012-11-15 Thread Mariano Martinez Peck
On Thu, Nov 15, 2012 at 4:47 PM, Damien Cassou damien.cas...@gmail.comwrote:

 On Tue, Nov 13, 2012 at 11:24 AM, Max Leske maxle...@gmail.com wrote:
  I'm working on a simple library for NativeBoost that will execute
 commands on the shell and return stdin and stderr to the image.
  This will take me one or two weeks to complete though. Once I'm finished
 I'll post it on the list (I guess there's a lot of people who would want
 something like this). This library should (hopefully) make OSProcess
 obsolete.

 pleaeee


Don't be so rude with OSProcess please. This is a great tool and has been
helping the community since a really long time. And Dave was always there
willing to help as much as possible.



 --
 Damien Cassou
 http://damiencassou.seasidehosting.st

 Success is the ability to go from one failure to another without
 losing enthusiasm.
 Winston Churchill




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [Pharo-users] CategorySaver

2012-11-12 Thread Mariano Martinez Peck
On Mon, Nov 12, 2012 at 8:53 PM, Damien Cassou damien.cas...@gmail.comwrote:

 On Mon, Nov 12, 2012 at 8:42 PM, Mariano Martinez Peck
 marianop...@gmail.com wrote:
  So...my question is, what is the actual problem/limitations with those
 which
  are solved with this new tool?? or in other words, why do we need this
 new
  tool? should we improve the already existing tools instead?

 it's a backup! You probably never need any backup... until you do :-).
 In a perfect world Pharo would be perfect, never crash and never loose
 any data.


Yes, but .changes is already a backup, so my questions are still valid ;)



 --
 Damien Cassou
 http://damiencassou.seasidehosting.st

 Success is the ability to go from one failure to another without
 losing enthusiasm.
 Winston Churchill




-- 
Mariano
http://marianopeck.wordpress.com


[Pharo-project] TimeProfiler and primitives

2012-11-10 Thread Mariano Martinez Peck
Hi guys. I remember some improvements made to TimeProfiler regarding
primitives. I am profiling something which does a lot of primitive calls,
and the TimeProfiler is quite dumb. It shows almost everything as
#finalizationProcess but I know that the time is not actually spent there.
I remember someone that fixed this (maybe Eliot telling me that on
Teleplace?).
Anyway, any help is appreciated.

Thanks,

-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] TimeProfiler and primitives

2012-11-10 Thread Mariano Martinez Peck
On Sat, Nov 10, 2012 at 3:46 PM, Paul DeBruicker pdebr...@gmail.com wrote:

 Do you have the same issue if you use the Qwaq profiler here:

 Www.squeaksource.com/SystemProfilerPharo.html


That was what I was looking for!!!
Indeed, much better results :)  Thanks Paul.
Now I wonder, can we merge the changes from this SystemProfiler into the
standard TimeProfiler?
I would love to have only (correcy) onw.
Maybe you can help with this task?  ;)


 ?



 --
 View this message in context:
 http://forum.world.st/TimeProfiler-and-primitives-tp4654714p4654715.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Writing 16 times 1mb to a WriteStream takes 1s. Normal?

2012-11-10 Thread Mariano Martinez Peck
On Sat, Nov 10, 2012 at 8:18 PM, Nicolas Cellier 
nicolas.cellier.aka.n...@gmail.com wrote:

 Maybe pre-allocate the right size:

 ByteArray new: byteArray size * 16 streamContents: ...


Well, actually we are trying to do a streaming API for a compressor. So, 1)
I don't exactly know the number 16 before hand and 2) doing that is
exactly what we are trying to avoid (compress/decompress all together).
Instead, we are doing some kind of streaming, compressing in blocks of say
1MB. But I was completely surprised when I saw the results
So there is nothing easy to improve?

Nicolas

 2012/11/10 Mariano Martinez Peck marianop...@gmail.com:
  Hi guys:
 
  |byteArray|
  byteArray :=  (ByteArray new: 1024*1024).
  [
  ByteArray streamContents: [:s |
  16 timesRepeat: [
  s nextPutAll:byteArray
  ]
  ]
  ]  timeToRun
 
  Gives me around 1 second. Isn't that too much? or is it normal/expected?
  Anything I could improve?
 
  Thanks,
 
  --
  Mariano
  http://marianopeck.wordpress.com
 




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Replace ByteArray with a smaller one

2012-11-08 Thread Mariano Martinez Peck
On Thu, Nov 8, 2012 at 4:24 AM, Igor Stasenko siguc...@gmail.com wrote:
 On 7 November 2012 11:11, Camillo Bruni camillobr...@gmail.com wrote:
 if the chunks you wan to cut off are big enough you could
 potentially allocate a new object there which get's gc-ed.

 yes..
 actually you can 'crop' the existing object by modifying its size
 field (so VM will know it)
 and then for the rest bytes, mark them as a 'free chunk', which designates a
 unused memory space in heap.
 actually, this could be a good candidate for a primitive.


Exactlly. I was hoping there was already a primitive for that :(


 But imo, much better strategy is to not allocate too big arrays. :)

 Also, as alternative , you can create a 'ArraySlice' collection class,
 which is a view on existing array but with smaller number or elements.
 And pass it around as a valid collection.

 But I have no clue how to do that without VM / NB support ;)


:(



 On 2012-11-07, at 14:39, Mariano Martinez Peck marianop...@gmail.com wrote:

 Hi guys. I have a ByteArray of size N.
 And I want now only the same ByteArray but from 1 to N-X. I am using
 #copyFrom:to: but that one answers a new copy. If the ByteArray is large,
 this takes time because it needs to allocate a large object. In my case I
 don't care and I can modify the original ByteArray itself (lets say make it
 smaller, null the remaining part and change the object header info). That
 way I would avoid an extra allocation. Is there a primitive for that?

 Thanks!

 --
 Mariano
 http://marianopeck.wordpress.com





 --
 Best regards,
 Igor Stasenko.




--
Mariano
http://marianopeck.wordpress.com



Re: [Pharo-project] Don't ever ever halt in #startUp:

2012-11-08 Thread Mariano Martinez Peck
You can build a VM and skip to the next bytecode ;)
http://forum.world.st/Fwd-Oops-I-put-a-halt-in-a-startup-method-td3800729.html

On Thu, Nov 8, 2012 at 10:30 PM, Sebastian Nozzi sebno...@gmail.com wrote:
 Hey there Sebastian,

 I feel your pain. Unfortunately there seem to be *many* places / situations
 where halting is a very bad idea and renders your image unusable.

 That's why I think it would be a good idea to have a list of these places
 (in the documentation and in the Pharo welcome Workspace), and maybe the
 technical reasons behind them.

 Something that I did a couple (!!) of times until I learnt the lesson was to
 halt withing a MorphdrawnOn:. If you do, then there goes your UI
 painting/event processing thread (solution: debug your Morph from outside,
 passing a NullCanvas).

 It was also possible for me, more than once, to hang the image beyond
 recovery (CMD-dot did not help) if Delaying ((Delay forMilliseconds: 200)
 wait) within the UI thread in an infinite recursion (by mistake).

 As for rescuing it... can the recent changes help you? In your case you
 would be directly reading the .changes file... Not really rescuing your
 image, but extracting and saving your work... (and migrating to a new
 image).

 This is very annoying, I know. Been there a couple of times (although with
 less serious work than yours). In my opinion something needs to change in
 this area. These are huge productivity losses, and I fear that many new
 users (*) would at this point turn their backs on Smalltalk never to look
 back again.

 Best regards,

 Sebastian N.

 (*) or senior developers evaluating the possibility to use Pharo in their
 companies.



 2012/11/8 Sebastian Sastre sebast...@flowingconcept.com

 …I mean ever.

 Because you'll screw your image.

 Mostly when you also are on OS X but, for some crazy reason of the
 Universe, your TimeMachine was not operating normally on your laptop while
 coding.

 And you weren't committing in the monticello repo because it was work
 in progress and you were expecting to reach some goal.

 Ever.

 So…

 I'm in that situation with an image now :(

 I've the false good idea of putting a halt in an SomeApp classstartUp:
 method and now, when I open the image, it tries to, stays for about 2
 seconds and crashes.

 Any of you guys have a workaround/hack to rescue it?

 sebastian

 o/

 PS: I've tried with startup.st with the code that removes that method but
 no luck.







-- 
Mariano
http://marianopeck.wordpress.com



Re: [Pharo-project] [Pharo-users] Recovering Changes from a broken image

2012-11-08 Thread Mariano Martinez Peck
On Thu, Nov 8, 2012 at 10:41 PM, Sebastian Nozzi sebno...@gmail.com wrote:
 This tip is very welcome, didn't know that you could import changes made
 from another image.

http://marianopeck.wordpress.com/2012/05/19/pharo-tips-and-tricks/
title Recovering lost code:
I paste it here:

*- Recovering lost code: Probably, one of the things Smalltalkers are
always proud of saying is “In Smalltalk you never lose code” hehhehe. So…
your vm crashed and you didn’t save your code? Well, there are different
ways of recovering the code.

1) Tools - Recover lost changes. There you can select the date from where
to start watching the changes. Once you select a point in time, you can go
item by item seeing what you want to recover. What I usually do is
multi-select all the ones I want to recover and then I click on “file in
selections”. That will install back those lost changes. Notice that this is
thanks to the .changes file so you need it in order to recover changes.
Also notice that even Do-Its are saved.

2) If your image does not even start, are you screwed up? No! You can even
browse the changes and recover your lost data in ANOTHER image. Just open
another image and then drag and drop the .changes of the image you lost the
data. Then repeat the option 1).

3) You can always take your prefer text editor, open the .changes file and
copy paste *


Should definitely be included in the section recovering
 lost changes in the Pharo book (in case it isn't there already ;-).

 Also very welcome is a new description of changes. Without knowing its
 details, may I make a suggestion?

 When recovering lost changes what we need is to quickly distinguish (i.e.
 filter-out) operations on classes/methods and everything else. Having to
 look through all the do-its in order to see if they are Workspace
 experiments or important is very time-consuming, and there is always the
 possibility to miss some important do it, and then the whole import is
 stopped.

 So it would be great if there were different filters, and if the changes
 were more explicit.

 Other than that, when I needed it, I was grateful that this functionality
 existed at all :-)

 Cheers,

 Sebastian


 2012/11/8 Stéphane Ducasse stephane.duca...@inria.fr


 On Nov 8, 2012, at 9:03 PM, Sven Van Caekenberghe wrote:

  Hi,
 
  One of the cool things of Smalltalk's images/changes file is that you
  can do a World Menu  Tools  Recover lost changes… to get back most
[1] of
  your code in case your image/OS/machine suddenly crashed or you forgot
to
  save your image or commit your Monticello packages.
 
  But we all have encountered the situation where the image is broken,
  saved in such a state that it no longer starts up properly. In that
case
  your code might seem lost forever.
 
  No, it is not !
 
  Two days ago I had this problem myself and I remembered something
Marcus
  said some time ago: you can access the changes file of one (in casu
your
  broken image) from another (working) image to select/recover the
changes you
  want. It worked perfectly.
 
  The easiest procedure it to copy the .changes file from the broken
image
  and rename its extension to .cs and then open it from a World Menu 
Tools 
  File Browser and open a Changes browser on it.

 We should add a recover from another image shortcut.
 
  I found this very useful. This is a really important technique to be
  aware of.
 
  Sven
 
  [1] Sadly, not everything is logged in the changes file: creation of
new
  classes, method deletions are not recorded.

 Yes we should change that.
 Ezequiel started to work on a new description of changes.

 
  --
  Sven Van Caekenberghe
  http://stfx.eu
  Smalltalk is the Red Pill
 
 
 
 






--
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Pharo wiki?

2012-11-08 Thread Mariano Martinez Peck
On Fri, Nov 9, 2012 at 1:33 AM, Sebastian Nozzi sebno...@gmail.com wrote:

 Hello Pharo Community,

 are there plans to host a Pharo wiki somewhere?

 (for tutorials, tips, faqs, documentation, ideas, brainstorming, etc.)


We have this: http://book.pharo-project.org/


 Cheers,

 Sebastian




-- 
Mariano
http://marianopeck.wordpress.com


[Pharo-project] Cheating NB FFI ByteArray size

2012-11-07 Thread Mariano Martinez Peck
Hi Igor. I wonder if I can do the following.
I have to pass a ByteArray to a function that expects an already malloced
char*.
So far it is working fine. Now...what I would like is from the image side
to allocate a ByteArray of size + 4. I need to reserve the first 4 bytes of
the ByteArray for something. But the library I am calling doesn't let me
specify where to start from that char*.
So...can I cheat? I mean, can I allocate ByteArray+4 in the image, but when
passing it as an argument somehow say ok, take this ByteArray but think
the the beginning is the byte 4 ?
or something like that ?

Thanks!

-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Are the any Fuel file analysis tools/techniques?

2012-11-04 Thread Mariano Martinez Peck
Hi guys. Indeed, this is something we wanted since a long time and it has
already been discussed: http://code.google.com/p/fuel/issues/detail?id=163
Unfortunately, nobody had time to do it.
What we do have is written here:
http://rmod.lille.inria.fr/web/pier/software/Fuel/Version1.8/Documentation/Debugging
but the visualization that does not work well if the graph is large.
If your object graphs you usually serializer are around a known range of
size, you can check after the serialization if that was the case, and if it
was not, then debug it. Something you can do is to put a halt in
FLSerialization  #run  just after doing the self analysisStep..  At
that point, you can inspect the instVar 'clusters'. You can see which
clusters you have and each cluster understand #objects which answers all
the list of objects associated to that cluster. If a cluster corresponds to
a particular class you can also ask #theClass.
But this only works for the serialization, not for the materialization.
Cheers,



On Sat, Nov 3, 2012 at 10:54 AM, Max Leske maxle...@gmail.com wrote:

 +1
 I'd be very interested in that sort of thing.

 On 02.11.2012, at 19:08, Yanni Chiu ya...@rogers.com wrote:

  This scenario has happened a few times... Stuff is serialized and
 de-serialized (to/from files) without problem. Code changes are made. At
 some later date, I notice that the Fuel file is orders of magnitude bigger
 than it used to be.
 
  I usually manually de-serialize, and navigate the structures until I
 find the cause of the bloating.
 
  Is there some package or code snippets that can quickly summarize the
 object classes and sizes in a serialized file, or from its in-memory
 de-serialized form?
 
 





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] About a object life

2012-11-04 Thread Mariano Martinez Peck
On Sun, Nov 4, 2012 at 2:45 PM, Max Leske maxle...@gmail.com wrote:

 Only for new objects? If so, you could add an instance variable to Object
 and store a timestamp.


Well, kind of ;)  Because if you do that, your image will crash. This is
because the VM directly accesses (by offset) certain instVars of certain
classes. For example, it knows that the MethodDictionary of a class is at
the offset 2. So, if you add an instVar to Object all these offsets will be
shifted, and VM will be accessing incorrect places, and therefore, a crash
:)




 On 03.11.2012, at 15:26, Edgar J. De Cleene edgardec2...@gmail.com
 wrote:

  Folks:

 I wish know how old a object is.

 Any have code for this ?

 Thanks in advance

 Edgar





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Phobos Jenkins builds

2012-10-30 Thread Mariano Martinez Peck
Pavel, we drink it in the restaurant at the PharoConf ;)
Anyway, it is also a project being done between RMOD (France) and Argentina
and it is related about VM and how to implement as much as possible at the
language level...or something like that.
Cami or Guido may tell you better.

On Tue, Oct 30, 2012 at 6:56 PM, Bernardo Ezequiel Contreras 
vonbecm...@gmail.com wrote:

 joke
 The collateral effects of the Argentinian invasion!
 see
 http://en.wikipedia.org/wiki/Mate_(beverage)
 /joke



 On Tue, Oct 30, 2012 at 2:26 PM, Pavel Krivanek 
 pavel.kriva...@gmail.comwrote:

 Well, I need to create a configuration.

 BTW what is Mate? ;-)

 -- Pavel

 On Tue, Oct 30, 2012 at 3:07 PM, Camillo Bruni camillobr...@gmail.com
 wrote:
  Some remarks:
  -
 
  - Could you use the latest setup as in
 
  https://ci.lille.inria.fr/pharo/view/Rmod/job/Mate/configure
 
 cause I want to get rid of all bash scripts in jenkins if possible ;)
 
 
  best
  cami
 
 
  On 2012-10-30, at 14:42, Pavel Krivanek pavel.kriva...@gmail.com
 wrote:
 
  Hi,
 
  I created a set of Jobs related to Phobos on the Jenkins server:
  https://ci.lille.inria.fr/pharo/view/Phobos/
 
  The latest changes in Phobos include special integer input fields with
  automatic focus change, trees styling, various small fixes etc.
 
  Cheers,
  -- Pavel
 
 
 




 --
 Bernardo E.C.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] running pharo on an iPad

2012-10-27 Thread Mariano Martinez Peck
On Sat, Oct 27, 2012 at 11:40 AM, Esteban Lorenzano esteba...@gmail.comwrote:

 btw in a couple of weeks it will be a jenkins job to build iOS vms...


In the meanwhile, what about creating a page in Pharo webpage about
mobile and we link there the binaries for the iOS and android vm ?
or maybe in the same page of Download but in a different paragraph.


 On Oct 27, 2012, at 11:37 AM, Esteban Lorenzano esteba...@gmail.com
 wrote:

 Hi,

 that's because DrGeo is a private development, and you need a development
 profile for running applications in your iPhone/iPad.

 Assuming that you already has in your system:

 1) Xcode (I'm using version 4.4)
 2) CMake (I'm using version 2.8.8)

 And assuming also that you already has an iOS development user...

 For use pharo in your iPad you need to follow the following steps:

 1) clone https://git.gitorious.org/~estebanlm/cogvm/cog-osx.git
 2) in ./image dir prepare a VMMaker image (using pharo 1.4):

 Gofer it
 squeaksource: 'MetacelloRepository';
 package: 'ConfigurationOfCog';
 load.
 (Smaltalk at: #ConfigurationOfCog) project lastVersion load.

 3) Generate sources for iPhone:

 StackIPhoneConfig new
 generateSources; generate.

 4) Generate your iPhone image (follow the instructions in
 iosbuild/resources/README), which is the place where iOS images need to be
 placed.

 5) In dir ./build

 build$ ../codegen-scripts/extract-commit-info.sh
 build$ cmake -G Xcode .
 build$ open iStackVM.image

  5.1) you probably need to add your own development profile, the default
 one is named iPhone Developer

 6) run

 ALTERNATE
 To run in Simulator:
 Replace in Step 3 from StackIPhoneConfig to StackSimulatorConfig


 On Oct 27, 2012, at 1:09 AM, dimitris chloupis theki...@yahoo.co.uk
 wrote:

 I was searching for way to run pharo on my ipad and I found this thread

 http://forum.world.st/Pharo-for-iOS-td3832888.html

 that lead me to this website

 http://dl.dropbox.com/u/9643745/DrGeo/DrGeoTestBF.html

 The problem is when I try to install by website or by iTunes my ipad
 complains it cannot install Dr. Geo

 So is there a way to make pharo run on my ipad ?






-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] pharo system

2012-10-27 Thread Mariano Martinez Peck
On Sat, Oct 27, 2012 at 11:37 AM, gorgui ndong gorguind...@hotmail.frwrote:


 I'm writing a parser for abap in pharo, with Pharo-1.4 windows version.
 Sometimes with a bad expression pharo stop responding, when i do alt + it
 don't work.


Hi Gorgui. To interrupt a process check:
http://book.pharo-project.org/book/Tidbits/TipsAndTricks/InterruptKey/



 Best regards

 Gorgui



  From: stephane.duca...@inria.fr
  Date: Fri, 26 Oct 2012 21:14:33 +0200
  To: Pharo-project@lists.gforge.inria.fr
  Subject: Re: [Pharo-project] pharo system

 
  Hi Gorgui
 
  can you tell us what you are doing?
  Which system?
  Which os?
 
  on mac cmd+ . should bring a debugger
 
  Stef
 
  On Oct 26, 2012, at 1:09 AM, gorgui ndong wrote:
 
   Hi,
  
   I'm a beginner in pharo, and sometimes the pharo system is completely
 down. It don't give me a feedback for say me why this system error occurs.
   So I want to know what are the main causes of pharo's crashes and if
 i'm in this case what can i do for not loose my last image, with my last
 changes.
  
   Thanks
  
   Gorgui
 
 




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Hello + postgresql

2012-10-22 Thread Mariano Martinez Peck
On Fri, Oct 19, 2012 at 7:47 PM, Yanni Chiu ya...@rogers.com wrote:



 On 19/10/12 12:38 PM, 
 roberto.minelli-BHDiRLqP7qo@**public.gmane.orgroberto.minelli-bhdirlqp...@public.gmane.orgwrote:

 I managed to have Pharo 1.4 with a working version of PostgresV2
 native driver. I'll try with a fresh image and dbxtalk and let you
 guys know.


 If the native Postgres driver is good enough for now, there's no need to
 bother getting hardware specific opendbx libraries to work. However, the
 dbxtalk configuration includes Glorp, which you might want to try out.


Yes, but still, you can also use Glorp with the native postgres driver if
you want.

(((Smalltalk at: #ConfigurationOfGlorpDBX)
perform: #project)
perform: #version: with: #stable)
load: 'GlorpPostgresV2Native'


If you have more questions/problems, please ask :)


-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Parsing Smalltalk Array/Object Literals

2012-10-21 Thread Mariano Martinez Peck
On Sun, Oct 21, 2012 at 2:38 PM, Igor Stasenko siguc...@gmail.com wrote:

 On 21 October 2012 13:39, Denis Kudriashov dionisi...@gmail.com wrote:
  Hello
 
 
  2012/10/21 Igor Stasenko siguc...@gmail.com
 
  i now modelling a system logger (to replace .changes file), and since
  i having no better idea,
  i'll try to use object literals for it.
 
 
  Do you see Deltas project?

 Sure i know about deltas. I was hacking it. :)

  I think one of the proposals was .changes file replacement

 not exactly. it is more changeset replacement.
 What i am doing is a bit orthogonal: it is a facility to recover lost
 changes.
 All of the sources will be held inside image.


But one very common case to recover lost changes is when the image is
broken... so if you store the stuff in the image...


 --
 Best regards,
 Igor Stasenko.




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Parsing Smalltalk Array/Object Literals

2012-10-21 Thread Mariano Martinez Peck
On Sun, Oct 21, 2012 at 3:17 PM, Marcus Denker marcus.den...@inria.frwrote:


 On Oct 21, 2012, at 3:12 PM, Mariano Martinez Peck marianop...@gmail.com
 wrote:

 
 
  On Sun, Oct 21, 2012 at 2:38 PM, Igor Stasenko siguc...@gmail.com
 wrote:
  On 21 October 2012 13:39, Denis Kudriashov dionisi...@gmail.com wrote:
   Hello
  
  
   2012/10/21 Igor Stasenko siguc...@gmail.com
  
   i now modelling a system logger (to replace .changes file), and since
   i having no better idea,
   i'll try to use object literals for it.
  
  
   Do you see Deltas project?
 
  Sure i know about deltas. I was hacking it. :)
 
   I think one of the proposals was .changes file replacement
 
  not exactly. it is more changeset replacement.
  What i am doing is a bit orthogonal: it is a facility to recover lost
 changes.
  All of the sources will be held inside image.
 
 
  But one very common case to recover lost changes is when the image is
 broken... so if you store the stuff in the image...
 
 The .changes right now has two duties

 1) Be a log in case of crash. Like a transaction log in a database...
 2) the place where the sourcecode is because it is oh so large.

 So I vote for splitting where source is stored from the transaction log.

 The log file then will be just a log. e.g. the image that you download:
 the log will be empty.
 The log can be deleted at any point, it is just a log.


+
music to my ears. I have been dreaming with this since a log long time


 Marcus

 --
 Marcus Denker -- http://marcusdenker.de





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] how can I get a 20 image without Nautilus and RB?

2012-10-21 Thread Mariano Martinez Peck
To answer your question: right now, there is no way I am aware of. The only
thing you may want to try is to manually unload the packages :(


On Sun, Oct 21, 2012 at 4:35 PM, Stéphane Ducasse stephane.duca...@inria.fr
 wrote:

 Hi guys

 Since now Metacello is loaded and I would like to check the new
 configurationOfRefactoringBrowser, Nautilus and many others… :)
 I would like to know if there is an image that I can use to test them.

 In addition, as you guess, I would like that the integration server is
 loading them for us from the configurations :)
 Remember we want a modular and small system.

 Esteban (I know that you do not have enough time to work on what we both
 want :).
 We will have to resurrect this project :)

 Stef




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Fuel for Squeak stupid questions

2012-10-17 Thread Mariano Martinez Peck
On Tue, Oct 16, 2012 at 2:06 PM, Max Leske maxle...@gmail.com wrote:

 Edgar,

 There is indeed a bug in Fuel, namely Fuel ignores the local time zone.
 The reason why I didn't detect that in my image is that Squeak seems to
 have some problems of its own in determining the correct time zone… :)


Mm is this Squeak only or also in Pharo?



 I'll write a fix for that.

 Cheers,
 Max

 On 16.10.2012, at 12:55, Edgar J. De Cleene edgardec2...@gmail.com
 wrote:

 
 
 
  On 10/16/12 3:52 AM, Max Leske maxle...@gmail.com wrote:
 
  I checked against build 11925 (found here: http://ftp.squeak.org/trunk/).
 Did
  you get your image from somewhere else?
  I can take a look at the image if you like. You'd just have to put it
  somewhere for me to download (together with the changes of course).
 
  Max
 
 
  Changes was grouped into 'SL' ChangeSet
 
  These days try to learn from Fuel and from Phobos to get into this image,
  currently I use modify HV2 as light web framework
 
  The .image is saved as NO Cog format and runs with both Elliot and
 Esteban
  or with old John, in my case I have old hardware (that's why I saved and
  updated with Squeak 4.2.5beta1U )
 
  I send direct to you as this is very preliminar for going public
 
  Very thanks
 
  Edgar
 
 





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Fuel for Squeak stupid questions

2012-10-11 Thread Mariano Martinez Peck
On Thu, Oct 11, 2012 at 5:53 PM, Max Leske maxle...@gmail.com wrote:

 Ah!

 Could you try the Date fix I proposed in a 4.3 image?

 BTW I'm working on fixing the other failing tests (for 4.3) aswell.


Excellent. Once you finish, let us know. We can do a compatibility package
if you want. It works like this for Pharo: last Fuel (trunk) is supposed to
work with last (trunk) of Pharo, right  now 2.0.
Then, we have a package with overrides or some other dirty hacks to work
with each previous version of Pharo. And then Metacello takes care of
automatically load the necessary compatibility packages. See the
 ConfigurationOfFuelbaseline19:  and look the FuelCompatibilityXXX
packages. We could have the same for Squeak if somebody do them.

Cheers,


 Cheers,
 Max


 On 11.10.2012, at 11:48, Edgar J. De Cleene edgardec2...@gmail.com
 wrote:

 
 
 
  On 10/10/12 11:04 AM, Max Leske maxle...@gmail.com wrote:
 
  Edgar, which version of Squeak are you using?
 
  Max
 
  Current Squeak 4.4 updated with some code I add.
 
  Edgar
 
 
 





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Fuel for Squeak stupid questions

2012-10-08 Thread Mariano Martinez Peck
On Mon, Oct 8, 2012 at 8:30 AM, Max Leske maxle...@gmail.com wrote:

 Looking at the failing tests I see that the objects really are supposed to
 be different (comparison with #~~). What fails is the equality check (#=)
 and for Date that is the method Timespan=. The problem that occurs there
 is a really old (and annoying one), namely that the timezone offset is
 handled inconsistently: the materialized object has the correct offset
 while the original object doesn't.


I think it could work if you just remove DatefuelAccept: . Can you try?


 So:
 - FLBasicSerializationTesttestDate fails because of timezone offset
 - FLBasicSerializationTesttestGradientFillStyle fails because Object=
 isn't overridden in any subclass and therefore identity is checked, which
 fails
 - (same as above for FLBasicInMemorySerializationTest)

 The other failures seem to be due to implementation differences between
 Pharo and Squeak (I didn't really look into them) but I couldn't find one
 test that seemed to fail because of hashing problems.


Yes, I didn't really understand the thing with the hashes. I don't think
there should be a problem there. Something obvious is that a normal object
that is serialized will probabyt have a different identityHash than the
materialized object.

Thanks!


 I'll see if I can come up with a test case.

 Cheers,
 Max


 On 07.10.2012, at 16:38, Max Leske maxle...@gmail.com wrote:

 The two objects I looked at where a string and an OrderedCollection. I
 wouldn't conclude that the problem is class specific...

 On 07.10.2012, at 16:12, Edgar J. De Cleene edgardec2...@gmail.com
 wrote:




 On 10/7/12 10:51 AM, Max Leske maxle...@gmail.com wrote:


 Following you example, in Squeak FLBasicSerializationTest#testDate

 materialized largeIdentityHash = 2571

  anObject. largeIdentityHash = *1094
 *

 So why Date serializaded object gives this and the rest of objects no ?

 Edgar





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Fuel for Squeak stupid questions

2012-10-07 Thread Mariano Martinez Peck
Hi Edgar. Which version are you using exactly of the package Fuel?
Thanks,

On Sun, Oct 7, 2012 at 2:38 PM, Edgar J. De Cleene
edgardec2...@gmail.comwrote:

  Hi Mariano:


 Just have Fuel loaded into Squeak.
 Trying to understand , first I run Sunit
 The test says 240 run, 231 passes, 2 expected failures, 6 failures, 0
 errors, 1 unexpected passes


  failures

 FLBasicSerializationTest#testDate
 FLBasicSerializationTest#testGradientFillStyle
 FLInMemoryBasicSerializationTest#testDate
 FLInMemoryBasicSerializationTest#testGradientFillStyle
 FLMigrationTest#testFormatFixedToVariable
 FLMigrationTest#testFormatVariableToFixed
 FLWeakObjectsTest#testAssociationWithWeakFinalizationList

 In testDate, clicking in debugger for materialized and for  anObject both
 shows as Date objects with 14 May 2002 as value.
 Could tell why anObject = materialized evaluates to false ?

 Edgar




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] [squeak-dev] Squeak Community Project: MutationEngine

2012-10-04 Thread Mariano Martinez Peck
Hi Anton, which is the main differences with
http://code.google.com/p/mutalk/  ?  (if you happen to already know that
project)

Thanks,

On Thu, Oct 4, 2012 at 6:03 PM, Anton Gulenko 
anton.gule...@student.hpi.uni-potsdam.de wrote:

 Dear Frank,

 The MethodEngine project is not an implementation of method wrappers.
 The focus is on automatic (but also controlled) generation of program
 mutations.
 In fact, the MethodEngine can USE an implementation of method wrappers
 to inject a mutation into the program. It could also use other
 mechanisms like directly compiling the modified code or using AOP.

 Best regards,
 Anton

 2012/10/4 Frank Shearar frank.shea...@gmail.com:
  On 4 October 2012 09:59, Anton Gulenko
  anton.gule...@student.hpi.uni-potsdam.de wrote:
  Dear Community,
 
  We would like to announce a new Squeak Community Project by the Software
  Architecture Group, Hasso-Plattner-Institute. Our new MutationEngine
  is a library
  to inject random modifications (mutations) in order to insert defects
  into Smalltalk
  programs and to make them crash. With that, you can automatically check
 and
  evaluate the effectivity of your debugging and testing approaches. The
  MutationEngine also provides a safe clean up at the end so that your
 Squeak
  system is not affected after a critical mutation.
 
  This looks very interesting. It's also about the third implementation
  of method wrappers that I've seen (the others being the in-image
  example, and ObjectsAsMethodsWrapper), and makes me wonder if we
  shouldn't have a single best-of-everything library for what's clearly
  a broadly useful tool.
 
  frank
 
  A description, setup instructions and a tutorial can be found in the
 following
  Wiki article:
 
 https://www.hpi.uni-potsdam.de/hirschfeld/trac/SqueakCommunityProjects/wiki/mutations
 
  Best regards,
  Anton
 
 




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] rmod is down - fuel for squeak?

2012-10-02 Thread Mariano Martinez Peck
On Tue, Oct 2, 2012 at 6:48 AM, Max Leske maxle...@gmail.com wrote:

 No, this time it's not for seaside hosting. It's another application that
 we cannot port to Pharo at the moment.


Ok. What you should try to do (since I guess Metacello does not work there)
is to manually load this (the order is important):

ConfigurationOfFuel project stableVersion record

 a MetacelloNullRecordingMCSpecLoader(linear load :
linear load : 1.8 [ConfigurationOfFuel]
load : Fuel-MartinDias.685
load : FuelTests-MartinDias.267
load : FuelCompatibilityBeforePharo20-MartinDias.4
load : FuelCompatibilityBeforePharo14-MartinDias.3
load : FuelCompatibilityBeforePharo13-MarianoMartinezPeck.3
load : FuelCompatibilityBeforePharo12-MartinDias.8
load : FuelCompatibilityForSqueak-MMP.4
load : FuelTestsCompatibilityForSqueak)

and try to see what happens :)


 Max


 On 01.10.2012, at 23:07, Mariano Martinez Peck marianop...@gmail.com
 wrote:



 On Mon, Oct 1, 2012 at 11:04 PM, Max Leske maxle...@gmail.com wrote:

 Thanks Mariano.

 I can confirm that it works out of the box in Squeak 4.3.


 :)


 I have a 3.9 image though… :)


 I'll let you know if I get it running on there


 Let me know if I can help. If you make it work, we can do a compatibility
 package and put it in ConfigurationOfFUel so that it loads automatically in
 Squeak 3.9.


 (might be simpler to use a newer image though).


 Well, it looks this is for seasidehosting? in either case, why not
 updating to Pharo?  because of the custom network primitives you have?



 On 01.10.2012, at 22:51, Mariano Martinez Peck marianop...@gmail.com
 wrote:



 On Mon, Oct 1, 2012 at 10:44 PM, Max Leske maxle...@gmail.com wrote:

 I wanted some info on Fuel but the rmod page is down…

 Anyways, I read that Mariano got Fuel running on Squeak. Is there an
 official version for Squeak?


 Hi Max. It should just work. The ConfigurationOfFuel should automatically
 load the needed compatibility packages.
 I tried in 4.3 and 4.1 (if I remember correctly).



 --
 Mariano
 http://marianopeck.wordpress.com





 --
 Mariano
 http://marianopeck.wordpress.com





-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] rmod is down - fuel for squeak?

2012-10-02 Thread Mariano Martinez Peck
On Tue, Oct 2, 2012 at 12:02 PM, Edgar J. De Cleene
edgardec2...@gmail.comwrote:




 On 10/2/12 6:36 AM, Max Leske maxle...@gmail.com wrote:

 Ok. What you should try to do (since I guess Metacello does not work
 there) is to manually load this (the order is important):

 ConfigurationOfFuel project stableVersion record

  a MetacelloNullRecordingMCSpecLoader(linear load :
 linear load : 1.8 [ConfigurationOfFuel]
 load : Fuel-MartinDias.685
 load : FuelTests-MartinDias.267
 load : FuelCompatibilityBeforePharo20-MartinDias.4
 load : FuelCompatibilityBeforePharo14-MartinDias.3
 load : FuelCompatibilityBeforePharo13-MarianoMartinezPeck.3
 load : FuelCompatibilityBeforePharo12-MartinDias.8
 load : FuelCompatibilityForSqueak-MMP.4
 load : FuelTestsCompatibilityForSqueak)


 Hi Mariano:
 Repository which you are using ?


Hi Edgar,

'http://ss3.gemstone.com/ss/Fuel'


 I reading http://marianopeck.wordpress.com/ , waiting Tanker could be
 adapted to Squeak some day.


Hopefully, I don't have time to do it myself but as always, I am happy to
help is someone wants to do it. It should be very easy actually.



 Edgar




-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] rmod is down - fuel for squeak?

2012-10-02 Thread Mariano Martinez Peck
On Tue, Oct 2, 2012 at 12:10 PM, Frank Shearar frank.shea...@gmail.comwrote:

 On 2 October 2012 11:07, Mariano Martinez Peck marianop...@gmail.com
 wrote:
 
 
  On Tue, Oct 2, 2012 at 12:02 PM, Edgar J. De Cleene 
 edgardec2...@gmail.com
  wrote:
 
 
 
 
  On 10/2/12 6:36 AM, Max Leske maxle...@gmail.com wrote:
 
  Ok. What you should try to do (since I guess Metacello does not work
  there) is to manually load this (the order is important):
 
  ConfigurationOfFuel project stableVersion record
 
   a MetacelloNullRecordingMCSpecLoader(linear load :
  linear load : 1.8 [ConfigurationOfFuel]
  load : Fuel-MartinDias.685
  load : FuelTests-MartinDias.267
  load : FuelCompatibilityBeforePharo20-MartinDias.4
  load : FuelCompatibilityBeforePharo14-MartinDias.3
  load : FuelCompatibilityBeforePharo13-MarianoMartinezPeck.3
  load : FuelCompatibilityBeforePharo12-MartinDias.8
  load : FuelCompatibilityForSqueak-MMP.4
  load : FuelTestsCompatibilityForSqueak)
 
 
  Hi Mariano:
  Repository which you are using ?
 
 
  Hi Edgar,
 
  'http://ss3.gemstone.com/ss/Fuel'
 
 
  I reading http://marianopeck.wordpress.com/ , waiting Tanker could be
  adapted to Squeak some day.
 
 
  Hopefully, I don't have time to do it myself but as always, I am happy to
  help is someone wants to do it. It should be very easy actually.

 Unless someone beats me to it, I'll port it. (I have other things on
 my plate right now so if you (the reader, not necessarily Edgar) have
 need of Tanker in Squeak, by all means start without me and I'll pitch
 in when I have a chance.)


Good. Before starting let me know that I can send you what I thought about
how we could do it.



 frank

  Edgar
 
 
 
 
  --
  Mariano
  http://marianopeck.wordpress.com
 




-- 
Mariano
http://marianopeck.wordpress.com


  1   2   3   4   5   6   7   8   9   10   >