Subj : Re: Equivalent of JS_InitClass for global object? To : "John J. Lee" From : Brendan Eich Date : Tue Aug 26 2003 02:06 pm John J. Lee wrote: >Yes, I'm aware of PyXPCOM (if I've got the name right). PyXPCOM is >much nicer than my hack, of course, but I didn't want to depend on >Mozilla. I also knew I wanted to play around with stuff on top of the >DOM and probably hack the DOM occasionally for 'DOM as deployed' >compatibility (yuck), for example. I suspected this kind of thing >would be easier if all the DOM code was in Python. > What DOM code? If you are writing your own DOM, what rendering code (if any) will you use? >Also, there were build and interoperability issues with PyXPCOM last >time I checked, though looking now I can't tell how far that has been >resolved. I wonder if it's part of (or will be part of) the standard >Mozilla distribution, in a form that allows standalone scripts to run. > See http://pyxpcom.mozdev.org soon (coming online still). >[...] > > >>The advantage of PyConnect is that if you go down the JS/Python route, >>you're inviting n^2 inter-language-runtime bridge-building. If you >>instead choose to build only XPCOM/language bridges, you need n for n >>languages. Plus XPCOM, of course. >> >> > >Yeah, but I don't care about those other languages ;-P and XPCOM is >just another thing to learn from my PoV (*how* many COM- / CORBA-like >component systems on *nix now? 4 or 5, maybe?!). > > Dunno, but that doesn't alter the fact that you may be heading down a road where you buy off more work in the long run that you would like, by choosing to optimize the short term. It's your call, anway; just wanted to ask "what DOM code" and push back a little. /be .