Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-06-29 Thread Jan Blizničenko
Good idea. Results are... desktop: 664 503 569 bytecodes/sec; 837 14 077 sends/sec. Linux in VM on desktop: 716 083 916 bytecodes/sec; 74 030 622 sends/sec notebook: 1 114 861 186 bytecodes/sec; 148 958 012 sends/sec ...results fluctuate by about 10 % on all systems when tried multiple times with

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-06-29 Thread Peter Uhnák
Windows XP 1011857707 bytecodes/sec; 132044070 sends/sec Debian 1172295363 bytecodes/sec; 144744207 sends/sec But I think taking the compile: method apart tells a better story ~~~ code := 'a'. method := Object compiler source: code; requestor: nil; failBlock: [ ^nil ]; compile.

Re: [Pharo-users] Pharo image processing library

2015-06-29 Thread Nicolai Hess
2015-06-25 18:41 GMT+02:00 Peter Uhnák : > Hi, > > is there any image (as in picture) processing library in the likes of > Python's PIL(http://effbot.org/imagingbook/image.htm), > > or even (highly unlikely) something like OpenCV (http://opencv.org/)? > Not that I know of. Juan Vuletich had a nic

Re: [Pharo-users] pragmas and example* methods use-cases

2015-06-29 Thread Nicolai Hess
2015-06-29 20:10 GMT+02:00 Sean P. DeNigris : > Peter Uhnák wrote > > It seems that > > > > is then the go-to naming for now > > I agree with Ben that from a native English perspective, exemplar doesn't > quite sound right. > > Sample and Example are the two words that most clearly capture the i

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-06-29 Thread Nicolai Hess
2015-06-30 3:17 GMT+02:00 Clément Bera : > What about "1 tinyBenchmarks" ? > > Just to know if the VM is slower as a whole or only compilation / source > access ? > most time is spend on primitives FilePrimitives are slow on windows. > > 2015-06-30 0:36 GMT+02:00 Jan Blizničenko : > >> And one

Re: [Pharo-users] RAM-efficient alternative to ZnMultiPartFormDataEntity

2015-06-29 Thread mikefilonov
Thank you for the link. It is a useful example of how ajax upload can be implemented in Seaside. However, by looking at the code which works without nginx plugin I see the project does not change the mechanism of request reading, meaning if you upload 1Gb file you still need 1Gb of RAM to store W

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-06-29 Thread Clément Bera
What about "1 tinyBenchmarks" ? Just to know if the VM is slower as a whole or only compilation / source access ? 2015-06-30 0:36 GMT+02:00 Jan Blizničenko : > And one another benchmark of linux in VM on that desktop PC: > Roassal loading - 58 s > compilations per second - avg: 262.4682, min: 25

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-06-29 Thread Jan Blizničenko
And one another benchmark of linux in VM on that desktop PC: Roassal loading - 58 s compilations per second - avg: 262.4682, min: 257.194, max: 289.684 ...so the desktop PC is capable of better result and problem is somewhere in Windows, which I was afraid of... I'd also like to add to previous Wi

Re: [Pharo-users] HTTP file logging for Zinc

2015-06-29 Thread Sven Van Caekenberghe
> On 29 Jun 2015, at 21:40, Esteban A. Maringolo wrote: > > Hello everyone, > > I want to record everything that goes in or out from our REST API servers, > maybe including HTTP payload (JSON mostly). > > ZnLogEvent seems to have the basic building blocks for logging, but I want to > know if

Re: [Pharo-users] RAM-efficient alternative to ZnMultiPartFormDataEntity

2015-06-29 Thread Sven Van Caekenberghe
> On 29 Jun 2015, at 10:00, mikefilonov wrote: > > Hi Sven, > > Thank you for a prompt reply. > > I have in mind something similar to the followin nginx plugin: > http://www.grid.net.ru/nginx/upload.en.html > > We could dump entity body directly from socket stream to a file (buffered > reade

Re: [Pharo-users] adding an element to an empty array

2015-06-29 Thread Sven Van Caekenberghe
> On 29 Jun 2015, at 14:23, Henrik Johansen > wrote: > > >> On 29 Jun 2015, at 2:18 , abdelghani ALIDRA wrote: >> >> Hi guys, >> >> Is there any way to add an element to an empty array (must not use new: >> anElement)? >> >> Cheers > > It sounds like you want to use an OrderedCollection,

Re: [Pharo-users] Chess Game / UpdatingStringMorph

