Re: [Pharo-users] Fuel and Bloc: error on materializing

2015-11-22 Thread chicoary
I found that the materialized object did not have a reference to the Bloc space. With the line of code introduced below the error disappeared. | container materializedObject objectToSerlialize | container := BlMorph new withRectangleViewDo: [ :v | v extent: 200@200. v color: Color lightCyan ]. obj

Re: [Pharo-users] About profiling code

2015-11-22 Thread Dimitris Chloupis
thanks stephan , thierry and henrik I will use your code. Alexander I would prefer to profile slow code, but sometimes profiling even fast code gives more info about the internals of the system and what is fast and what is slow and why. On Sun, Nov 22, 2015 at 10:39 PM EuanM wrote: > I was prof

Re: [Pharo-users] About profiling code

2015-11-22 Thread EuanM
I was profiling yesterday, and discovered these issues: Issue: = Time and DateAndTime both show human-readable time information to micro-second precision. Time also holds information to nano-second precision. Both objects are only providing information to the nearest millisecond. The digits

Re: [Pharo-users] About profiling code

2015-11-22 Thread EuanM
Because profiling longer loops takes longer. Why profile a 32768-cycle loop if a 2048-cycle loop would work? On 22 November 2015 at 20:21, Alexandre Bergel wrote: > Hi! > > Why do you need to profile fast code? You can always put your code in a loop. > > Alexandre > > >> On Nov 22, 2015, at 4:22

Re: [Pharo-users] About profiling code

2015-11-22 Thread Alexandre Bergel
Hi! Why do you need to profile fast code? You can always put your code in a loop. Alexandre > On Nov 22, 2015, at 4:22 PM, Dimitris Chloupis wrote: > > yeah probably , your code returns nothing too. So what we suppose to use to > profile fast code ? > > On Sun, Nov 22, 2015 at 9:12 PM Nic

Re: [Pharo-users] About profiling code

2015-11-22 Thread Henrik Nergaard
To profile the creation and drawing, create a canvas and do a #fullDrawOn: onto it. Example: [ | morph canvas | morph := FTTableMorph new extent: 300@300; dataSource: (FTExampleDataSource elements: (Smalltalk allClassesAndTraits

Re: [Pharo-users] About profiling code

2015-11-22 Thread Stephan Eggermont
On 22-11-15 20:42, Guillermo Polito wrote: Out of the top of my head, doing it like that only profiles widget creation/install if I'm not mistaken. But not render time. Because the doit is executed inside the event processing of the morphic render loop. But a cool ui profiling should also measur

Re: [Pharo-users] About profiling code

2015-11-22 Thread Thierry Goubier
Le 22/11/2015 20:42, Guillermo Polito a écrit : Out of the top of my head, doing it like that only profiles widget creation/install if I'm not mistaken. But not render time. Because the doit is executed inside the event processing of the morphic render loop. But a cool ui profiling should also m

Re: [Pharo-users] Pharo for Data Visualization

2015-11-22 Thread Alexandre Bergel
We have also put quite some effort on Woden, a 3d engine for Pharo… Cheers, Alexandre > On Nov 22, 2015, at 2:56 PM, Dimitris Chloupis wrote: > > its possible via my Ephestos project, to render to video or real time but the > project is still very much a WIP. Its doable but require some pytho

Re: [Pharo-users] About profiling code

2015-11-22 Thread Guillermo Polito
Out of the top of my head, doing it like that only profiles widget creation/install if I'm not mistaken. But not render time. Because the doit is executed inside the event processing of the morphic render loop. But a cool ui profiling should also measure the drawOn: methods. I don't know if there

Re: [Pharo-users] About profiling code

2015-11-22 Thread Dimitris Chloupis
yeah probably , your code returns nothing too. So what we suppose to use to profile fast code ? On Sun, Nov 22, 2015 at 9:12 PM Nicolai Hess wrote: > 2015-11-22 20:01 GMT+01:00 Dimitris Chloupis : > >> Why >> >> [CheckboxMorph new] timeProfile >> >> returns nothing ? >> > > too fast? > [ 3+3 ] t

Re: [Pharo-users] About profiling code

2015-11-22 Thread Nicolai Hess
2015-11-22 20:01 GMT+01:00 Dimitris Chloupis : > Why > > [CheckboxMorph new] timeProfile > > returns nothing ? > too fast? [ 3+3 ] timeProfile return nothing too. try [CheckboxMorph new openInWorld] timeProfile. > > I also tried it in the profile tool without the block and still displays > not

[Pharo-users] About profiling code

2015-11-22 Thread Dimitris Chloupis
Why [CheckboxMorph new] timeProfile returns nothing ? I also tried it in the profile tool without the block and still displays nothing . Is there any special requirement for profiling code ?

[Pharo-users] Fuel and Bloc: error on materializing

2015-11-22 Thread chicoary
The code below works but it turns out the error "Message Not Understood: receiver of" noticeMouseOver "is nil" when the mouse passes over the morph. | container materializedObject objectToSerlialize | container := BlMorph new withRectangleViewDo: [ :v | v extent: 200@200. v color: Color lightCyan

Re: [Pharo-users] Pharo for Data Visualization

2015-11-22 Thread Dimitris Chloupis
its possible via my Ephestos project, to render to video or real time but the project is still very much a WIP. Its doable but require some python knowledge and knowledge of Blender UI and API. I will be making a true Pharo API for it fairly soon but as you can imagine these things take time. On S

[Pharo-users] Pharo for Data Visualization

2015-11-22 Thread Volkert
Is this possible with Pharo? http://www.asterank.com/3d/ BW, Volkert