[squeak-dev] Why is source code always in files only?

Chris Muller asqueaker at gmail.com
Mon Jan 19 17:34:12 UTC 2015


On Mon, Jan 19, 2015 at 6:45 AM, Tobias Pape <Das.Linux at gmx.de> wrote:

> Hi all,
>
>
> We store method source _solely_ in files (.sources/.changes).
> Why? We have means to attach it to Compiled methods, in fact, more than
> one:
>
>
> CompiledMethod allInstances size. "57766."
> CompiledMethod allInstances count: [:m | m properties includesKey:
> #source].  "0."
> CompiledMethod allInstances count: [:m | m trailer sourceCode notNil]. "0."
> CompiledMethod allInstances count: [:m | m trailer hasSourcePointer].
> "57700."
>
>
> " also interesting "
> (CompiledMethod allInstances collect: [:m | m trailer kind] as: Bag)
> sortedCounts
>  {57701->#SourcePointer . 65->#NoTrailer . 14->#TempsNamesQCompress .
> 2->#TempsNamesZip}
>
>
> When doing some analysis on source code, it is a pain to _either_
> always go to disk for the source _or_ cache the code myself (which may
> get out of sync sooon).
>

If you're sending messages instead of viewing private innards, why is it a
pain?


>   Can't we just save the source code either via trailer or properties
> on first access?
>

-1.  Why do I want all of those String's in my image?



>
>
> Best
>         -Tobias
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150119/c5038467/attachment.htm


More information about the Squeak-dev mailing list