D1, D2 and the future of libraries
Kiith-Sa
42 at theanswer.com
Sun Jan 22 07:40:07 PST 2012
I had a small, ~10kloc project I had to rewrite to D2 (not a
library).
It wasn't much of a problem to port. First I just tried to compile
the code with DMD2 - there were compiler errors, so I fixed those
-
that took about 1-2 days. More problematic were things that work
differently in D2 - the code compiled but it didn't run. Don't
remember what exactly was the problem, but there were some things.
Fixing most/all such bugs took about a week. Only then I started
to change the code to be more D2-like - that took another week.
The code did get more simple, though.
I moved because D2 had interesting features and stuff in Phobos,
and because it was getting usable enough. (And because I really
wanted RAII structs.)
On Sunday, 22 January 2012 at 15:18:04 UTC, Stewart Gordon wrote:
> So far, everyone who's replied is supporting only D2. A few
> more questions:
>
> Did you previously write libraries for D1?
>
> If so:
>
> - Did you find translating the code straightforward, or are
> there bits that you found a challenge?
>
> - What triggered you to switch? For example, D2 just being
> there, signs that D2 is stabilising, the announcement of D1's
> forthcoming end, stumbling over a limitation of D1....
>
> Stewart.
More information about the Digitalmars-d
mailing list