Hi Kay, Thank you for the encouraging response. This is the first time that I am posting on the UDK mailing list and hence if there are any rules regarding the format of the postings please do let me know.
> -----Original Message----- > From: Kay Ramme - Sun Germany - Hamburg [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 29, 2007 8:07 PM > To: [email protected] > Subject: Re: [udk-dev] Creating UNO-Ruby bridge? > > Hi Girish, > > Girish Chandran wrote: > > Hi All, > > > > I am analyzing the effort required for implementing a UNO > Bridge for Ruby. > I am happy to hear that :-) > > > > As part of this exercise I am going through the documentation > > available at the following urls: > > - http://udk.openoffice.org/common/man/bridge.html > > - > > > http://api.openoffice.org/docs/DevelopersGuide/AdvancedUNO/AdvancedUNO > > .xhtml > All documentation should be reachable from > http://wiki.services.openoffice.org/wiki/Uno/Spec > > respectively > http://wiki.services.openoffice.org/wiki/Uno/Articles%26Tutorials > I have started studying the documents available under these links. Are there some specific documents which I should be studying in greater detail? > > > > I have some experience in working with UNO components but > this is the > > first time I am trying to write a Bridge. I am also going > through some > > of the existing bridges to get some understanding of the > > design/architecture to be followed when developing a new bridge. It > > would be really helpful if I can get some pointers in this > regards which would speed up my study. > > Is there any tutorial about writing Bridges? Can some body share > > their experiences? > > You actually have the choice to write a > * remote Uno or > * a Binary Uno bridge, > though in theory you could use any language binding for which > a bridge already exits (e.g. you could use JRuby and > implement the bridge in Java). > Thank you for pointing out the choices. Let me also give you some details about my requirement. I have a set of C++ UNO Components as part of an application. Each component is having well defined interfaces and component implementation. The requirement now is that I should be able to access these components from Ruby script and also I should be able to execute Ruby scripts from the UNO Components (by supporting embed-ability). Also the bridge should be dynamic so that if I request for an interface that is part of a component, the bridge does some kind of internal UNO type lookup and allow me the access to the interface. This would allow me to extend my current application without having to change the bridge. I hope I was able to clearly present my requirements. > A remote bridge basically marshalles all requests and sends > these through a connection (e.g. TCP/IP) respectively it > receives and unmarshalls requests. It needs to manage threads > and to preserve thread identities etc. Documentation for > Remote Uno is tight and can be found here: > http://wiki.services.openoffice.org/wiki/Uno/Remote > > A Binary Uno bridge would use the Ruby runtime in process. > Despite synchronization etc. you wouldn't need to deal with > threads or thread pools, but would need to use some Ruby > native interface. The PyUno python Uno bridge is implemented > as a Binary Uno bridge. You may want to use the PyUno bridge > (http://wiki.services.openoffice.org/wiki/Uno/PyUno) as a template. > Documentation for Binary Uno can be found here: > http://wiki.services.openoffice.org/wiki/Uno/Binary > Based on your comments I feel that the Binary Uno Bridge would be the way to go. I will also start looking at the PyUNO implementation in detail to get a better perspective of the whole task. I know I am being lazy here :), but is there some document which describes what are the key areas of focus when developing a bridge for a new language? To be very frank the amount of documentation just overwhelms one. >From my preliminary study I understand that I have to work on the mapping, language bindings and the corresponding support in the bridge. > > If you are going to create a Ruby bridge, please create a page > > http://wiki.services.openoffice.org/wiki/Uno/Ruby > > as the root for documentation. You may also want to create a > > http://wiki.services.openoffice.org/wiki/Uno/Effort/Create > Ruby Bridge > > for managing the tasks, states etc. At present I am also evaluating various Ruby implementations in order to select one on which the bridge can be based. As soon as I have something concrete I will seek your help in initiating the project. > > > > > thanks and best regards, > > Girish > > Best regards > > Kay > Thanks and best regards, Girish DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