2015-06-29 Thread Sean P. DeNigris
MerwanOuddane wrote > You should just replace it with a StringMorph and figure out how to > update the morph right on time :) It seems like there should be Morph>>#addAlarm:every:, but I don't see anything like that... - Cheers, Sean -- View this message in context: http://forum.world.st/

Re: [Pharo-users] Chess Game / UpdatingStringMorph

2015-06-29 Thread Merwan Ouddane
On 29/06/2015 21:17, Volkert wrote: I am trying to load the old chess game from Squeak [1] into Pharo 4.0. The game depends on the class "UpdatingStringMorph", but this is not part of Pharo. I think it is a StringMorph who's watching changes by calling a method on an object. What happened to

Re: [Pharo-users] Chess Game / UpdatingStringMorph

2015-06-29 Thread Nicolai Hess
2015-06-29 21:17 GMT+02:00 Volkert : > I am trying to load the old chess game from Squeak [1] into Pharo 4.0. > > The game depends on the class "UpdatingStringMorph", but this is not part > of Pharo. > > What happened to it? Was it renamed? > removed, but I don't know why: 11492

[Pharo-users] HTTP file logging for Zinc

2015-06-29 Thread Esteban A. Maringolo
Hello everyone, I want to record everything that goes in or out from our REST API servers, maybe including HTTP payload (JSON mostly). ZnLogEvent seems to have the basic building blocks for logging, but I want to know if there is a package/project that already provides file logging, so I can not

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-06-29 Thread Peter Uhnák
I've had also bad results on windows... Windows XP 32bit (VirtualBox) - 178.200 (compilations per second) compared to Ubuntu 32bit (VirtualBox) - 694.932 Debian 64bit (host) - 669.932 I had also had experience with Git handling small files on windows was incredibly slow... so maybe it has someth

[Pharo-users] Chess Game / UpdatingStringMorph

2015-06-29 Thread Volkert
I am trying to load the old chess game from Squeak [1] into Pharo 4.0. The game depends on the class "UpdatingStringMorph", but this is not part of Pharo. What happened to it? Was it renamed? BW, Volkert [1] http://map.squeak.org/package/cb19b6f1-e371-47b2-b814-4bad079d0fbc

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-06-29 Thread Nicolai Hess
2015-06-29 14:52 GMT+02:00 H. Hirzel : > On 6/29/15, Nicolai Hess wrote: > > 2015-06-29 12:55 GMT+02:00 Peter Uhnák : > > > >> > >> > >> On Mon, Jun 29, 2015 at 12:16 PM, Stephan Eggermont > >> wrote: > >> > >>> On 29-06-15 10:26, Hannes Hirzel wrote: > >>> > Thank you, Stephan, for providi

Re: [Pharo-users] pragmas and example* methods use-cases

2015-06-29 Thread Sean P. DeNigris
Peter Uhnák wrote > It seems that > > is then the go-to naming for now I agree with Ben that from a native English perspective, exemplar doesn't quite sound right. Sample and Example are the two words that most clearly capture the intent. The problem with using #sample to return instances and

[Pharo-users] Slow compilation on one of my Windows PCs

2015-06-29 Thread Jan Blizničenko
Hello I have a long-term problem with loading of packages. Compilation takes very long time on my Windows PCs. On desktop it takes "only" double amount of time in comparison with linux, but on notebook, it is more than 10 times slower. Desktop has Windows 7 Ultimate 64-bit and notebook PC with Win

Re: [Pharo-users] RAM-efficient alternative to ZnMultiPartFormDataEntity

2015-06-29 Thread Paul DeBruicker
Have you seen: http://www.squeaksource.com/fileupload.html -- View this message in context: http://forum.world.st/RAM-efficient-alternative-to-ZnMultiPartFormDataEntity-tp4834528p4834666.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] AST Inspector

2015-06-29 Thread Tudor Girba
That's a nice project. A visual rule creation tool would be so cool! Doru On Mon, Jun 29, 2015 at 7:21 PM, Mark Rizun wrote: > If you already seen the GT view, perhaps this means that you were missing >> something. Is it only the visual representation, or do you miss something >> else? >> > > F

Re: [Pharo-users] AST Inspector

2015-06-29 Thread Mark Rizun
> > If you already seen the GT view, perhaps this means that you were missing > something. Is it only the visual representation, or do you miss something > else? > For the most part the missing part is the visual representation of the tree. However I did this little inspector because in the future

Re: [Pharo-users] AST Inspector

2015-06-29 Thread Tudor Girba
Hi, If you already seen the GT view, perhaps this means that you were missing something. Is it only the visual representation, or do you miss something else? Also, you can embed your view directly in GT. Cheers, Doru On Mon, Jun 29, 2015 at 6:53 PM, Mark Rizun wrote: > Need a bit of anti-al

