Re: [Pharo-dev] Bloc Feedback

2017-12-04 Thread Ben Coman
On 5 December 2017 at 05:19, Stephane Ducasse wrote: > Hi Aliaksei > > Read again this sentence :) > > "BlPostAction" - a valuable that is guaranteed to be evaluated in the > beginning of every frame before anything else. > > MAy be BlPostAction should be renamed BlEarlyAction > BlPreAction >

Re: [Pharo-dev] Bloc Feedback

2017-12-04 Thread Stephane Ducasse
Hi Aliaksei Read again this sentence :) "BlPostAction" - a valuable that is guaranteed to be evaluated in the beginning of every frame before anything else. MAy be BlPostAction should be renamed BlEarlyAction On Sat, Dec 2, 2017 at 5:26 PM, Aliaksei Syrel wrote: > Hi, > > An object that is

Re: [Pharo-dev] Bloc Feedback

2017-12-02 Thread Sean P. DeNigris
Aliaksei Syrel wrote > should be "BlPostAction" - a valuable that is guaranteed to be evaluated > in the > beginning of every frame before anything else. That name and definition do not seem to fit to me. "Post" in what sense? Why is "action" more accurate than "animation"? Aliaksei Syrel wrote

Re: [Pharo-dev] Bloc Feedback

2017-12-02 Thread Aliaksei Syrel
I forgot to mention that "BlPostAction" is a one time action - it disappears once done :) Cheers, Alex On 2 December 2017 at 17:26, Aliaksei Syrel wrote: > Hi, > > An object that is called now "Animation" in Bloc is not necessarily bound > to the visual element. > The correct name for the root

Re: [Pharo-dev] Bloc Feedback

2017-12-02 Thread Aliaksei Syrel
Hi, An object that is called now "Animation" in Bloc is not necessarily bound to the visual element. The correct name for the root class of "BlBaseAnimation" should be "BlPostAction" - a valuable that is guaranteed to be evaluated in the beginning of every frame before anything else. We have alrea

Re: [Pharo-dev] Bloc Feedback

2017-12-02 Thread Sean P. DeNigris
Aliaksei Syrel wrote > ... > Also, what is the lifetime of an infinite animation? > ... > Do you have any particular use-case for animations? I hacked together a simplified stepping animation (may not be in the right place in the class hierarchy). Here's a pull request to discuss https://github.c

Re: [Pharo-dev] Bloc Feedback

2017-12-02 Thread Tudor Girba
Hi Sean, The way I understand it is that the animation has to be stopped for the animation to be removed. If you make it to never stop, it will never be removed. Cheers, Doru > On Dec 2, 2017, at 3:37 PM, Sean P. DeNigris wrote: > > Aliaksei Syrel wrote >> Yes, after animation is stopped it

Re: [Pharo-dev] Bloc Feedback

2017-12-02 Thread Sean P. DeNigris
Aliaksei Syrel wrote > Yes, after animation is stopped it is removed from the animation manager > and if referenced weakly should be garbage collected. > Otherwise it is a bug :) I changed the clock example code from `loop: 1` to `beInfinite` and opened a bunch of clocks. Now, in a fresh playgrou

Re: [Pharo-dev] Bloc Feedback

2017-12-02 Thread Aliaksei Syrel
Hi Sean, Yes, after animation is stopped it is removed from the animation manager and if referenced weakly should be garbage collected. Otherwise it is a bug :) Cheers, Alex On 2 December 2017 at 04:48, Sean P. DeNigris wrote: > Aliaksei Syrel wrote > >> So one would change the `loop: 1` in yo

Re: [Pharo-dev] Bloc Feedback

2017-12-01 Thread Sean P. DeNigris
Aliaksei Syrel wrote >> So one would change the `loop: 1` in your example to `beInfinite`? > ... > Also, what is the lifetime of an infinite animation? > > > It can only be stopped by sending #stop to it. Is holding it weakly from the element and sending #stop enough for the animation to be gar

Re: [Pharo-dev] Bloc Feedback

2017-11-26 Thread Tudor Girba
Hi, > On Nov 27, 2017, at 12:38 AM, Sean P. DeNigris wrote: > > Aliaksei Syrel wrote >> No, they don't. You have a very old version of Gt-Examples :) > > How do I get an image with the behavior in the video? I documented my steps. > Where am I going wrong? In your description, you checked that

Re: [Pharo-dev] Bloc Feedback

2017-11-26 Thread Sean P. DeNigris
Aliaksei Syrel wrote > No, they don't. You have a very old version of Gt-Examples :) How do I get an image with the behavior in the video? I documented my steps. Where am I going wrong? - Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html

Re: [Pharo-dev] Bloc Feedback

2017-11-26 Thread Sean P. DeNigris
Aliaksei Syrel wrote > There are so many complains about absence of class comments, but no one > reads them. Looks like it is easier to remove experimental examples > completely :) I don't understand. I specifically skipped reporting BlExperimentalExamples failures because of that comment.

Re: [Pharo-dev] Bloc Feedback

2017-11-26 Thread Sean P. DeNigris
Tudor Girba-2 wrote > I am not sure I understand What I mean is that I followed that process before when I reported all those bugs and if IIUC the responses I wasted my time because I was using old versions and reporting bugs that had already been fixed. - Cheers, Sean -- Sent from: http://

Re: [Pharo-dev] Bloc Feedback

2017-11-26 Thread Tudor Girba
I am not sure I understand: Do you confirm that examples work properly for you? Cheers, Doru > On Nov 26, 2017, at 5:51 PM, Sean P. DeNigris wrote: > > Aliaksei Syrel wrote >> No, they don't. You have a very old version of Gt-Examples :) > > I'm flummoxed. I downloaded a fresh Pharo 7 image v

