[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Less prominent "Extension overwrites ... " messages



Yeah, my first response is to worry that this might create more confusion than it solves.

I also think extension overwrites are overused, and sometimes dangerous.

S.

On 17 Dec 2008, at 14:16, felix wrote:


I'm not so involved, but I think this is a bad idea.

the biggest problem with sc and its maze of code is ... its maze of code.

it only gets more mysterious is you hide these things.
the frustration of not knowing that a method was overwritten is far worse IMO than having some pixels dumped to the screen for a second.
frankly its cool to see bunches of stuff dumped to the screen and I would guess that newbies enjoy seeing those few lines.

there's nothing that bugs me more as a programmer than silent failures and silent overrides.


init_OSC
compiling class library..
    NumPrimitives = 673
    compiling dir: '/Users/crucial/scsvn/sctrunk/build/SCClassLibrary'
    compiling dir: '/Users/crucial/Library/Application Support/SuperCollider/Extensions'
    pass 1 done
    Extension overwriting ArraySpec:defaultControl
        in file '/Users/crucial/Library/Application Support/SuperCollider/Extensions/quarks/felix/StepSequencers/specSupport.sc'.
        Original method in file '/crucial/Instr/MoreSpecs.sc'.
numentries = 1610273 / 33678256 = 0.048
    Method Table Size 14955536 bytes
    Number of Method Selectors 7958
    Number of Classes 4232
    big table size 134713024
    Number of Symbols 20016
    Byte Code Size 979721

    compiled 973 files in 14.95 seconds
compile done
MIDI Sources:
    MIDIEndPoint("IAC Driver", "IAC Bus 1")
MIDI Destinations:
    MIDIEndPoint("IAC Driver", "IAC Bus 1")
Class tree inited in 9.86 seconds
RESULT = 0
StartUp done.
Welcome to SuperCollider, type cmd-d for help



Q: why does anybody care about the stuff in bold ?


On Wed, Dec 17, 2008 at 5:45 PM, Dan Stowell <danstowell@xxxxxxxxx> wrote:
Hi -

The "Extension overwrites ... " messages are useful warnings, but
they're often scary for newbies, and they're also irritating for
regular use, given that there's no way of suppressing warnings about
known-and-fine overwrites.

The attached patch reduces the output so that the Post window only shows

    Extensions overwrite methods in 12 cases (see log for details)

and the stdout (which for the mac .app goes to a logfile) contains the
details of the method-names etc, in case anyone needs to fish in there
to diagnose problems.

OK?

Dan

--
http://www.mcld.co.uk