RE: Re: Netscape 'Spidermonkey' JavaScript bi ndings
Warrick Buchanan <[email protected]>
| Newsgroups | gmane.comp.lib.boost.langbinding |
|---|---|
| Message-ID | <415C917D807AD411B72C00805FF7330B094C005F@MAILSRV> |
Ah ok - that's good then :) I've put up the initial spartan version of my SpiderMonkey bindings on my website here: <http://195.137.84.121/Warrick/Geek/SpiderMonkey/index.htm> It only supports member functions with no arguments and any return type (except void) - just for simplicities sake at the moment. I suspect Peder is further along then me at the moment though! Is there any parts of this I can move to use the existing langbinding stuff now? Also I'm currently breaking it with ideas on how to expose C++ inheritance to JavaScript's prototype objects scheme which is a challenge. My plan is to get some sort of prototype of this with C++ inheritance exposed at some point, then compare this to boost::python/langbinding and then modify it from there to use langbinding stuff that exists or that will be written so that any requirements for JavaScripts' special needs are made obvious. Does that sound like a decent plan? -----Original Message----- From: David Abrahams [mailto:[email protected]] Sent: 06 April 2004 03:52 To: [email protected] Subject: [Boost-langbinding] Re: Netscape 'Spidermonkey' JavaScript bi ndings Warrick Buchanan <[email protected]> writes: >> I agree. It is better to use static member data to store the >> function pointer locally. > > To my (current) knowledge this isn't how boost::python currently works is it > though Details are missing here, so I may not have the right context, but yes boost::python uses that technique extensively to avoid expensive map lookups for converters at runtime. -- Dave Abrahams Boost Consulting www.boost-consulting.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Boost-langbinding mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/boost-langbinding ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click