Let Go, Standard Library From Community

Daniel Keep daniel.keep.lists at gmail.com
Wed Apr 18 03:27:10 PDT 2007


eao197 wrote:
> On Wed, 18 Apr 2007 11:55:55 +0400, Daniel Keep
> <daniel.keep.lists at gmail.com> wrote:
> 
>> What's more, switching between them is a *total* non-issue.  Here's how
>> I compile phobos apps:
>>
>> $ rebuild foo
>>
>> Here's how I compile Tango apps
>>
>> $ rebuild -dcdmd-tango bar
>>
>> Heck, I usually don't even do that; I just dump the switches into a text
>> file and use them as response files.  If rebuild grew bud-style +target
>> args, it'd be perfect :)
>>
>> It's not like it's rocket science any more.  I honestly can't see a
>> reason why the two can't simply coexist.
> 
> I think problem of Phobos/Tango incompatibility affects not application
> writers, but libraries writers. If someone writes some application
> domain library (XML parsing, SOAP support, event-driven framework and so
> on) then he/she can use Phobos or Tango, but this choice divides users
> of than library to Phobos-only or Tango-only. An attempt to write big
> library which can work either with Phobos or Tango would lead to
> undesirable amount of version statements in code (as in good old C/C++
> times with many #if/#else).
> 
> --Regards,
> Yauheni Akhotnikau

I've been writing an XML SAX parser based on Expat, and it supports both
Phobos and Tango; it wasn't much work at all.  A few aliases and version
statements, and I'm good.

Also, this seems a bit like the difference between writing a library for
just the standard C++ libraries and, say, MFC or wxWidgets.  I still
think it's a little early to be shoving Phobos out the door into the
cold, dark night with nary more than a "thanks, it's been great but I'm
seeing someone else now" based on what we think might happen at some
indeterminable point in the future.

I think it would be better to wait until Tango hits 1.0, and a few large
libraries have actually been written so we can get a feel for how this
is all panning out.

Besides, I quite like Phobos :)

	-- Daniel

"There, there, Phobos.  *I* still <3 you..."

-- 
int getRandomNumber()
{
    return 4; // chosen by fair dice roll.
              // guaranteed to be random.
}

http://xkcd.com/

v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D
i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP  http://hackerkey.com/



More information about the Digitalmars-d mailing list