View previous topic :: View next topic |
Author |
Message |
Xerpher
Joined: 09 May 2004 Posts: 13
|
Posted: Sun May 16, 2004 9:54 pm Post subject: Auto language converter |
|
|
Was just curious if there are any tools out there to try to convert whole projects from C or C++ to D?
And to answer your question... yes, I'm lazy |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Sun May 16, 2004 10:32 pm Post subject: C/C++ to D |
|
|
I think your laziness should be commended.
Andy's webpage has an item called SWIG on it:
Quote: | SWIG (with a D mode)
This is a very early test to see how well SWIG could be used to generate D interfaces from existing C and C++ libraries. The outlook is anything but grim.
Last updated 21 Sep 2003 |
Also, Y. Tomino has a Perl script that he uses for converting Windows headers.
I'm don't know if you have a specific goal, but these projects may be of use to you. |
|
Back to top |
|
|
Xerpher
Joined: 09 May 2004 Posts: 13
|
Posted: Mon May 17, 2004 9:23 am Post subject: |
|
|
Thanks I'll check those out |
|
Back to top |
|
|
trejkaz
Joined: 07 Jun 2004 Posts: 4
|
Posted: Mon Jun 07, 2004 9:01 pm Post subject: |
|
|
I looked into using SWIG for getting a Qt API from D, but it intimidated the hell out of me... although I'm normally a Java developer so I guess that isn't saying much.
(What we really need is some individual who is a SWIG guru and a D fanatic, to go and create wrappers for dozens of useful libraries, so we have a foundation for developing apps.) _________________ Jabber ID: trejkaz@jabber.xaoza.net
Jabber: because all other instant messengers suck. |
|
Back to top |
|
|
Nova
Joined: 18 Sep 2004 Posts: 23
|
Posted: Wed Dec 15, 2004 9:26 pm Post subject: |
|
|
What about Java to D? |
|
Back to top |
|
|
trejkaz
Joined: 07 Jun 2004 Posts: 4
|
Posted: Wed Dec 15, 2004 10:14 pm Post subject: |
|
|
Java-to-D would be interesting, as you could then access a massive collection of Java libraries (a few of which may take years to appear in any other languages) from a D program.
I wonder if Qt/D has been brought about yet... it's been ages since this thread was last alive. _________________ Jabber ID: trejkaz@jabber.xaoza.net
Jabber: because all other instant messengers suck. |
|
Back to top |
|
|
Nova
Joined: 18 Sep 2004 Posts: 23
|
Posted: Wed Dec 15, 2004 10:45 pm Post subject: |
|
|
trejkaz wrote: | I wonder if Qt/D has been brought about yet... |
What is Qt? QuickTime? |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Wed Dec 15, 2004 11:10 pm Post subject: |
|
|
I think he means: Qt, "a complete C++ application framework, including a class library and tools for cross-platform development" (Trolltech)
trejkaz wrote: | I wonder if Qt/D has been brought about yet... it's been ages since this thread was last alive. | If it's been done, it's news to me.
Is GTK+ of any interest to you? Ant is still plugging away with DUI.
SWIG intimidated me, too. I'm sure it's powerful, but I had no idea what to with it. I think it's my lack of C++ experience. Once of these days I'm going to give in and learn C++. |
|
Back to top |
|
|
Nova
Joined: 18 Sep 2004 Posts: 23
|
Posted: Wed Dec 15, 2004 11:23 pm Post subject: |
|
|
I would seriously like to try out SWIG and the various other things appearently located on Andy's webpage, but I've been trying to access it for a couple of weeks now and I can never establish a connection
If somebody else has it I would like to try it out (but don't expect promising results). |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
|
Back to top |
|
|
larsivi Site Admin
Joined: 27 Mar 2004 Posts: 453 Location: Trondheim, Norway
|
Posted: Thu Dec 16, 2004 1:49 am Post subject: |
|
|
jcc7 wrote: |
trejkaz wrote: | I wonder if Qt/D has been brought about yet... it's been ages since this thread was last alive. | If it's been done, it's news to me.
|
Qt isn't just C++, it uses macros and it's own preprocessor to overcome shortcomings in C++. moc (the Qt preprocessor) actually creates something that functions much like delegates in D. I think that converting this stuff to D would require a full blown C++ compiler. Java to D is much more feasible and has been tried several times (although I haven't heard of anyone with a complete solution). |
|
Back to top |
|
|
|