Philippe,
I'm not clear why we need an empty WANullReapingStrategyConfiguration... other strategies seem to just use a WAUserConfiguration. Is that causing problems somewhere? It also doesn't look like WANullReapingStrategy>>#reap is technically needed - the method is never called by the superclass (though perhaps it is better to have it for clarity anyway...) Julian On Wed, Dec 29, 2010 at 12:00 PM, <[hidden email]> wrote: > Julian Fitzell uploaded a new version of Seaside-Core to project Seaside 3.0: > http://www.squeaksource.com/Seaside30/Seaside-Core-jf.682.mcz > > ==================== Summary ==================== > > Name: Seaside-Core-jf.682 > Author: jf > Time: 29 December 2010, 10:59:23 am > UUID: 0d531869-000f-4adb-85e2-424e8386d435 > Ancestors: Seaside-Core-pmm.681 > > Rename WANoReapingStrategy* to WANullReapingStrategy* > > > _______________________________________________ > commits mailing list > To unsubscribe, email [hidden email] > http://lists.seaside.st/listinfo/commits > seaside-dev mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev |
2010/12/29 Julian Fitzell <[hidden email]>:
> Philippe, > > I'm not clear why we need an empty > WANullReapingStrategyConfiguration... other strategies seem to just > use a WAUserConfiguration. Is that causing problems somewhere? > > It also doesn't look like WANullReapingStrategy>>#reap is technically > needed - the method is never called by the superclass (though perhaps > it is better to have it for clarity anyway...) Well, Seaside-Core.gemstone has it, Dale? Cheers Philippe _______________________________________________ seaside-dev mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev |
GLASS doesn't reap sessions using the normal Seaside mechanism, so I
created a WANoReapingStrategy class that did nothing and then modified the code in WACache to use that as the reaping strategy. GLASS runs with multiple vms and those vms are all sharing the session state, so it doesn't make sense to try to coordinate session reaping across multiple vms ... it is easier to run a separate vm that does the session reaping (once a minute by default) ... Dale On 12/29/2010 12:52 PM, Philippe Marschall wrote: > 2010/12/29 Julian Fitzell<[hidden email]>: >> Philippe, >> >> I'm not clear why we need an empty >> WANullReapingStrategyConfiguration... other strategies seem to just >> use a WAUserConfiguration. Is that causing problems somewhere? >> >> It also doesn't look like WANullReapingStrategy>>#reap is technically >> needed - the method is never called by the superclass (though perhaps >> it is better to have it for clarity anyway...) > > Well, Seaside-Core.gemstone has it, Dale? > > Cheers > Philippe > _______________________________________________ > seaside-dev mailing list > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev _______________________________________________ seaside-dev mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev |
2011/1/4 Dale Henrichs <[hidden email]>:
> GLASS doesn't reap sessions using the normal Seaside mechanism, so I created > a WANoReapingStrategy class that did nothing and then modified the code in > WACache to use that as the reaping strategy. > > GLASS runs with multiple vms and those vms are all sharing the session > state, so it doesn't make sense to try to coordinate session reaping across > multiple vms ... it is easier to run a separate vm that does the session > reaping (once a minute by default) ... Yeah, we get that. The question at least the way I understood it couldn't you just use the plain WACacheReapingStrategy instead of WANoReapingStrategy/WANullReapingStrategy? Cheers Philippe _______________________________________________ seaside-dev mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev |
I believe that the only concern that I had was that the cache instance
variable wasn't going to be set in the WANoReapingStrategy/WANullReapingStrategy case so I didn't want #reap to be sent which would result in a MNU ... I didn't spend a lot of time trying to figure out who might be sending reap, but the way it was implemented it certainly looked like reap could/should be sent and I didn't want that to happen....ever... Dale On 01/04/2011 11:48 AM, Philippe Marschall wrote: > 2011/1/4 Dale Henrichs<[hidden email]>: >> GLASS doesn't reap sessions using the normal Seaside mechanism, so I created >> a WANoReapingStrategy class that did nothing and then modified the code in >> WACache to use that as the reaping strategy. >> >> GLASS runs with multiple vms and those vms are all sharing the session >> state, so it doesn't make sense to try to coordinate session reaping across >> multiple vms ... it is easier to run a separate vm that does the session >> reaping (once a minute by default) ... > > Yeah, we get that. The question at least the way I understood it > couldn't you just use the plain WACacheReapingStrategy instead of > WANoReapingStrategy/WANullReapingStrategy? > > Cheers > Philippe _______________________________________________ seaside-dev mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev |
In reply to this post by Philippe Marschall
On 01/04/2011 11:48 AM, Philippe Marschall wrote:
> 2011/1/4 Dale Henrichs<[hidden email]>: >> GLASS doesn't reap sessions using the normal Seaside mechanism, so I created >> a WANoReapingStrategy class that did nothing and then modified the code in >> WACache to use that as the reaping strategy. >> >> GLASS runs with multiple vms and those vms are all sharing the session >> state, so it doesn't make sense to try to coordinate session reaping across >> multiple vms ... it is easier to run a separate vm that does the session >> reaping (once a minute by default) ... > > Yeah, we get that. The question at least the way I understood it > couldn't you just use the plain WACacheReapingStrategy instead of > WANoReapingStrategy/WANullReapingStrategy? > > Cheers > Philippe Philippe, If you are asking _would_ I use WACacheReapingStrategy, the answer is probably no:) - I prefer to be explicit that the reaping strategy is a noop, not a side effect of the implementation ... GLASS users shouldn't be tempted to change it in their applications - I want to isolate myself from any future changes to WACacheReapingStrategy that may effect it's noop-ness - The class WANoReapingStrategy happens to have made it into the wild amongst the current GLASS users so I'm disinclined to remove it Dale _______________________________________________ seaside-dev mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev |
On Tue, Jan 4, 2011 at 1:31 PM, Dale Henrichs <[hidden email]> wrote:
> On 01/04/2011 11:48 AM, Philippe Marschall wrote: >> >> 2011/1/4 Dale Henrichs<[hidden email]>: >>> >>> GLASS doesn't reap sessions using the normal Seaside mechanism, so I >>> created >>> a WANoReapingStrategy class that did nothing and then modified the code >>> in >>> WACache to use that as the reaping strategy. >>> >>> GLASS runs with multiple vms and those vms are all sharing the session >>> state, so it doesn't make sense to try to coordinate session reaping >>> across >>> multiple vms ... it is easier to run a separate vm that does the session >>> reaping (once a minute by default) ... >> >> Yeah, we get that. The question at least the way I understood it >> couldn't you just use the plain WACacheReapingStrategy instead of >> WANoReapingStrategy/WANullReapingStrategy? >> >> Cheers >> Philippe > > Philippe, > > If you are asking _would_ I use WACacheReapingStrategy, the answer is > probably no:) > > - I prefer to be explicit that the reaping strategy is a noop, not a > side effect of the implementation ... GLASS users shouldn't be > tempted to change it in their applications > - I want to isolate myself from any future changes to > WACacheReapingStrategy that may effect it's noop-ness > - The class WANoReapingStrategy happens to have made it into the wild > amongst the current GLASS users so I'm disinclined to remove it No, I agree with Dale: having an explicit Null Pattern reaping strategy is much more explicit. The implementation of #reap seemed unnecessary since it is not the job of the ReapingStrategy to determine how to reap, but rather *when* to reap (the method is just a private helper method that delegates to the cache). My *real* question was: why do we need WANullReapingStrategyConfiguration? Julian _______________________________________________ seaside-dev mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev |
2011/1/5 Julian Fitzell <[hidden email]>:
> On Tue, Jan 4, 2011 at 1:31 PM, Dale Henrichs <[hidden email]> wrote: >> On 01/04/2011 11:48 AM, Philippe Marschall wrote: >>> >>> 2011/1/4 Dale Henrichs<[hidden email]>: >>>> >>>> GLASS doesn't reap sessions using the normal Seaside mechanism, so I >>>> created >>>> a WANoReapingStrategy class that did nothing and then modified the code >>>> in >>>> WACache to use that as the reaping strategy. >>>> >>>> GLASS runs with multiple vms and those vms are all sharing the session >>>> state, so it doesn't make sense to try to coordinate session reaping >>>> across >>>> multiple vms ... it is easier to run a separate vm that does the session >>>> reaping (once a minute by default) ... >>> >>> Yeah, we get that. The question at least the way I understood it >>> couldn't you just use the plain WACacheReapingStrategy instead of >>> WANoReapingStrategy/WANullReapingStrategy? >>> >>> Cheers >>> Philippe >> >> Philippe, >> >> If you are asking _would_ I use WACacheReapingStrategy, the answer is >> probably no:) >> >> - I prefer to be explicit that the reaping strategy is a noop, not a >> side effect of the implementation ... GLASS users shouldn't be >> tempted to change it in their applications >> - I want to isolate myself from any future changes to >> WACacheReapingStrategy that may effect it's noop-ness >> - The class WANoReapingStrategy happens to have made it into the wild >> amongst the current GLASS users so I'm disinclined to remove it > > No, I agree with Dale: having an explicit Null Pattern reaping > strategy is much more explicit. The implementation of #reap seemed > unnecessary since it is not the job of the ReapingStrategy to > determine how to reap, but rather *when* to reap (the method is just a > private helper method that delegates to the cache). > > My *real* question was: why do we need WANullReapingStrategyConfiguration? One of these days I'll have to learn how to read. Yeah, good question. Cheers Philippe _______________________________________________ seaside-dev mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev |
On 01/04/2011 10:17 PM, Philippe Marschall wrote:
> 2011/1/5 Julian Fitzell<[hidden email]>: >> On Tue, Jan 4, 2011 at 1:31 PM, Dale Henrichs<[hidden email]> wrote: >>> On 01/04/2011 11:48 AM, Philippe Marschall wrote: >>>> >>>> 2011/1/4 Dale Henrichs<[hidden email]>: >>>>> >>>>> GLASS doesn't reap sessions using the normal Seaside mechanism, so I >>>>> created >>>>> a WANoReapingStrategy class that did nothing and then modified the code >>>>> in >>>>> WACache to use that as the reaping strategy. >>>>> >>>>> GLASS runs with multiple vms and those vms are all sharing the session >>>>> state, so it doesn't make sense to try to coordinate session reaping >>>>> across >>>>> multiple vms ... it is easier to run a separate vm that does the session >>>>> reaping (once a minute by default) ... >>>> >>>> Yeah, we get that. The question at least the way I understood it >>>> couldn't you just use the plain WACacheReapingStrategy instead of >>>> WANoReapingStrategy/WANullReapingStrategy? >>>> >>>> Cheers >>>> Philippe >>> >>> Philippe, >>> >>> If you are asking _would_ I use WACacheReapingStrategy, the answer is >>> probably no:) >>> >>> - I prefer to be explicit that the reaping strategy is a noop, not a >>> side effect of the implementation ... GLASS users shouldn't be >>> tempted to change it in their applications >>> - I want to isolate myself from any future changes to >>> WACacheReapingStrategy that may effect it's noop-ness >>> - The class WANoReapingStrategy happens to have made it into the wild >>> amongst the current GLASS users so I'm disinclined to remove it >> >> No, I agree with Dale: having an explicit Null Pattern reaping >> strategy is much more explicit. The implementation of #reap seemed >> unnecessary since it is not the job of the ReapingStrategy to >> determine how to reap, but rather *when* to reap (the method is just a >> private helper method that delegates to the cache). >> >> My *real* question was: why do we need WANullReapingStrategyConfiguration? > > One of these days I'll have to learn how to read. Yeah, good question. > > Cheers > Philippe > _______________________________________________ > seaside-dev mailing list > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev That one we _can_ do without ... At the time I added the WANoReapingStrategy, I did not spend a lot of time trying to figure out what was and was not necessary and just followed the pattern that other strategies used which was to add a configuration, too:) Dale _______________________________________________ seaside-dev mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev |
2011/1/5 Dale Henrichs <[hidden email]>:
> On 01/04/2011 10:17 PM, Philippe Marschall wrote: >> >> 2011/1/5 Julian Fitzell<[hidden email]>: >>> >>> On Tue, Jan 4, 2011 at 1:31 PM, Dale Henrichs<[hidden email]> >>> wrote: >>>> >>>> On 01/04/2011 11:48 AM, Philippe Marschall wrote: >>>>> >>>>> 2011/1/4 Dale Henrichs<[hidden email]>: >>>>>> >>>>>> GLASS doesn't reap sessions using the normal Seaside mechanism, so I >>>>>> created >>>>>> a WANoReapingStrategy class that did nothing and then modified the >>>>>> code >>>>>> in >>>>>> WACache to use that as the reaping strategy. >>>>>> >>>>>> GLASS runs with multiple vms and those vms are all sharing the session >>>>>> state, so it doesn't make sense to try to coordinate session reaping >>>>>> across >>>>>> multiple vms ... it is easier to run a separate vm that does the >>>>>> session >>>>>> reaping (once a minute by default) ... >>>>> >>>>> Yeah, we get that. The question at least the way I understood it >>>>> couldn't you just use the plain WACacheReapingStrategy instead of >>>>> WANoReapingStrategy/WANullReapingStrategy? >>>>> >>>>> Cheers >>>>> Philippe >>>> >>>> Philippe, >>>> >>>> If you are asking _would_ I use WACacheReapingStrategy, the answer is >>>> probably no:) >>>> >>>> - I prefer to be explicit that the reaping strategy is a noop, not a >>>> side effect of the implementation ... GLASS users shouldn't be >>>> tempted to change it in their applications >>>> - I want to isolate myself from any future changes to >>>> WACacheReapingStrategy that may effect it's noop-ness >>>> - The class WANoReapingStrategy happens to have made it into the wild >>>> amongst the current GLASS users so I'm disinclined to remove it >>> >>> No, I agree with Dale: having an explicit Null Pattern reaping >>> strategy is much more explicit. The implementation of #reap seemed >>> unnecessary since it is not the job of the ReapingStrategy to >>> determine how to reap, but rather *when* to reap (the method is just a >>> private helper method that delegates to the cache). >>> >>> My *real* question was: why do we need >>> WANullReapingStrategyConfiguration? >> >> One of these days I'll have to learn how to read. Yeah, good question. >> >> Cheers >> Philippe >> _______________________________________________ >> seaside-dev mailing list >> [hidden email] >> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev > > That one we _can_ do without ... At the time I added the > WANoReapingStrategy, I did not spend a lot of time trying to figure out what > was and was not necessary and just followed the pattern that other > strategies used which was to add a configuration, too:) Done. Cheers Philippe _______________________________________________ seaside-dev mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev |
Free forum by Nabble | Edit this page |