Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread GOUBIER Thierry
Hi Igor, What about scanning for globals in the code? And just a proper way to declare globals somewhere in a package should be about enough (loading scripts can take care of the initialisation, no?). Or... All globals are classes, or accessed via classes (singleton pattern). Like that you

Re: [Pharo-dev] Tell me about your workflow

2013-12-14 Thread GOUBIER Thierry
Stef, how do I load Moose in a 3.0 image? There is no Moose config in the 3.0 meta repository. Thierry De : Pharo-dev [pharo-dev-boun...@lists.pharo.org] de la part de Stéphane Ducasse [stephane.duca...@inria.fr] Date d'envoi : vendredi 13 décembre 2013 13:47 À

[Pharo-dev] [Issue Tracker] 542 open issues

2013-12-14 Thread Marcus Denker
There are 542 open issues on the tacker https://pharo.fogbugz.com/f/filters/57/All-newest-first ‘Closed last Week” is at 72. Keep in mind that every single issue fixed is valuable… we fixed the 72 because someone fixed *one*. Marcus

[Pharo-dev] About Athens and Cairo

2013-12-14 Thread Alexandre Bergel
Hi! I have some random questions about the Cairo binding supported by Athens. - the rendering is done by the graphic card isn’t it? - Once rendered, is the produced bitmap copied by the CPU in Pharo? With Roassal3d, we are facing a problem of performance because there is an unnecessary copy

[Pharo-dev] Searching classes cmd-f cmd-c

2013-12-14 Thread Alexandre Bergel
In the popup you obtain, you can enter a regular expression. So, if you enter ^Morph then you get the list of classes that begins with “Morph” I’ve just discovered this :-) Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu

Re: [Pharo-dev] About Athens and Cairo

2013-12-14 Thread Hilaire Fernandes
Le 14/12/2013 09:58, Alexandre Bergel a écrit : - the rendering is done by the graphic card isn’t it? I think it is sofware based, by the libcairo. Hilaire -- Dr. Geo http://drgeo.eu

Re: [Pharo-dev] About Athens and Cairo

2013-12-14 Thread kilon alios
No cairo is not GPU accelerated , rendering is done by your CPU , but of course the graphic card is the one that display things. here is a detailed explanation - http://lists.cairographics.org/archives/cairo/2012-October/023609.html please note that even in the case of opengl backend I very much

Re: [Pharo-dev] About Athens and Cairo

2013-12-14 Thread Alexandre Bergel
Le 14/12/2013 09:58, Alexandre Bergel a écrit : - the rendering is done by the graphic card isn’t it? I think it is sofware based, by the libcairo. Yes, but on http://cairographics.org it is written: Cairo is designed to produce consistent output on all output media while taking advantage

Re: [Pharo-dev] About Athens and Cairo

2013-12-14 Thread Alexandre Bergel
Thanks Kilon for the explanation. Alexandre On Dec 14, 2013, at 10:56 AM, kilon alios kilon.al...@gmail.com wrote: No cairo is not GPU accelerated , rendering is done by your CPU , but of course the graphic card is the one that display things. here is a detailed explanation -

[Pharo-dev] strange bug when opening the morph menu

2013-12-14 Thread Tudor Girba
Hi, Try this: 1. Execute Workspace open 2. Try to get the menu of the window == it opens just fine 1. Execute Workspace open label: (1 to: 100) asOrderedCollection asString 2. Try to get the menu of the window == it does not open properly (it opens large and it closes quickly) and the mouse

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread Norbert Hartl
Am 14.12.2013 um 05:41 schrieb Igor Stasenko siguc...@gmail.com: As you may know, smalltalk global dictionary contain all symbols defined globally, so you can access them directly in any piece of code i.e. when you write: Object new it actually means 'send message #new to object,

[Pharo-dev] Cleaning a surface/canvas in Athens

