> Hi guys > > Ideally I would love to be able to use accessors as the abstraction layer > that they can bring us: > I mean the fact that we could avoid to have offset based bytecode means that > we could reuse a lot more > the methods (in special case - mixins and others). > > Now I have a question does the JIT or the shortcut (not sure if this is in > stackVM) blurry the cost of accessors > vs. direct accesses? > > Not yet. But IMO it would be straight-forward to add. The PIC design > supports inserting extra code at a send site, which is the logical place to > put the access code.
I would love that because it it would be a really cool step into late binding structure vs. behavior. (of course at the cost of weakening encapsulation but still). I like the design of newspeak from that perspective. > > > Does anybody run a benchmarck about > self x vs x in Cog recently > on a real app? > > Stef > > best > Eliot
