Thread overview
CORBA in D
Mar 02, 2012
Geoffrey Biggs
Mar 02, 2012
Walter Bright
Mar 02, 2012
Geoffrey Biggs
Mar 02, 2012
Sean Kelly
Mar 02, 2012
Geoffrey Biggs
Mar 02, 2012
Martin Nowak
Mar 05, 2012
Geoffrey Biggs
March 02, 2012
Morning all,

In a project just starting, we want to use D (for its safety, amongst other things). However, we also need to connect to distributed objects that have CORBA interfaces. I did a search, and the most recent mention of CORBA and D that I could find is a post to this list nearly 5 years ago:

http://www.digitalmars.com/d/archives/digitalmars/D/Using_CORBA_with_D_55285.html

The linked project is still just as empty now as it was then.

Does anyone know of any existing approaches to using CORBA from D that have perhaps appeared since then? If there isn't a direct implementation, what are the chances of using a C++ library such as omniORB from D?


Thanks,
Geoff
March 02, 2012
On 3/1/2012 4:43 PM, Geoffrey Biggs wrote:
> Morning all,
>
> In a project just starting, we want to use D (for its safety, amongst other
> things). However, we also need to connect to distributed objects that have CORBA
> interfaces. I did a search, and the most recent mention of CORBA and D that I
> could find is a post to this list nearly 5 years ago:
>
> http://www.digitalmars.com/d/archives/digitalmars/D/Using_CORBA_with_D_55285.html
>
> The linked project is still just as empty now as it was then.
>
> Does anyone know of any existing approaches to using CORBA from D that have
> perhaps appeared since then? If there isn't a direct implementation, what are
> the chances of using a C++ library such as omniORB from D?

Isn't CORBA based on COM? D supports COM interfaces.
March 02, 2012
On 02/03/12 10:54, Walter Bright wrote:
> On 3/1/2012 4:43 PM, Geoffrey Biggs wrote:
>> Morning all,
>>
>> In a project just starting, we want to use D (for its safety, amongst
>> other
>> things). However, we also need to connect to distributed objects that
>> have CORBA
>> interfaces. I did a search, and the most recent mention of CORBA and D
>> that I
>> could find is a post to this list nearly 5 years ago:
>>
>> http://www.digitalmars.com/d/archives/digitalmars/D/Using_CORBA_with_D_55285.html
>>
>>
>> The linked project is still just as empty now as it was then.
>>
>> Does anyone know of any existing approaches to using CORBA from D that
>> have
>> perhaps appeared since then? If there isn't a direct implementation,
>> what are
>> the chances of using a C++ library such as omniORB from D?
>
> Isn't CORBA based on COM? D supports COM interfaces.

