FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Auto language converter

 
Post new topic   Reply to topic     Forum Index -> General
View previous topic :: View next topic  
Author Message
Xerpher



Joined: 09 May 2004
Posts: 13

PostPosted: Sun May 16, 2004 9:54 pm    Post subject: Auto language converter Reply with quote

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 Twisted Evil
Back to top
View user's profile Send private message
jcc7



Joined: 22 Feb 2004
Posts: 654
Location: Edmond, OK, USA

PostPosted: Sun May 16, 2004 10:32 pm    Post subject: C/C++ to D Reply with quote

I think your laziness should be commended. Very Happy

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. Smile
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
View user's profile Send private message Visit poster's website AIM Address
Xerpher



Joined: 09 May 2004
Posts: 13

PostPosted: Mon May 17, 2004 9:23 am    Post subject: Reply with quote

Thanks I'll check those out Smile
Back to top
View user's profile Send private message
trejkaz



Joined: 07 Jun 2004
Posts: 4

PostPosted: Mon Jun 07, 2004 9:01 pm    Post subject: Reply with quote

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. Smile

(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
View user's profile Send private message
Nova



Joined: 18 Sep 2004
Posts: 23

PostPosted: Wed Dec 15, 2004 9:26 pm    Post subject: Reply with quote

What about Java to D? Wink
Back to top
View user's profile Send private message
trejkaz



Joined: 07 Jun 2004
Posts: 4

PostPosted: Wed Dec 15, 2004 10:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nova



Joined: 18 Sep 2004
Posts: 23

PostPosted: Wed Dec 15, 2004 10:45 pm    Post subject: Reply with quote

trejkaz wrote:
I wonder if Qt/D has been brought about yet...

What is Qt? QuickTime?
Back to top
View user's profile Send private message
jcc7



Joined: 22 Feb 2004
Posts: 654
Location: Edmond, OK, USA

PostPosted: Wed Dec 15, 2004 11:10 pm    Post subject: Reply with quote

Nova wrote:
What is Qt?
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
View user's profile Send private message Visit poster's website AIM Address
Nova



Joined: 18 Sep 2004
Posts: 23

PostPosted: Wed Dec 15, 2004 11:23 pm    Post subject: Reply with quote

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 Sad

If somebody else has it I would like to try it out (but don't expect promising results).
Back to top
View user's profile Send private message
jcc7



Joined: 22 Feb 2004
Posts: 654
Location: Edmond, OK, USA

PostPosted: Thu Dec 16, 2004 12:22 am    Post subject: Reply with quote

Nova wrote:
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 Sad
Try: http://www.dsource.org/projects/swig4d/

Also, it might be helpful to read this: http://www.prowiki.org/wiki4d/wiki.cgi?DwithSwig

Good luck.
Back to top
View user's profile Send private message Visit poster's website AIM Address
larsivi
Site Admin


Joined: 27 Mar 2004
Posts: 453
Location: Trondheim, Norway

PostPosted: Thu Dec 16, 2004 1:49 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> General All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group