2007-03-19:
[10:04] <zumbrunn> what's the expected behavior for 1.6 regarding how global vars are flushed or garbage collected?[10:04] <zumbrunn> is 1.6 supposed to always clear global vars for each request?[10:05] <zumbrunn> for example...[10:05] <zumbrunn> if you use the shell action to set "foo = true", it will get flushed for the next request, and sending "foo" in the shell will report it as undefined.[10:07] <zumbrunn> is the intended behavior for 1.6 that global vars only survive between requests if the defineLibraryScope method is used to exempt them from garbage collection?[10:22] <zumbrunn> hns: yt?[10:25] <hns> hi chris[10:26] <hns> first, "garbage collection" isn't really the right term, since it usually means something quite different[10:26] <hns> regarding global vars:[10:27] <hns> yes, the planned behaviour is that variables defined in during compilation should be kept, and variables defined during request evaluation should be lost.[10:27] <zumbrunn> ok[10:27] <zumbrunn> just wanted to make sure that didn't slip in unintended[10:28] <hns> helma < 1.6 made some efforts trying to behave like this. now we just throw away the per-thread scope after each request.[10:28] <zumbrunn> I think that's good...[10:29] <zumbrunn> when I started to use helma, the fact that it didn't clean the global scope between requests seemed strange[10:33] <hns> well, not cleaning up really opens the door to unreproduceable behaviour.[10:35] <zumbrunn> yes, for exmaple, if people forgot to prefix a variable declaration with the var keyword, they could run into weird bugs that only show when the application is under heavy load, with multiple requests from different users executing at the same time[10:35] <zumbrunn> so, this change is certainly good news[11:03] <hns> hey, just saw (or actually: heard about and than saw) the new helma reference doc is linked on helma.org.[11:03] <hns> Nice![11:04] <hns> thanks, Chris.[16:23] <zumbrunn_> oh! "Ignore notifications"! Thanks![16:23] <zumbrunn_> sorry, wrong channel :-)
In the channel now:
Logs by date: