On Wednesday, 5 May 2021 at 10:35:23 UTC, Dominikus Dittes Scherkl wrote:
On Wednesday, 5 May 2021 at 10:01:13 UTC, user1234 wrote:
I have a technical question about the tool itself. It is mostly written in cpp.

Oh dear!
Isn't it possible to use it to translate itself into D?

To answer both:

clang has lots of templates, sometimes not so trivial ones, its code base filled with C++ constructs that does not have nice one to one translation(or simply a C++ specific detail like alignment), and the most annoying part - it has various 'tables' generated as a build step that is a mix of external tools and macros.

Basically every template will need some care, likely it will be easier to just emit C++ stubs that will force compiler to emit actual code to link with than trying to translate them.

So no, not currently possible. Definitely not an unpaid job, well I'll still reject it even if it is paid one.

Maybe some time in future, but for now there is a lot more priority stuff to do before even attempting this.
  • (Oh My) Gentool 0.3.0 ... evilrat via Digitalmars-d-announce
    • Re: (Oh My) Gento... user1234 via Digitalmars-d-announce
      • Re: (Oh My) G... Dominikus Dittes Scherkl via Digitalmars-d-announce
        • Re: (Oh M... evilrat via Digitalmars-d-announce
          • Re: (... user1234 via Digitalmars-d-announce
            • ... Dominikus Dittes Scherkl via Digitalmars-d-announce
            • ... Jacob Carlborg via Digitalmars-d-announce
              • ... evilrat via Digitalmars-d-announce
      • Re: (Oh My) G... Jacob Carlborg via Digitalmars-d-announce
        • Re: (Oh M... Gavin Ray via Digitalmars-d-announce
          • Re: (... evilrat via Digitalmars-d-announce
            • ... Gavin Ray via Digitalmars-d-announce

Reply via email to