Re: Small embeddable scripting language ?
- From: John Palmieri <johnp martianrock com>
- To: gnome-devel-list gnome org
- Subject: Re: Small embeddable scripting language ?
- Date: 28 Nov 2002 22:19:23 -0500
Java Script is a tempting way to go. It was the first thing to cross my
mind when I was thinking of what would be the the best scripting
language to use.
- It is simple and a lot of coders of all levels know how to use it.
- It is proven itself as the basis for client side scripting in web
browsers.
- A version of it is also used successfully in tools like Macromedia's
Flash
But the more you look at it the more it seems like Python is a better
choice.
- JavaScipt in anything more complicated than manipulating a structured
document gets tedious. If you have ever had the pleasure to use
Netscape's Server Side java scripting tools you would understand. It
realy is not up to the task that general languages like Python can
handle with ease.
- JavaScript has a fraction of the bindings that Python has and this
includes the GTK and GNOME libraries. While work could be done to add
this the question is why, when Python already has it? Included with
this that would be important to me is database bindings of which Python
has amazing support for.
- Python is just as easy to learn as JavaScript, produces more readable
code by default and is easy to embed & extend.
here are some links to docs for embeding Python:
http://www.python.org/doc/current/ext/ext.html - Extending and Embedding
the Python Interpreter
http://www.python.org/doc/current/api/api.html - Python/C API Reference
Manual
http://www.amk.ca/python/howto/rexec/ - Restricted Execution HOWTO
--
J5
On Thu, 2002-11-28 at 21:13, Owen Taylor wrote:
>
>
> Malcolm Tredinnick <malcolm commsecure com au> writes:
>
> > Also (4): where is a library implementation of ECMAscript (which is the
> > only "standard" for Javascript there is)? You can't just take a couple
> > of files from Mozilla and drop them in.
>
> Actually, the Javascript engine in Mozilla *is* designed to be
> reusable, see, e.g.:
>
> http://www.mozilla.org/js/spidermonkey/apidoc/jsguide.html
>
> [ Doesn't mean that I'm recommending Javascript, just thought
> I'd point that out ]
>
> Regards,
> Owen
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]