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

Tweet

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:


  • http://www.ajohnstone.com Andrew-J2000

    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]?

  • http://www.phppatterns.com HarryF

    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

  • http://www.cyberlot.net cyberlot

    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.