Re: [Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-02-20 Thread Craig Latta
> > > If you have some way of uniquely identifying a method, then you > > > can put the source wherever you like (e.g., in some other live > > > object memory), and look it up when you need it. For an example, > > > see the MethodID class in Spoon[1]. > > > > indeed. > > it is really unimportant w

Re: [Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-02-20 Thread Frank Shearar
On 19 February 2012 13:37, Igor Stasenko wrote: > On 19 February 2012 00:54, Craig Latta wrote: >> >> Hi-- >> >>     If you have some way of uniquely identifying a method, then you can >> put the source wherever you like (e.g., in some other live object >> memory), and look it up when you need it

Re: [Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-02-19 Thread Mariano Martinez Peck
On Sun, Feb 19, 2012 at 2:37 PM, Igor Stasenko wrote: > On 19 February 2012 00:54, Craig Latta wrote: > > > > Hi-- > > > > If you have some way of uniquely identifying a method, then you can > > put the source wherever you like (e.g., in some other live object > > memory), and look it up whe

Re: [Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-02-19 Thread Igor Stasenko
On 19 February 2012 00:54, Craig Latta wrote: > > Hi-- > >     If you have some way of uniquely identifying a method, then you can > put the source wherever you like (e.g., in some other live object > memory), and look it up when you need it. For an example, see the > MethodID class in Spoon[1]. >

Re: [Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-02-18 Thread Craig Latta
Hi-- If you have some way of uniquely identifying a method, then you can put the source wherever you like (e.g., in some other live object memory), and look it up when you need it. For an example, see the MethodID class in Spoon[1]. -C [1] http://dl.dropbox.com/u/15188004/spoon/Spoon%203%

Re: [Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-01-18 Thread Igor Stasenko
On 18 January 2012 10:22, Igor Stasenko wrote: > On 17 January 2012 19:22, Mariano Martinez Peck wrote: >> >> >> On Tue, Jan 17, 2012 at 6:31 PM, Mariano Martinez Peck >> wrote: >>> >>> If you don't bother about being slow, you can also make it much easier: |trailer source m

Re: [Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-01-18 Thread Igor Stasenko
On 17 January 2012 19:22, Mariano Martinez Peck wrote: > > > On Tue, Jan 17, 2012 at 6:31 PM, Mariano Martinez Peck > wrote: >> >> >>> If you don't bother about being slow, you can also make it much easier: >>> >>> >>> |trailer source m | >>> m := (Gofer>>#load). >>> trailer := m trailer. >>> sou

Re: [Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-01-17 Thread Chris Cunningham
On Tue, Jan 17, 2012 at 1:40 PM, Mariano Martinez Peck wrote: > > 2) I can understand to put source code in files would make sense 20 years > ago. But I don't think so anymore... a normal notebook has 8gb of RAM these > days. I believe the Windows VM still limits us to around 1/2 gig of image siz

Re: [Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-01-17 Thread Eliot Miranda
On Tue, Jan 17, 2012 at 1:40 PM, Mariano Martinez Peck < marianop...@gmail.com> wrote: > > Well, with the following script it seems I am able to embed all source >> code in trailers: >> >> | trailer source key dict classes | >> dict := IdentityDictionary new. >> CompiledMethod allInstances do: [:

Re: [Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-01-17 Thread Stefan Marr
On 17 Jan 2012, at 22:40, Mariano Martinez Peck wrote: > 1) From a design point of view, I think that CompiledMethodTrailer is the > correct place where source code should be stored. Why? From my point of view, the source fits into the image, but does not belong into the CompiledMethod. Comp

Re: [Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-01-17 Thread Mariano Martinez Peck
> Well, with the following script it seems I am able to embed all source > code in trailers: > > | trailer source key dict classes | > dict := IdentityDictionary new. > CompiledMethod allInstances do: [:aMethod | > trailer := aMethod trailer. > source := aMethod getSource. > trailer so

[Pharo-project] Putting source code in method trailer [WAS] Re: Speeding up Finder string search

2012-01-17 Thread Mariano Martinez Peck
On Tue, Jan 17, 2012 at 6:31 PM, Mariano Martinez Peck < marianop...@gmail.com> wrote: > > If you don't bother about being slow, you can also make it much easier: >> >> >> |trailer source m | >> m := (Gofer>>#load). >> trailer := m trailer. >> source := m getSource. >> trailer sourceCode: source.