<br><br><div class="gmail_quote">On Feb 5, 2008 11:02 PM, Bert Freudenberg <<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Feb 5, 2008, at 10:29 , Andreas Raab wrote:<br><br>> Paolo Bonzini wrote:<br>>> I'm with Terry on the correct idiom to use, i.e.<br>>> workerProcess := [self runWorkerProcess] newProcess.<br>
>> workerProcess resume.<br>><br>> Sigh. One of the problems with examples is that they are ... well<br>> examples. They are not the actual code. The above solution is<br>> simply not applicable in our context (if it were, I would agree<br>
> with it as the better solution).<br>><br>> [BTW, I'm gonna drop out of this thread since it's clear that there<br>> is too much opposition for such a change to get into Squeak. Which<br>> is fine by me - I'll wait until you will get bitten in some really<br>
> cruel and unusual ways and at that point you might be ready to<br>> understand why this fix is valuable. Personally, I think that<br>> changes that take out an unusual case of non-determinism like here<br>> are always worth it - if behavior is deterministic you can test it<br>
> and fix it. If it's not you might get lucky a hundred times in a<br>> row. And in the one critical situation it will bite you].<br><br></div></div>Well, you should give us a bit more than a few hours ;) Until now<br>
most posters did not even understand the proposal.<br><br>I for one would appreciate getting your fix in. It does not change<br>the current semantics, and makes one very common idiom (var := [...]<br>fork) safer to use. There may be better idioms, granted. However, for<br>
now Squeak's scheduling policy is beautifully deterministic, and I<br>like keeping simple things simple.<br></blockquote></div><br><br>Andreas's original code was buggy and his proposed fix was incorrect.<br><br>You should never make any assumptions about the scheduling behaviour of your environment. It can and will change in the future. Also, it makes your code less portable across dialects.<br>
<br>Gulik.<br><br clear="all"><br>-- <br><a href="http://people.squeakfoundation.org/person/mikevdg">http://people.squeakfoundation.org/person/mikevdg</a><br><a href="http://gulik.pbwiki.com/">http://gulik.pbwiki.com/</a>