ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> cpp-sig
cpp-sig
[C++-sig] Re: Refactoring, Compilation Speed, Pyste, Lua/Ruby/JavaScript...
by David Abrahams other posts by this author
Jun 17 2003 2:32PM messages near this date
[C++-sig] Re: Refactoring, Compilation Speed, Pyste, Lua/Ruby/JavaScript... | [C++-sig] Re: Refactoring, Compilation Speed, Pyste, Lua/Ruby/JavaScript...
"Brett Calcott" <brett.calcott@[...].nz>  writes:

> >
> >    converter - This stuff which handles Python-specific conversion
> >      mechanics is mostly already segregated in boost/python/converter,
> >      but it could be better organized.  Almost everything else in the
> >      library is built upon these capabilities
> >
> 
>  As somebody who has tried to go through the library, this bit is the
>  part I'd really like to understand. I'm sure the reorganisation
>  would help, but I'd really love to read a short doc on how this
>  actually all hangs together. The registry, how the templates
>  automates the construction of the PyObject and Type, how conversions
>  are looked up (what's that graph stuff in there?).

The graph stuff is not in this layer, it's in the core.  It
implements something like this:

    dst_ptr = dynamic_cast(src_void_ptr, src_type_id, dst_type_id)

>  Though brilliant, the combination of templates and preprocessor makes it
>  really (really, really) hard going. I've read through a fair bit of c/c++
>  code before, and I can say that this stuff is the hardest I've ever tried to
>  decipher - and I know it is well written, not like most of the other stuff
>  I've looked at. Even stepping through it in the debugger is not that
>  enlightening.
> 
>  I think I could use the library better and assist more in extending it if I
>  could put all the bits together in my head.(I have in mind something like
>  the big text file that Joel wrote for Phoenix.)
> 
>  Just putting in a bid for your time Dave...

Well, I'd be happy to collaborate with you on an implementation
document.  It's not something I can afford to do by myself, in part
because I don't know what questions to answer.  If you would agree to
have a conversation with me about it here, and from that create a
RestructuredText document which we'll include in the CVS, I'd be more
than happy to type out details at length.  I think you might have to
dig into the code a little, too.  Deal?

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


_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
David Abrahams
David Abrahams
Brett Calcott
Brett Calcott
David Abrahams
Brett Calcott
Brett Calcott
Joel de Guzman
David Abrahams
David Abrahams
Dirk Gerrits
David Abrahams
David Abrahams
Brett Calcott
Joel de Guzman
Nicodemus
David Abrahams
Roman Sulzhyk
David Abrahams
Nicodemus
Roman Sulzhyk
Nicodemus
David Abrahams
Nicodemus
Roman Sulzhyk
Nicodemus
Roman Sulzhyk
Nicodemus
David Abrahams
Nicodemus
Roman Sulzhyk
Ralf W. Grosse-Kunstleve
Nicodemus

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved