[C++-sig] Re: Pyste: problems with inheritance across headers.

David Abrahams dave at boost-consulting.com
Wed Jul 9 19:47:31 CEST 2003


Nicodemus <nicodemus at globalite.com.br> writes:

> Nicodemus wrote:
>
>> David Abrahams wrote:
>>
>>> I admit to not having a deep understanding of the issues here, but it
>>> seems like you might solve some significant ordering problems by
>>> parsing the XML and using pickle/shelve to create representations of
>>> the classes that are quickly readable by Python, then making a
>>> separate pass over these data structures.
>>>
>>> Just-a-random-thought-ly,
>>
>> It wouldn't necessarily solve the ordering problems, but it would
>> certainly be much faster certainly. ;)
>
>
> Sorry, I missed your suggestion about shelve (I read just "pickle" ).
>
> That is a great idea. All the problem with ordering is that we can't
> keep all the declarations in memory at the same time, issue that
> shelve would adress nicely! Since the solution that Prabhu and I has
> some problems, I think I will use shelve to handle the declarations.

Again hoping for a lucky shot-in-the-dark, you might look at the
general architecture used by Synopsis.  It's basically like a
compiler/linker: you process all the header files into some
intermediate format and then they get "linked" together.  An approach
like that might make it easy to avoid re-"compiling".

HTH,
-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list