Subj : Re: architecture strategy: JSAPI or XPCOM? To : Jason From : Brendan Eich Date : Mon Mar 07 2005 01:55 pm Jason wrote: > Shanti wrote: > >>Don't write any compiled code. Use my precompiled JS shell. Try to > > read > >>and understand http://www.jsdb.org/samples/readtek.js.txt > > > ah, if only it were that easy... > I hadn't considered writing the code in Javascript itself, which would > be a definite plus if I were stuck on a desert island w/o a compiler ( > :o] ) , but the goal here is to permit reuse among different languages: > at a minimum C/C++, MATLAB, Javascript, and Perl, each with minimum > "ugliness" for users (e.g. simple black box use if people don't want to > get into details). Yeah, that's why I recommended XPIDL and XPCOM. > Because of this, the DLL approach is a win for implementation (not to > mention the fact that I am writing a GUI monitor program that needs to > share resources with other apps that use the DLL: namely the serial > port itself and some other shared memory), I just have to figure out > how to handle the programmer's interface & JSAPI doesn't look too bad. What were your reasons for not using XPIDL and a little XPCOM C++ glue? /be .