digitalmars.D - interop with other environments
- mike (2/2) Apr 25 2007 Hello,
- =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= (4/5) Apr 26 2007 No, it doesn't. You google for "D language" or "D programming language".
- Alexander Panek (10/18) Apr 26 2007 As long as there is a C bridge possible, you can use almost any library
- Max Samukha (6/24) Apr 26 2007 Using what they call P/Invoke, you should be able to access from a
- Alexander Panek (5/9) Apr 26 2007 :O
- Dan (4/16) Apr 26 2007 I don't think Microsoft is evil, I just think their programmers are over...
- jcc7 (6/15) Apr 26 2007 Well, I won't argue that ethics of such a choice ( ;) ), but it should b...
- mike (4/8) Apr 26 2007 Thank you all for feedback, I'm really surprised how active and useful t...
- Bill Baxter (4/17) Apr 26 2007 For DMD on Windows, this is what you want:
- jcc7 (5/7) Apr 26 2007 It's not really as hard as you make it seem (and it keeps on getting eas...
- mike (1/1) Apr 26 2007 Yes, exactly. Thanks a lot, I'm diving into it right now.
Hello, I really like D syntax and would like to create one library in D language. Now, is it possible to use this library in .NET, Python, Ruby or PHP? How it could be done? You don't have to explain all, just point me please in the right direction. I was trying to find some more information but the fact that the language is called "D", it's pretty hard to google these things.
Apr 25 2007
mike wrote:the fact that the language is called "D", it's pretty hard to google these things.No, it doesn't. You google for "D language" or "D programming language". Or: http://directory.google.com/Top/Computers/Programming/Languages/D/ --anders
Apr 26 2007
On Thu, 26 Apr 2007 02:49:34 -0400 mike <mike nospam.com> wrote:Hello, I really like D syntax and would like to create one library in D language. Now, is it possible to use this library in .NET, Python, Ruby or PHP? How it could be done? You don't have to explain all, just point me please in the right direction. I was trying to find some more information but the fact that the language is called "D", it's pretty hard to google these things.As long as there is a C bridge possible, you can use almost any library you wish. I don't know whether that's possible with .NET, but the other ones shouldn't be a problem. You might be interested in PyD[1], and bcd.gen[2]. Kind regards, Alex [1] http://dsource.org/projects/pyd [2] http://dsource.org/projects/bcd
Apr 26 2007
On Thu, 26 Apr 2007 09:56:54 +0200, Alexander Panek <alexander.panek brainsware.org> wrote:On Thu, 26 Apr 2007 02:49:34 -0400 mike <mike nospam.com> wrote:Using what they call P/Invoke, you should be able to access from a .NET assembly any C functions exported by a dll compiled from D source. If you are adventurous enough you could even try to create a COM wrapper around a .NET assembly and use it from D.Hello, I really like D syntax and would like to create one library in D language. Now, is it possible to use this library in .NET, Python, Ruby or PHP? How it could be done? You don't have to explain all, just point me please in the right direction. I was trying to find some more information but the fact that the language is called "D", it's pretty hard to google these things.As long as there is a C bridge possible, you can use almost any library you wish. I don't know whether that's possible with .NET, but the other ones shouldn't be a problem. You might be interested in PyD[1], and bcd.gen[2]. Kind regards, Alex [1] http://dsource.org/projects/pyd [2] http://dsource.org/projects/bcd
Apr 26 2007
On Thu, 26 Apr 2007 13:06:03 +0300 Max Samukha <samukha voliacable.com> wrote:Using what they call P/Invoke, you should be able to access from a .NET assembly any C functions exported by a dll compiled from D source. If you are adventurous enough you could even try to create a COM wrapper around a .NET assembly and use it from D.:O That sounds disgusting and evul! *hides*
Apr 26 2007
Alexander Panek Wrote:On Thu, 26 Apr 2007 13:06:03 +0300 Max Samukha <samukha voliacable.com> wrote:I don't think Microsoft is evil, I just think their programmers are overpaid, and their marketers underpaid. Yeah, using a Microsoft interface spec to access stuff from a Microsoft runtime environment written in a Microsoft programming language sounds disgusting all right. But... some people like it dirty.Using what they call P/Invoke, you should be able to access from a .NET assembly any C functions exported by a dll compiled from D source. If you are adventurous enough you could even try to create a COM wrapper around a .NET assembly and use it from D.:O That sounds disgusting and evul! *hides*
Apr 26 2007
== Quote from Alexander Panek (alexander.panek brainsware.org)'s articleOn Thu, 26 Apr 2007 13:06:03 +0300 Max Samukha <samukha voliacable.com> wrote:Well, I won't argue that ethics of such a choice ( ;) ), but it should be possible. I created a COM library with VB.NET. I just used Juno (oldrev's version) to create an object from the COM library in a D program. I don't know how practical it is, but it come in handy. jcc7Using what they call P/Invoke, you should be able to access from a .NET assembly any C functions exported by a dll compiled from D source. If you are adventurous enough you could even try to create a COM wrapper around a .NET assembly and use it from D.:O That sounds disgusting and evul! *hides*
Apr 26 2007
Thank you all for feedback, I'm really surprised how active and useful this mailing-list is. Max, you said, I could have "C functions exported by a dll compiled from D source" and I think this is actually what I'm looking for. Do you know how it could be done? ThanksUsing what they call P/Invoke, you should be able to access from a .NET assembly any C functions exported by a dll compiled from D source. If you are adventurous enough you could even try to create a COM wrapper around a .NET assembly and use it from D.
Apr 26 2007
mike wrote:Thank you all for feedback, I'm really surprised how active and useful this mailing-list is. Max, you said, I could have "C functions exported by a dll compiled from D source" and I think this is actually what I'm looking for. Do you know how it could be done? ThanksFor DMD on Windows, this is what you want: http://www.digitalmars.com/d/dll.html --bbUsing what they call P/Invoke, you should be able to access from a .NET assembly any C functions exported by a dll compiled from D source. If you are adventurous enough you could even try to create a COM wrapper around a .NET assembly and use it from D.
Apr 26 2007
== Quote from mike (mike nospam.com)'s article ...I was trying to find some more information but the fact that the language is called "D", it's pretty hard to google these things.It's not really as hard as you make it seem (and it keeps on getting easier). Maybe you could benefit from a few tips: http://www.prowiki.org/wiki4d/wiki.cgi?SearchingTips
Apr 26 2007
Yes, exactly. Thanks a lot, I'm diving into it right now.
Apr 26 2007