C++ to D explainer
ixid via Digitalmars-d
digitalmars-d at puremagic.com
Thu Oct 22 02:26:39 PDT 2015
On Thursday, 22 October 2015 at 03:34:17 UTC, Joakim wrote:
> Someone needs to write up a good translation of a C++ project
> to D, showing how the code is better in D and particularly
> demonstrating D idioms instead. The ongoing DDMD project,
> translating the dmd frontend from C++ to D, may be a good
> project for this, or someone might just want to translate some
> other small to mid-size C++ project instead. A blog post
> explaining what they did would be very worthwhile.
>
> People often talk about how D is its own thing on this forum
> and in reddit comments, how it's not just C++ with a couple
> nice features and some slightly different syntax, as many C++
> people seem to think. Well, those new D idioms need to be
> shown explicitly and translating a C++ project to specifically
> contrast the two languages would be a good way to do it.
>
> I'll be translating Android C++ samples like these to D soon,
> so that people have some D sample code to try out on Android,
> but they're too small to use many D idioms:
>
> https://android.googlesource.com/platform/development/+/master/ndk/platforms/android-18/samples/
It would also be very effective to have a modest program that is
demonstrated under different memory management schemes in D as
the concern about the GC seems to be one of the biggest issues to
address. Show people what a reference counted or manual or lazy,
non-allocate etc solution looks like on the same program.
More information about the Digitalmars-d
mailing list