Re: [Pharo-users] AST Inspector

2015-06-29 Thread Mark Rizun
Simple morphic. 2015-06-29 20:01 GMT+03:00 Peter Uhnák : > What is it drawn with? > > On Mon, Jun 29, 2015 at 6:53 PM, Mark Rizun wrote: > >> Need a bit of anti-aliasing for the round shapes :) >>> >> >> Right :) >> >> >>> I wonder how it will look with a long method: they usually have rather >>

Re: [Pharo-users] AST Inspector

2015-06-29 Thread Peter Uhnák
What is it drawn with? On Mon, Jun 29, 2015 at 6:53 PM, Mark Rizun wrote: > Need a bit of anti-aliasing for the round shapes :) >> > > Right :) > > >> I wonder how it will look with a long method: they usually have rather >> flat ASTs that would result in a wide diagram. > > > Yes it will be pre

Re: [Pharo-users] AST Inspector

2015-06-29 Thread Mark Rizun
> > Need a bit of anti-aliasing for the round shapes :) > Right :) > I wonder how it will look with a long method: they usually have rather > flat ASTs that would result in a wide diagram. Yes it will be pretty huge. However, 1) there is an option to scale the tree (nodes) 2) most of the metho

Re: [Pharo-users] AST Inspector

2015-06-29 Thread Thierry Goubier
Hi Mark, Le 29/06/2015 18:04, Mark Rizun a écrit : Hi, everyone! When I was exploring AST in Pharo, at the beginning it seemed a bit confusing for me how the tree looks like, or which part of code some node represents etc. As I'm working with ASTs for a while now, still not an expert ;), I deci

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-06-29 Thread H. Hirzel
On 6/29/15, Stephan Eggermont wrote: > On 29-06-15 14:38, Nicolai Hess wrote: >> Yes, but clipping may be an issue, and any Morph with a slightly more >> advanded drawing method (like lists) >> may be more difficult. And you need a way to convert patterns/images to >> something that can be includ

[Pharo-users] AST Inspector

2015-06-29 Thread Mark Rizun
Hi, everyone! When I was exploring AST in Pharo, at the beginning it seemed a bit confusing for me how the tree looks like, or which part of code some node represents etc. As I'm working with ASTs for a while now, still not an expert ;), I decided to make a simple AST Inspector for myself and ever

Re: [Pharo-users] Setting GUI pointer's position

2015-06-29 Thread Laura Risani
I'll try to dig into some suggestions found in your link... On Mon, Jun 29, 2015 at 11:50 AM, Matthieu Lacaton < matthieu.laca...@gmail.com> wrote: > I meant 1. > I don't know if you can hide the active hand but I don't think so :s > > 2015-06-29 16:42 GMT+02:00 Laura Risani : > >> Do you mean 1

Re: [Pharo-users] Setting GUI pointer's position

2015-06-29 Thread Matthieu Lacaton
I meant 1. I don't know if you can hide the active hand but I don't think so :s 2015-06-29 16:42 GMT+02:00 Laura Risani : > Do you mean 1 or 2? > 1) can add another hand and have two hands at the same time opened on the > world, be able to move the new one > 2) can add another hand and make it ta

Re: [Pharo-users] Setting GUI pointer's position

2015-06-29 Thread Laura Risani
Do you mean 1 or 2? 1) can add another hand and have two hands at the same time opened on the world, be able to move the new one 2) can add another hand and make it take the place of the existing hand and move it (so the effect would be like moving the hand) On Mon, Jun 29, 2015 at 11:33 AM, Matth

Re: [Pharo-users] Setting GUI pointer's position

2015-06-29 Thread Matthieu Lacaton
Hello, I asked the same thing some time ago and here are the answers I got : http://forum.world.st/Moving-the-HandMorph-td4826025.html Maybe it will give you ideas. As I said at the end, I did not find how to move the active hand but you can create another one and move this one. I don't know if

[Pharo-users] Setting GUI pointer's position

2015-06-29 Thread Laura Risani
How can i programmatically set the GUI pointer's position? I've tried World currentHand position:20@20. World activeHand position:20@20. but didn't work.

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-06-29 Thread Stephan Eggermont
On 29-06-15 14:38, Nicolai Hess wrote: Yes, but clipping may be an issue, and any Morph with a slightly more advanded drawing method (like lists) may be more difficult. And you need a way to convert patterns/images to something that can be included in a svg file. Clipping paths in svg seem eas