2013-12-14 Thread Alexandre Bergel
Hi! Just wondering. Isn’t a bit strange to have to do this in order to clean a surface: -=-=-=-= surface drawDuring: [:cs | surface clear. … ] -=-=-=-= Shouldn’t it be -=-=-=-= surface drawDuring: [:cs | cs clear.

Re: [Pharo-dev] strange bug when opening the morph menu

2013-12-14 Thread Alexandre Bergel
I am not sure how to reproduce this. I do not see anything slow Alexandre On Dec 14, 2013, at 11:10 AM, Tudor Girba tu...@tudorgirba.com wrote: Hi, Try this: 1. Execute Workspace open 2. Try to get the menu of the window == it opens just fine 1. Execute Workspace open label: (1

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread kilon alios
why we need globals anyway ? why not use classes instead ? The only use I see of globals is in workspace and I am sure we could find a way to automate or make the creation of classes faster inside workspace instead of using globals. Since OO is the very foundation of Pharo I don't see why one

Re: [Pharo-dev] strange bug when opening the morph menu

2013-12-14 Thread Tudor Girba
What do you mean by slow? The problem is that the morph menu (Cmd+Shift+RightClick) does not open when the title is too large. Cheers, Doru On Sat, Dec 14, 2013 at 12:01 PM, Alexandre Bergel alexandre.ber...@me.comwrote: I am not sure how to reproduce this. I do not see anything slow

Re: [Pharo-dev] strange bug when opening the morph menu

2013-12-14 Thread Nicolai Hess
Ah, that one. I thought you meant the window menu from the little arrow icon on the right. 2013/12/14 Tudor Girba tu...@tudorgirba.com What do you mean by slow? The problem is that the morph menu (Cmd+Shift+RightClick) does not open when the title is too large. Cheers, Doru On Sat,

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread Sergi Reyner
Sergi Reyner wrote kilon alios wrote I think it would make even the transition from workspace to browser easier, or even completely replace workspace with the browser. I always found workspace unnecessary anyway. It may be that I am still too unfamiliar with Smalltalk, but I cannot see

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread Norbert Hartl
Am 14.12.2013 um 12:09 schrieb kilon alios kilon.al...@gmail.com: why we need globals anyway ? why not use classes instead ? Class names are globals. A class is registered in a global namespace by its name. Names need to be looked up. How should it work in another way? Norbert The only

Re: [Pharo-dev] [ANN] traversal-enabled objects with DeepTraverser

2013-12-14 Thread Mariano Martinez Peck
On Wed, Dec 11, 2013 at 12:21 PM, Tudor Girba tu...@tudorgirba.com wrote: Hi, I put together a little implementation for traversals. It is inspired by an original implementation from Mariano. Wow... my memory is sooo bad I don't remember ;) Using DeepTraverser, you can traverse

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread kilon alios
yes sorry i meant global variables , the ones you define in workspace like a := 1. On Sat, Dec 14, 2013 at 4:30 PM, Norbert Hartl norb...@hartl.name wrote: Am 14.12.2013 um 12:09 schrieb kilon alios kilon.al...@gmail.com: why we need globals anyway ? why not use classes instead ? Class

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread Norbert Hartl
Am 14.12.2013 um 15:58 schrieb kilon alios kilon.al...@gmail.com: yes sorry i meant global variables , the ones you define in workspace like a := 1. Those aren’t globals. Everything you do in the workspace is compiled as method (UndefinedObect#DoIt) and executed. There are only a handful

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread kilon alios
ah ok my bad, I learned something new, thank you. Is it possible to embed this method to a new class ? lets say i like what i did in workspace and send it directly to a new class. On Sat, Dec 14, 2013 at 5:15 PM, Norbert Hartl norb...@hartl.name wrote: Am 14.12.2013 um 15:58 schrieb kilon

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread Norbert Hartl
Am 14.12.2013 um 16:17 schrieb kilon alios kilon.al...@gmail.com: ah ok my bad, I learned something new, thank you. Is it possible to embed this method to a new class ? lets say i like what i did in workspace and send it directly to a new class. Sure. You might never heard of it but we

Re: [Pharo-dev] strange bug when opening the morph menu

2013-12-14 Thread Alexandre Bergel
Strange, I cannot reproduce the problem Alexandre On Dec 14, 2013, at 1:56 PM, Nicolai Hess nicolaih...@web.de wrote: Ah, that one. I thought you meant the window menu from the little arrow icon on the right. 2013/12/14 Tudor Girba tu...@tudorgirba.com What do you mean by slow? The

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread Marcus Denker
On 14 Dec 2013, at 16:15, Norbert Hartl norb...@hartl.name wrote: Am 14.12.2013 um 15:58 schrieb kilon alios kilon.al...@gmail.com: yes sorry i meant global variables , the ones you define in workspace like a := 1. Those aren’t globals. Everything you do in the workspace is compiled

Re: [Pharo-dev] could we stop to create spaghetti code?

2013-12-14 Thread Stéphane Ducasse
During the sprint (or before) I would like to look at this issue. Now I'm recovering from another disc crash. Stef On Dec 12, 2013, at 12:56 PM, Esteban Lorenzano esteba...@gmail.com wrote: so far icons are all packed together into an icon pack. for example, Pharo3Icons and FamFamIcons.

Re: [Pharo-dev] about the Pharo Catalog

2013-12-14 Thread Stéphane Ducasse
I would love but I HATE smalltalkhub fucking model of managing members. After 10 min trying to find how to add you to pier I gave up. May be I do not have the right. I'm not in the Pier team but apparently I'm in the Pillar contributors but as contributor I can do nothing. So when damien is back

Re: [Pharo-dev] about the Pharo Catalog

2013-12-14 Thread Stéphane Ducasse
DamienCassou/Pier-Gutemberg but I cannot manage the contributors. Stef

Re: [Pharo-dev] About Athens and Cairo

2013-12-14 Thread Stéphane Ducasse
For the moment athens use the form buffer so there is a copy that igor would like to kill. Now igor got killed by the textEditor. I hope that he will come back in good shape. The best things to improve the situation is that people with interest like you really invest to understand the

Re: [Pharo-dev] Cleaning a surface/canvas in Athens

2013-12-14 Thread Stéphane Ducasse
On Dec 14, 2013, at 11:59 AM, Alexandre Bergel alexandre.ber...@me.com wrote: Hi! Just wondering. Isn’t a bit strange to have to do this in order to clean a surface: -=-=-=-= surface drawDuring: [:cs | surface clear. … ] -=-=-=-=

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread p...@highoctane.be
Would be nice to have a view on them like in VW. On Saturday, December 14, 2013, Marcus Denker wrote: On 14 Dec 2013, at 16:15, Norbert Hartl norb...@hartl.namejavascript:_e({}, 'cvml', 'norb...@hartl.name'); wrote: Am 14.12.2013 um 15:58 schrieb kilon alios

Re: [Pharo-dev] NB FFI problem (calling an universal library)

2013-12-14 Thread Max Leske
Did you check that the library has benn compiled with a C compiler? C++ name mangling doesn’t work with NB. Another thing you can do is to attach gdb to the image and break on the gtk_init call. That way you can see at what stage approximately the error occurs. On 14.12.2013, at 17:11,

Re: [Pharo-dev] NB FFI problem (calling an universal library)

2013-12-14 Thread Esteban Lorenzano
On Dec 14, 2013, at 7:27 PM, Max Leske maxle...@gmail.com wrote: Did you check that the library has benn compiled with a C compiler? C++ name mangling doesn’t work with NB. but name is been resolved :( Another thing you can do is to attach gdb to the image and break on the gtk_init call.

Re: [Pharo-dev] NB FFI problem (calling an universal library)

2013-12-14 Thread Esteban Lorenzano
On Dec 14, 2013, at 7:27 PM, Max Leske maxle...@gmail.com wrote: Did you check that the library has benn compiled with a C compiler? C++ name mangling doesn’t work with NB. but name is been resolved :( Another thing you can do is to attach gdb to the image and break on the gtk_init call. That

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread Craig Latta
Hi Norbert-- Class names are globals. A class is registered in a global namespace by its name. Names need to be looked up. How should it work in another way? Get rid of globals. Make the root classes elements of the special objects array (Object already is), and look up classes through

Re: [Pharo-dev] [ANN] traversal-enabled objects with DeepTraverser

2013-12-14 Thread Stéphane Ducasse
Mariano If I would invest in fuel to me the most important aspect is support for evolution of course it is difficult but I always think that if I would sotre code with fuel then in 15 years from now I would love to be able to look at it or I would store an textual representation together with

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread kilon alios
Yes thats exactly what I meant with my reply. I was not so sure though about the exact role of globals in pharo and how many problems their removal would cause internally. Στις 14 Δεκ 2013 9:39 μ.μ., ο χρήστης Craig Latta cr...@netjam.org έγραψε: Hi Norbert-- Class names are globals. A class

Re: [Pharo-dev] strange bug when opening the morph menu

2013-12-14 Thread Stéphane Ducasse
Hi, Try this: 1. Execute Workspace open 2. Try to get the menu of the window == it opens just fine 1. Execute Workspace open label: (1 to: 100) asOrderedCollection asString 2. Try to get the menu of the window == it does not open properly (it opens large and it closes quickly)

Re: [Pharo-dev] strange bug when opening the morph menu

2013-12-14 Thread Stéphane Ducasse
Doru I tried the halo menu the window triangle menu morph the menu you can get from the text Stef On Dec 14, 2013, at 11:10 AM, Tudor Girba tu...@tudorgirba.com wrote: Hi, Try this: 1. Execute Workspace open 2. Try to get the menu of the window == it opens

Re: [Pharo-dev] Another thought about globals

2013-12-14 Thread Stéphane Ducasse
Hi Norbert-- Class names are globals. A class is registered in a global namespace by its name. Names need to be looked up. How should it work in another way? Get rid of globals. Make the root classes elements of the special objects array (Object already is), and look up classes

[Pharo-dev] methodDict versus methodDictionary

2013-12-14 Thread Stéphane Ducasse
Hi I do not understand why we deprecate methodDictionary and not methodDict (What a really bad name) I hate this inconsistent and lame name like methodDict and Marcus you mention on the bug entry nobody should access methodDict directly - so why have a nice accessor for something not to be

Re: [Pharo-dev] strange bug when opening the morph menu

2013-12-14 Thread Nicolai Hess
If you press and hold the mousebutton the menu is visible. If you just click the mousebutton the menu flashes for a short time and the window is in grab mode. Actually the grab-menu item is selected, because the menu is such wide, that it does not open beneath the mouse pointer, and so the mouse

Re: [Pharo-dev] Are all SLICEs self-contained?

2013-12-14 Thread Hernán Morales Durand
I see, thanks for explaining! Cheers, Hernán 2013/12/13 Sven Van Caekenberghe s...@stfx.eu On 13 Dec 2013, at 08:19, Yuriy Tymchuk yuriy.tymc...@me.com wrote: As far as I know all mcz(s) are self contained. But slices for me are still a big magic, so maybe there is something different.