On Sun, 12 Oct 2003 16:20:59 +0200 (CEST) Robert Vazan <[EMAIL PROTECTED]> wrote:

RV> On Sat, 11 Oct 2003 20:31:02 -0400 David Abrahams
RV> <[EMAIL PROTECTED]> wrote:
RV> 
RV> > I probably should keep smart-aleck questions to myself, but I have to
RV> > ask why you're writing your own smart pointers at all?  Boost's
RV> > shared_ptr is pretty damned amazing; all of these little safety issues
RV> > and design details have been taken care of, and it has an almost
RV> > astounding ability to handle all kinds of interoperability
RV> > issues... and of course we have scoped_ptr as well.
RV> 
RV> Because Vadim has something against compatibility with VC6

 I have something _for_ compatibility with it, not against it :-) But I
think that boost::shared_ptr<> does with with VC6 and I would be surprized
if scoped_ptr<> didn't.

RV> and I have something against performance, compatibility with bare
RV> pointers (we have two-way conversion while boost insists that all
RV> pointers are converted to shared_ptr after operator new and then only
RV> used), and inlining (I do care about binary size).

 I don't think anything of the above is a big problem. I think that I would
have used boost classes but as you're working on this I prefer leaving the
choice to you.

RV> BTW, we are rewriting boost::intrusive_ptr, not shared_ptr.

 shared_ptr<> may be used for intrusive ref counting too.

RV> We will probably never optimize anything, but boost doesn't optimize
RV> either.

 I still don't know what is there to optimize and, to be honest, I'd be
surprized if we could beat the boost version...

RV> > Naturally, I can't imagine writing an application of the scale of
RV> > Mahogany without simply adopting Boost as a standard piece of the
RV> > infrastructure.  There are just so many things that work better,
RV> > faster, smarter when you take advantage of carefully designed
RV> > libraries.
RV> 
RV> It isn't that well designed. It's not optimized at all.

 I wouldn't say this but I think that if we really want to discuss it,
boost mailing list could be a better place to do it.

RV> It relies on compilers that don't exist.

 Looking at the test matrix at boost.org, VC6 does support these classes...

 Regards,
VZ



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to