Re: D lanuguage in the eyes of an outsider
From: Walter (walter_at_digitalmars.nospamm.com)
Date: Thu, 30 Sep 2004 21:33:36 GMT
"Otto Wyss" <firstname.lastname@example.org> wrote in message
> Since digitalmars neither has a useful mailing list nor isn't there a
> comp.lang.d newsgroup I'm going to post here. If someone else is able to
> post a link to their forums just go ahead.
The D newsgroup with the most activity in it is at news.digitalmars.com.
> I've never coded anything in D but got interested lately. I'm neither an
> expert C++ programmer, I just like to develop programms as good and as
> easy as possible. I looked once at the feature of D and valued them
> against C++/wxWidgets and posted them here
> ere%26rnum%3D9". I've looked a little through the threads here and at
> My impression is, currently D is not ready to take over the role of C++
> and IMO for another considerable time. But D could and should take over
> the place of C. But that won't happen if you don't concentrate on the
> strength of D and the strenght lays in all the small things which
> currently are coded in C. Concentrate on libraries like libpng, libzip,
> regex, etc. and try to position D as the best, the only alternatives for
> these kind of tasks. Even write some of these small libraries yourself.
> Only after you have succeeded that everybody starts using D for these
> small things, larger ones will soon follow automatically all the way up
> to the Linux kernel.
D already has standard library modules for zip and regular expressions.
> Even if you can establish D as a replacement for C don't ever think
> about C++ unless there is a translater which does an almost 100% job.
> Nobody is going to translate his code by hand and nobody just scrap his
> existing code. So regadless how much better D might become it will only
> happen if the workload for switching is reasonably low. And believe me
> almost nobody will code in two different lanugages. And if these two
> languages most probably are C++ and Java.
While it is fairly easy to convert C code to D, it is harder to convert C++.
The main difficulty is that a very large part of the design of C++ classes
involves dealing with memory management. Most of this becomes a non-issue in
D, but there can remain subtle dependencies in the code on those memory
That said, it is a lot easier for D and C++ to interoperate than Java and
C++. If your C++ code has a C API for it, then it is trivial to access from
D because D fully supports the C binary API.
www.digitalmars.com/d/ The D Programming Language