User: Password:
Subscribe / Log in / New account

GNOME debates Javascript bindings

GNOME debates Javascript bindings

Posted May 21, 2009 15:31 UTC (Thu) by gerv (subscriber, #3376)
In reply to: GNOME debates Javascript bindings by tialaramex
Parent article: GNOME debates Javascript bindings

I don't think (I am not involved in the larger debate, I just read the article) anyone is proposing to use Javascript to _write_ large applications.

<cough> Firefox <cough> (or large chunks of it, anyway)

(Log in to post comments)

GNOME debates Javascript bindings

Posted May 21, 2009 18:47 UTC (Thu) by tialaramex (subscriber, #21167) [Link]

Come on gerv, I've hacked on Mozilla. Am I going to find that Mozilla's AES implementation is now in Javascript? No. The image renderer? No. There are all these big complex systems in C++, and then there's glue holding the thing together, and that glue's where Javascript is (mostly) found.

I recall (I am an old codger) fairly well the work to implement PAC in Mozilla, and basically 95% of the heavy lifting was C++ hacking, and then it needed some glue to connect it up and handle prefs and so on, and that was in Javascript.

And to get to the point where Javascript plays this role, Mozilla had to create XPCOM. So Javascript without XPCOM would be even less suited to writing a whole application.

GNOME debates Javascript bindings

Posted May 21, 2009 20:27 UTC (Thu) by gerv (subscriber, #3376) [Link]

More and more parts are being rewritten in JavaScript, for all the obvious reasons (high-level language, no buffer issues etc.) I don't have the time to run a full code line counter, but:

gerv@otter:mozilla$ find . -name "*.cpp" -exec cat {} \; | wc -l
gerv@otter:mozilla$ find . -name "*.js" -exec cat {} \; | wc -l

Seems to be about 65:35 at the moment. Hardly just "the glue".

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds