Automated source code translation
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Wed Jan 22 03:58:12 PST 2014
Source code translation can be valuable for many reasons, one
reason is when you want a library to be available on a server and
multiple clients (javascript, C++, Objective-C etc). Let's assume
that you use D in a conservative way, but write idiomatic D.
What features in safe-D is either difficult or impossible to
translate in another imperative language in an automated fashion,
without sacrificing readability? And how do you write code that
can be translated (by an algorithm) without sacrificing phobos or
readability in the output?
What strikes me as the most challenging construct is the
macro-like features in the template libraries. Although I suppose
an advanced analytical solution could be found.
Any thoughts on this?
More information about the Digitalmars-d
mailing list