Re: [Pharo-users] Displaying an image from a file

2015-06-29 Thread Laura Risani
Ok ! The snippet explained the reading from file, and ThemeIcons explained the saving-to/loading-from method. On Sat, Jun 27, 2015 at 2:20 PM, Sven Van Caekenberghe wrote: > Here are two examples that contain elements of what you want: > > (ZnEasy getPng: 'http://pharo.org/web/files/pharo.png')

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-06-29 Thread H. Hirzel
On 6/29/15, Nicolai Hess wrote: > 2015-06-29 12:55 GMT+02:00 Peter Uhnák : > >> >> >> On Mon, Jun 29, 2015 at 12:16 PM, Stephan Eggermont >> wrote: >> >>> On 29-06-15 10:26, Hannes Hirzel wrote: >>> Thank you, Stephan, for providing a well worked out example continuing where Morphi

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-06-29 Thread H. Hirzel
On 6/29/15, Nicolai Hess wrote: > 2015-06-29 10:26 GMT+02:00 Hannes Hirzel : > >> Thank you, Stephan, for providing a well worked out example continuing >> where >> Morphic tutorials normally end. This is a real need to unearth functions >> which have been there fore years but mostly unused. >> >>

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-06-29 Thread Nicolai Hess
2015-06-29 12:16 GMT+02:00 Stephan Eggermont : > On 29-06-15 10:26, Hannes Hirzel wrote: > >> Thank you, Stephan, for providing a well worked out example continuing >> where >> Morphic tutorials normally end. This is a real need to unearth functions >> which have been there fore years but mostly u

Re: [Pharo-users] adding an element to an empty array

2015-06-29 Thread Peter Uhnák
Or if you want to create an array with elements already in it (this works both for array and collections) you can also do ~~ { anElement } "dynamic array syntax, Pharo-only" ~~ or #('element') "static array, works only for scalars" or Array with:

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-06-29 Thread Nicolai Hess
2015-06-29 10:26 GMT+02:00 Hannes Hirzel : > Thank you, Stephan, for providing a well worked out example continuing > where > Morphic tutorials normally end. This is a real need to unearth functions > which have been there fore years but mostly unused. > > The two video clips document the use case

Re: [Pharo-users] adding an element to an empty array

2015-06-29 Thread Henrik Johansen
> On 29 Jun 2015, at 2:18 , abdelghani ALIDRA wrote: > > Hi guys, > > Is there any way to add an element to an empty array (must not use new: > anElement)? > > Cheers It sounds like you want to use an OrderedCollection, not an Array. Those will grow and shrink as needed when you use add:/rem

[Pharo-users] adding an element to an empty array

2015-06-29 Thread abdelghani ALIDRA
Hi guys, Is there any way to add an element to an empty array (must not use new: anElement)? Cheers

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-06-29 Thread Peter Uhnák
On Mon, Jun 29, 2015 at 12:16 PM, Stephan Eggermont wrote: > On 29-06-15 10:26, Hannes Hirzel wrote: > >> Thank you, Stephan, for providing a well worked out example continuing >> where >> Morphic tutorials normally end. This is a real need to unearth functions >> which have been there fore years

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-06-29 Thread Stephan Eggermont
On 29-06-15 10:26, Hannes Hirzel wrote: Thank you, Stephan, for providing a well worked out example continuing where Morphic tutorials normally end. This is a real need to unearth functions which have been there fore years but mostly unused. The two video clips document the use cases of the code

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-06-29 Thread Hannes Hirzel
Thank you, Stephan, for providing a well worked out example continuing where Morphic tutorials normally end. This is a real need to unearth functions which have been there fore years but mostly unused. The two video clips document the use cases of the code nicely. A question not answered yet is:

Re: [Pharo-users] RAM-efficient alternative to ZnMultiPartFormDataEntity

2015-06-29 Thread mikefilonov
Hi Sven, Thank you for a prompt reply. I have in mind something similar to the followin nginx plugin: http://www.grid.net.ru/nginx/upload.en.html We could dump entity body directly from socket stream to a file (buffered reader/writer) and add a header to Request so backend could just have a fil

Re: [Pharo-users] RAM-efficient alternative to ZnMultiPartFormDataEntity

2015-06-29 Thread Sven Van Caekenberghe
Hi Mike, > On 29 Jun 2015, at 04:43, mikefilonov wrote: > > Hello, > > I'm searching for an alternative implementation of ZnMultiPartFormDataEntity > which dumps it's parts to Filesystem as files saving RAM. > > Is there such an addon or it should be developed? No, there is no such a thing,