Re: [C++] Javascript implementation type, was Re: [C++ SCA] Language bindings & embedding the runtime

2006-09-05 Thread Jim Marino
Option 2: - You don't want to write an SCDL componentType file - In your JavaScript object constructor you do the following: function Calculator() { scaproperty(this.precision) scareference(this.divideService) } - This tells the Tuscany runtime what properties and references to consider, the r

Re: [C++] Javascript implementation type, was Re: [C++ SCA] Language bindings & embedding the runtime

2006-09-04 Thread Jean-Sebastien Delfino
ant elder wrote: Supporting OO JavaScript sounds like a good idea to me, and I think I also prefer the attribute named 'constructor'. Have you thought about how properties and references will work with OO? Right now in the Java impl I set these in the script global scope, with OO I guess they sh

Re: [C++] Javascript implementation type, was Re: [C++ SCA] Language bindings & embedding the runtime

2006-09-04 Thread ant elder
Supporting OO JavaScript sounds like a good idea to me, and I think I also prefer the attribute named 'constructor'. Have you thought about how properties and references will work with OO? Right now in the Java impl I set these in the script global scope, with OO I guess they should be set on the

[C++] Javascript implementation type, was Re: [C++ SCA] Language bindings & embedding the runtime

2006-09-01 Thread Jean-Sebastien Delfino
ant elder wrote: How about a C++ JavaScript extension to match the one we have in Java/SCA? You can use SpiderMonkey [1] which also has E4X support and then we'd be able to switch SCA JavaScript components btw the Java and C++ runtimes. Using E4X would mean you don't have the databinding issues

Re: [C++ SCA] Language bindings & embedding the runtime

2006-08-02 Thread Simon Laws
That's a great idea Pete. I would also like to add that we are just starting to think about SCA in PHP and is would seem sensible to reuse the work you have done in C++. So if we could also engineer the C++ implementation so that it is easy to concume as the basis for another implementation, as we

Re: [C++ SCA] Language bindings & embedding the runtime

2006-08-02 Thread Pete Robbins
That sounds like an ineresting idea. I'll look into it. Now that the release is out of the way I want to open up discussion on here about restructuring the C++ runtime to enable it to support multiple language bindings (C++, PHP,...) and also to support the latest Assembly Specification for the r

Re: [C++ SCA] Language bindings & embedding the runtime

2006-08-02 Thread ant elder
How about a C++ JavaScript extension to match the one we have in Java/SCA? You can use SpiderMonkey [1] which also has E4X support and then we'd be able to switch SCA JavaScript components btw the Java and C++ runtimes. Using E4X would mean you don't have the databinding issues when using web serv

[C++ SCA] Language bindings & embedding the runtime

2006-07-21 Thread Andrew Borley
Hi, I've been loosely thinking about what it will take to provide extra language bindings to Tuscany SCA C++ and how that relates to providing the runtime as an extension within a language. I've put my early thoughts up on the wiki here: http://wiki.apache.org/ws/Tuscany/TuscanyCpp/LanguageBindin