[Gllug] Issues with Hotplug && Auto-mounting

Christian Smith csmith at micromuse.com
Wed Nov 30 16:23:53 UTC 2005


On Wed, 30 Nov 2005, Stig Brautaset wrote:

>On 30 Nov 2005, at 08:42, Peter Childs wrote:
>> Silly point and I might be getting this completely wrong but most of
>> firefox is written in a mixture of Javascript, XML, very little in
>> files that actually need compiling. Basically the compiled bits are a
>> collection of libraries, oh and a boot strap.
>
>The firefox1.0.7 source tarball is ~30MB in compressed form. It
>contains 5783 C and C++ files, containing 2972784 lines of code[0].
>I'm only guessing here, of course, but I'd say that will take some
>time to compile. It is possible, of course, that so much javascript
>and XML is part of this that the numbers I have quoted amounts to
>very little in comparison, but I'd be surprised.
>
>> Of course I might be completely wrong.
>
>Yes, I think you are.


Not entirely. The application framework is written mostly in (awful) C++,
using the Mozilla version of COM (XPCOM).

Firefox is then an application built on top of the framework using XUL and
javascript. It is not the Mozilla framework, but uses the framework. So
firefox is indeed mostly an interpreted application in XUL and JS.

At my company, we built our cross platform (Windows, Solaris, Linux,
HP-UX, AIX) installer on top of the Mozilla framework, using custom C++
components and XUL and JS to tie it all together. Gives us the nice
benefits of essentially the same installer on Windows and UNIX, with a
small custom layer to tie into MSI or a proprietry UNIX package manager.


>
>[0] - found like this:
>     (find -type f -name '*.c' ; find -type f -name '*.cpp') | xargs
>wc -l | awk '/total/ { sum += $1 } END { print sum }'
>
>Stig
>

-- 
    /"\
    \ /    ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
     X                           - AGAINST MS ATTACHMENTS
    / \
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list