OSGi and D

Tom S h3r3tic at remove.mat.uni.torun.pl
Mon Jun 23 11:28:25 PDT 2008


davidl wrote:
> 在 Sun, 22 Jun 2008 07:00:55 +0800,Frank Benoit 
> <keinfarbton at googlemail.com> 写道:
> 
>> As Tom (and possbibly others also) showed, DDL [1] can be used for 
>> dynamic loading and linking D classes. Even unloading should be possible.
>>
>> With this, i think Equinox [2] could be done in D also. Equinox is an 
>> implementation of the OSGi, and this is a component technologie for Java.
>>
>> If we would have such an implementation, this would open the door to a 
>> variety of possiblities. E.g. a full eclipse rich client plattform 
>> port. Or the port of other OSGi bundles and combine them with D code.
>>
>> What do you think?
>> What kind of obstacles do you see?
>> Is there a use for this in D?
>> Would it be worth the effort?
>>
>> [1] http://www.dsource.org/projects/ddl
>> [2] http://en.wikipedia.org/wiki/Equinox_OSGi
> 
> The problem of ddl is that ddl only supports OMF iirc .

Right, but the last time I had a chance to exchange a few words with 
Eric, he said he'd be doing an ELF backend. Moreover, there's nothing 
stopping anyone from adding a new backend to DDL *hint hint*. Doing an 
ELF backend will probably be an easier task than an OMF one, since the 
spec is much simpler, IIRC.
In the meantime, libdl + SO + Rodin might be used for unsupported platforms.


-- 
Tomasz Stachowiak
http://h3.team0xf.com/
h3/h3r3tic on #D freenode



More information about the Digitalmars-d mailing list