<div dir="ltr">Hello guys,<div><br></div><div>I was looking recently at the blockClosure model of Eliot in Pharo/Squeak and the blockClosure model of VisualWorks and I have a few questions.</div><div><br></div><div>- Why Pharo/Squeak does not have compiled block as in VW and has the block byte code in the enclosing method ? Is it to save memory ? Would it worth it to implement CompiledBlock in term of speed and memory consumption ?</div>

<div><br></div><div>- Why Pharo/Squeak context have this variable closureOrNil instead of having the closure in the receiver field as in VW ? Is it an optimization because there are a lot of access to self and instance variables in the blocks in Pharo/Squeak ? Because if I&#39;m correct it uses 1 more slot per stack frame to have this.</div>

<div><br></div><div>- Lastly, does VW have the tempVector optimization for escaping write temporaries in their blockClosure ? It seems they have not (I don&#39;t see any reference to it in VW 7). Did Pharo/Squeak blocks earns a lot of speed or memory with this optimization ?</div>

<div><br></div><div>Thank you for any answer.</div></div>