On Wed, 2002-07-03 at 11:40, David Megginson wrote:
> Tony Peden writes:
> 
>  > > I don't know how many interdependencies there are, but the js related
>  > > source and headers total 142k.
>  > 
>  > Check that, 212k.
> 
> That's pretty close.  I wonder how bad the dependencies are.

OK, I've gotten the compressed and uncompressed numbers confused.  The
two numbers I quoted above are uncompressed.  The original 360k posted
was for the whole library and was compressed.

I've isolated all the headers and source required to get the js
interpreter to compile and link.  The resulting executable works,
but all it does is instantiate the interpreter then delete it.  At any
rate, I ended up with 388k of uncompressed source.  This compresses to
56k with tar and gzip.

Note that du gives 17M for the FG source tree and 4.9M for the Simgear 
source tree after running 'make distclean' on both.  Both numbers are,
obviously, uncompressed.

If anyone is interested, I can send you a tarball with the sources and
Makefile.


One more thing I should point out, the author's caveat list:

<quote url=
http://ixlib.sourceforge.net/doc/namespaceixion_1_1javascript.html#a19>

This is the list of its shortcomings:

    * exceptions
    * namespaces,packages
    * constness
    * Number/String constructor and class methods
    * real regexp's
    * the methods listed in FIXME's (js_library.cc js_value.cc)
    * cannot cross-assign predefined methods [won't be]
    * Grammatical semicolon insertion [won't be]
    * type declaration [won't be]

Be advised that a javascript value that is passed to you through the
interpreter, e.g. as a call parameter, may not be of the type that you
expect. For example, in "var x = 4; f(x);", what comes in as the
parameter x into f is a wrapper value that adds assign()ability to a
value that is wrapped inside. The advised solution to get the object
that you expect is to call eliminateWrappers() on the potentially
wrapped value.
</quote>

I haven't any idea how much of a loss these represent.  I will say,
however, that the author seems to *really* like namespaces...





 
> 
> 
> All the best,
> 
> 
> David
> 
> -- 
> David Megginson, [EMAIL PROTECTED], http://www.megginson.com/
> 
> _______________________________________________
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 
-- 
Tony Peden
[EMAIL PROTECTED]
We all know Linux is great ... it does infinite loops in 5 seconds. 
-- attributed to Linus Torvalds


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to