Are you referring to Microsoft's COM? If so, then I don't *think* there's any connection. CORBA and Microsoft's COM/DCOM are not compatible. CORBA uses a different (standardised, for what that's worth) distribution protocol to DCOM.

Geoff
March 02, 2012
On Mar 1, 2012, at 6:42 PM, Geoffrey Biggs <geoffrey.biggs@aist.go.jp> wrote:

> On 02/03/12 10:54, Walter Bright wrote:
>> On 3/1/2012 4:43 PM, Geoffrey Biggs wrote:
>>> Morning all,
>>> 
>>> In a project just starting, we want to use D (for its safety, amongst
>>> other
>>> things). However, we also need to connect to distributed objects that
>>> have CORBA
>>> interfaces. I did a search, and the most recent mention of CORBA and D
>>> that I
>>> could find is a post to this list nearly 5 years ago:
>>> 
>>> http://www.digitalmars.com/d/archives/digitalmars/D/Using_CORBA_with_D_55285.html
>>> 
>>> 
>>> The linked project is still just as empty now as it was then.
>>> 
>>> Does anyone know of any existing approaches to using CORBA from D that
>>> have
>>> perhaps appeared since then? If there isn't a direct implementation,
>>> what are
>>> the chances of using a C++ library such as omniORB from D?
>> 
>> Isn't CORBA based on COM? D supports COM interfaces.
> 
> Are you referring to Microsoft's COM? If so, then I don't *think* there's any connection. CORBA and Microsoft's COM/DCOM are not compatible. CORBA uses a different (standardised, for what that's worth) distribution protocol to DCOM.

I haven't heard of one. Does omniORB use a pre-compiler?  This would be a great use of CTFE in a native D implementation.
March 02, 2012
On 02/03/12 13:28, Sean Kelly wrote:
> On Mar 1, 2012, at 6:42 PM, Geoffrey Biggs<geoffrey.biggs@aist.go.jp>  wrote:
>
>> On 02/03/12 10:54, Walter Bright wrote:
>>> On 3/1/2012 4:43 PM, Geoffrey Biggs wrote:
>>>> Morning all,
>>>>
>>>> In a project just starting, we want to use D (for its safety, amongst
>>>> other
>>>> things). However, we also need to connect to distributed objects that
>>>> have CORBA
>>>> interfaces. I did a search, and the most recent mention of CORBA and D
>>>> that I
>>>> could find is a post to this list nearly 5 years ago:
>>>>
>>>> http://www.digitalmars.com/d/archives/digitalmars/D/Using_CORBA_with_D_55285.html
>>>>
>>>>
>>>> The linked project is still just as empty now as it was then.
>>>>
>>>> Does anyone know of any existing approaches to using CORBA from D that
>>>> have
>>>> perhaps appeared since then? If there isn't a direct implementation,
>>>> what are
>>>> the chances of using a C++ library such as omniORB from D?
>>>
>>> Isn't CORBA based on COM? D supports COM interfaces.
>>
>> Are you referring to Microsoft's COM? If so, then I don't *think* there's any connection. CORBA and Microsoft's COM/DCOM are not compatible. CORBA uses a different (standardised, for what that's worth) distribution protocol to DCOM.
>
> I haven't heard of one. Does omniORB use a pre-compiler?  This would be a great use of CTFE in a native D implementation.

Yes, there's the omniidl IDL compiler, to go from OMG IDL to C++ objects (or Python objects, if you're using omniORB-py). Unfortunately, the code it produces is enough to make you go blind, so it's not something I would want to write D bindings for manually.

Geoff
March 02, 2012
On Fri, 02 Mar 2012 01:43:17 +0100, Geoffrey Biggs <geoffrey.biggs@aist.go.jp> wrote:

> Morning all,
>
> In a project just starting, we want to use D (for its safety, amongst other things). However, we also need to connect to distributed objects that have CORBA interfaces. I did a search, and the most recent mention of CORBA and D that I could find is a post to this list nearly 5 years ago:
>
> http://www.digitalmars.com/d/archives/digitalmars/D/Using_CORBA_with_D_55285.html
>
> The linked project is still just as empty now as it was then.
>
> Does anyone know of any existing approaches to using CORBA from D that have perhaps appeared since then? If there isn't a direct implementation, what are the chances of using a C++ library such as omniORB from D?
>
>
> Thanks,
> Geoff

There was some Thrift support in the workings if that might help you.
March 05, 2012
On 02/03/12 21:43, Martin Nowak wrote:
> On Fri, 02 Mar 2012 01:43:17 +0100, Geoffrey Biggs
> <geoffrey.biggs@aist.go.jp> wrote:
>
>> Morning all,
>>
>> In a project just starting, we want to use D (for its safety, amongst
>> other things). However, we also need to connect to distributed objects
>> that have CORBA interfaces. I did a search, and the most recent
>> mention of CORBA and D that I could find is a post to this list nearly
>> 5 years ago:
>>
>> http://www.digitalmars.com/d/archives/digitalmars/D/Using_CORBA_with_D_55285.html
>>
>>
>> The linked project is still just as empty now as it was then.
>>
>> Does anyone know of any existing approaches to using CORBA from D that
>> have perhaps appeared since then? If there isn't a direct
>> implementation, what are the chances of using a C++ library such as
>> omniORB from D?
>>
>>
>> Thanks,
>> Geoff
>
> There was some Thrift support in the workings if that might help you.

Thanks for the pointer. Unfortunately, CORBA and Thrift are not compatible.

Geoff