Re: how can I add an scripting language to my application ?
- From: "Sean Middleditch" <sean middleditch Iname com>
- To: "Nathan Hurst" <njh hawthorn csse monash edu au>,"Pablo De Napoli" <pdenapo mate dm uba ar>
- Cc: <gnome-devel-list gnome org>
- Subject: Re: how can I add an scripting language to my application ?
- Date: Fri, 5 May 2000 07:56:46 -0400
I'd recommend Lua over Python for purposes of embedded scripting. It's
faster, lighter, and can do most things Python can. However, if you REALLY
need all the power you can get out of a scripting lanuage, at cost of speed
and ease of embeddability (new word, I know), then Python is the best there
is.
Sean Middleditch
----- Original Message -----
From: Nathan Hurst <njh@hawthorn.csse.monash.edu.au>
To: Pablo De Napoli <pdenapo@mate.dm.uba.ar>
Cc: <gnome-devel-list@gnome.org>
Sent: Thursday, May 04, 2000 10:31 PM
Subject: Re: how can I add an scripting language to my application ?
>
> On Thu, 4 May 2000, Pablo De Napoli wrote:
>
> > Hi!
> >
> > I want to add an scripting language to an application (actually I want
to
> > add an scripting language to Code Commander). How may I do this ?
>
> To run a python script from within a C program you can use:
> {
> PyInitialize();
>
> PyRun_SimpleString("print 2L**50, \"bytes = 1 petabyte\"");
> }
>
> The document /usr/doc/python*/Doc/ext.tex explains all of this.
>
> To run a script in perl read the perlguts manpage.
>
>
> njh
>
>
> _______________________________________________
> 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]