Hi All,
I was trying to measure a speedup to JTI code generation that shaves time off orf e.g. ReadStream>>next. I wanted to try and do something like this:
CurrentReadOnlySourceFiles cacheDuring: [| ed comp | ed := NullRequestor new. comp := Compiler new. [Morph withAllSubclassesDo: [:mc| mc selectorsAndMethodsDo: [:s :m| [comp parse: (ed text: m getSourceFromFile) in: mc notifying: ed] on: ParserNotification do: []]]] timeToRun]
or
CurrentReadOnlySourceFiles cacheDuring: [| ed parser | ed := NullRequestor new. parser := Parser new. [Morph withAllSubclassesDo: [:mc| mc selectorsAndMethodsDo: [:s :m| parser parse: (ed text: m getSourceFromFile) class: mc noPattern: false notifying: ed ifFail: []]]] timeToRun]
but this doesn't work for a host of reasons:
- shadowed variable warnings are sent straight to the transcript - the requestor is used only for text selection; it does not mediate error interactivity
It would be great if the parser could truly run silently if given a suitable requestor. How about it, anyone up for the challenge?
_,,,^..^,,,_ best, Eliot
On 2021-08-31, at 3:57 PM, Eliot Miranda eliot.miranda@gmail.com wrote:
- the requestor is used only for text selection; it does not mediate error interactivity
Yeah, I could do with a requestor that can be used in a Seaside context when compiling code; catching *all* the problems and inserting the error info into a string to render etc.
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: PNG: Pass Noxious Gas
squeak-dev@lists.squeakfoundation.org