Programming
Article
By Harry Fuecks

Mozilla 2.0 XUL: script type = application/x-python

By Harry Fuecks

Interesting post on Brendan Eichs blog: Mozilla 2.0 platform must-haves.

– libxul.so/libxul.dll: would make XUL embeddable in other platforms (perhaps PHP-XUL cf. PHP-GTK?)

– Python support: a later comment suggests:


Given deep misunderstanding of Javascript and Pythons growing popularity, seems like a very smart move. Whether that would become a default part of Firefox, allowing web apps to use client side Python is another question though.

Some insightful comments as well, such as;

1 of 2: Documentation.
2 of 2: Test suites.

1. Establishing trust and newbie productivity on a platform is more important than whether a platform can technically do any given thing out of the box, or even at all.

2. Documentation and lack of bugs compared to that documentation is more important for establishing trust and newbie productivity than anything else.

XUL may be a great idea but getting people to use it is another thing.

  • Thanks Harry,
    This is the first I have come across ‘Web Forms 2.0’, I can understand its perspective, but would it ever be implemented, my thoughts are doubtful?

    These facilities reinforce each other while remaining fairly small and simple. Unlike in Java, the philosophy behind them is to provide the minimal necessary facilities that other parties can use to write packages that specialize the language for particular domains rather than define these packages as part of the language core.

    As for JavaScript 2.0 I have really fallen behind, and the proposal for its implementation is surreal, (boolean,byte,char,double,final,float,int,long,short,static,as,is,namespac,use, etc), JavaScript≈Java. Whilst, skepticism generally denotes the former from a number of novices this will become even more the case, with this implementation.

    As for the comments I couldn’t disagree more with the first comment, there must be a compromise between productivity and security, and I would rather have a secure system, which is my first objective.[color=red][sup]Hmmm, didn’t read what it was in relation too…[/sup][/color]

    Some people mentioned, Parrot anyone looked at [URL=http://www.rebol.net/plugin/demos/]REBOL[URL]?

  • As for the comments I couldn’t disagree more with the first comment, there must be a compromise between productivity and security, and I would rather have a secure system, which is my first objective

    Normally I’d agree but I think Mozilla is a unique case in that security (+ thin documentation) makes it very hard for developers to do anything with it, when it comes to applications which will be deployed from a website. Think that if Microsoft hadn’t implemented XMLHttpRequest (which led to Mozilla following suite) it would be almost impossible to do anything useful with it.

  • Dangermouse

    Wow, that REBOL looks interesting

  • allowing web apps to use client side Python is another question though.

    In reality XUL is extremely smart about this type of thing.. Because XUL has the ability to affect the local file system there are very strict rules on where XUL can run from. By default any XUL that can affect the local system will not run remotely without hacking your prefs file to allow it.

    The idea would be to create a package you run locally with all your python or even php controls and hooks into the browser. That package communicates to your server and passes/grabs information it might need.

Recommended
Sponsors
Get the latest in Front-end, once a week, for free.