Re: [Pharo-dev] Bloc Feedback

2017-11-26 Thread Sean P. DeNigris
Aliaksei Syrel wrote > No, they don't. You have a very old version of Gt-Examples :) I'm flummoxed. I downloaded a fresh Pharo 7 image via launcher, checked that my local Bloc clone had the latest commits, and ran the "bleeding edge" installation script from the README, namely: Metacello new ba

Re: [Pharo-dev] Bloc Feedback

2017-11-25 Thread Sean P. DeNigris
Aliaksei Syrel wrote > Do you have any particular use-case for animations? Just starting to port Morphs to Bloc, so looking for a natural replacement for #step, but maybe I'm missing a paradigm shift? Also, playing with the examples, more feedback: >From the Bloc Example browser: - running an ex

Re: [Pharo-dev] Bloc Feedback

2017-11-25 Thread Aliaksei Syrel
Here is how I see the behaviour of an infinite animation: - stop it when element is removed from the space - resume it when element is re-added to the space It means that some object should store that animation (an element?). What if element is not going to be re-added to the space? Should anim

Re: [Pharo-dev] Bloc Feedback

2017-11-25 Thread Aliaksei Syrel
> > So one would change the `loop: 1` in your example to `beInfinite`? Why > didn't you do that in the example? Because I wanted it to work just one minute :) I don't know, there is no explanation for that. Also, what is the lifetime of an infinite animation? It can only be stopped by sending

Re: [Pharo-dev] Bloc Feedback

2017-11-25 Thread Sean P. DeNigris
Aliaksei Syrel wrote > Stepping mechanism can be implemented using infinite animation (stepping > is > nothing else than a special case of animation). Okay, cool. So one would change the `loop: 1` in your example to `beInfinite`? Why didn't you do that in the example? Also, what is the lifetime of

Re: [Pharo-dev] Bloc Feedback

2017-11-25 Thread Sean P. DeNigris
Bump :) Sean P. DeNigris wrote >> How would one do e.g. a ticking clock in Bloc? The only possibly relevant >> example I see is BlAnimatedCursor. Is that a typical usage? One thing >> that >> I'm not sure how to translate to a BlElement is that the cursor seems to >> be >> responsible for startin

Re: [Pharo-dev] Bloc Feedback

2017-10-25 Thread Tudor Girba
Hi Sean, > On Oct 25, 2017, at 2:14 PM, Sean P. DeNigris wrote: > > Aliaksei Syrel wrote >> I don't understand how you guys find these kind of bugs :D > > We have a talent for destruction ;) > > > Aliaksei Syrel wrote >> Aha, I forgot about it, thanks! At this point BlTextEditElement is only

Re: [Pharo-dev] Bloc Feedback

2017-10-25 Thread Sean P. DeNigris
Aliaksei Syrel wrote > I don't understand how you guys find these kind of bugs :D We have a talent for destruction ;) Aliaksei Syrel wrote > Aha, I forgot about it, thanks! At this point BlTextEditElement is only > used internally by Moldable Editor so I will probably move it away from > Bloc.

Re: [Pharo-dev] Bloc Feedback

2017-10-24 Thread Tudor Girba
Hi, Indeed, instance variables is what we are mainly concerned with as well. We keep on trimming, but it still feels like too many variables. Cheers, Doru > On Oct 24, 2017, at 8:59 AM, Nicolai Hess wrote: > > > > 2017-10-24 2:04 GMT+02:00 Sean P. DeNigris : > Tudor Girba-2 wrote > > Thank

Re: [Pharo-dev] Bloc Feedback

2017-10-24 Thread Nicolai Hess
2017-10-24 2:04 GMT+02:00 Sean P. DeNigris : > Tudor Girba-2 wrote > > Thanks for the feedback! > > But of course! Thanks for pushing Bloc :) IMHO a clean low-level graphics > framework is the linchpin to unleash a tremendous amount of creativity in > the Pharo community. I have several dream proj

Re: [Pharo-dev] Bloc Feedback

2017-10-23 Thread Sean P. DeNigris
Tudor Girba-2 wrote > Thanks for the feedback! But of course! Thanks for pushing Bloc :) IMHO a clean low-level graphics framework is the linchpin to unleash a tremendous amount of creativity in the Pharo community. I have several dream projects that I placed on long-term hold after getting stuck

Re: [Pharo-dev] Bloc Feedback

2017-10-23 Thread Tudor Girba
Thanks for the feedback! Alex will reply in more details on Wednesday. In the meantime, some comments inline. > On Oct 23, 2017, at 4:15 AM, Sean P. DeNigris wrote: > > Highlights: > > - BlCornerRadii - 1st class corners - yay to the death of cryptic arrays for > this kind of thing :) > > Qu

Re: [Pharo-dev] Bloc Feedback

2017-10-23 Thread Aliaksei Syrel
Hi Sean, Thanks for the feedback :) I will take a look and come up with an answer in a few days. If you have time to play more or if you found other issues, please feel free to list them here or open bug reports on Github ( https://github.com/pharo-graphics/Bloc/issues) Cheers, Alex On 23 Octob

[Pharo-dev] Bloc Feedback

2017-10-22 Thread Sean P. DeNigris
Highlights: - BlCornerRadii - 1st class corners - yay to the death of cryptic arrays for this kind of thing :) Questions: - How would one do e.g. a ticking clock in Bloc? The only possibly relevant example I see is BlAnimatedCursor. Is that a typical usage? One thing that I'm not sure how to tra