I thought about perl but I have to relearn perl every time I need to use it - its the only languae I use regularly that I need loads of reference books for - as a contrast whilst the C programming I am doing for PD is the first C /C++ I have done for nearly 6 years I can still remember a lot of the functions and libraries.
mark
-----Original Message----- From: Frank Barknecht [mailto:barknech@ph-cip.uni-koeln.de] Sent: 25 February 2002 13:04 To: 'Pd-List' Subject: Re: [PD] Scripting
mark hat gesagt: // mark wrote:
I gave some serious thought to the scripting thing last
night. I am thinking
of building a "python" external that would allow simple
scripts - you
would make make an object:
py scriptname
which would take a python class that is similar in
structure to the external
"class" structure used by externals currently - obviously a
bit more simple.
No DSP of course (can't imagine it would be vaguely fast enough). Python is a good fit with PD I belive - it does good list type manipulation (in fact it will be easy to write a set of list manipulation externals which I have been wanting for a
while now) and
its got some quite nifty features. Oh and I want to learn it which strikes me as a good a reason as any ;-)
I like the idea very much. Larry Troxler started something similar with his PD-Scheme external, maybe you can get some inspiration here (http://www.westnet.com/~lt/pd/). Python is not that far away from Scheme in some regards. I would probably prefer Python as a scripting language, as I know this a lot better than I know Scheme. I know Perl even better, but I am always happy *not* having to write in Perl anymore ;)
bye,
__ __
Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______ / __// __ /__/ __// // __ \ / / __ \ ___\ / / / ____/ / / / // ____// /\ \
___\____ \ /_/ /_____/ /_/ /_//_____// / \
\_____\_____
/_/ \_\
hi, mark hat gesagt: // mark wrote:
I thought about perl but I have to relearn perl every time I need to use it - its the only languae I use regularly that I need loads of reference books for
Don't go Perl, go Python! This is of course flamewar stuff (and has already provoked one on csound-list), but I can see a simple reason, why Perl is not appropriate as a PD scripting language: It uses the $ to declare $variables! Combine that with PD's own use of the dollar symbol and I see a big mess coming.
__ __
Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______
/ __// __ /__/ __// // __ \ / / __ \ ___\
/ / / ____/ / / / // ____// /\ \ ___\____ \
/_/ /_____/ /_/ /_//_____// / \ \_____\_____
/_/ _\
|> I thought about perl but I have to relearn perl every time I need to |> use it - its the only languae I use regularly that I need loads of |> reference books for | |Don't go Perl, go Python! This is of course flamewar stuff (and has |already provoked one on csound-list), but I can see a simple reason, why |Perl is not appropriate as a PD scripting language: It uses the $ to |declare $variables! Combine that with PD's own use of the dollar symbol |and I see a big mess coming.
the optimum would be something like a generic "script" object with the first creation argument specifying the interpreter or autodetection from file suffix whatever.
you could start off with .py but later or somebody else extend to perl, php4, bash, java-ecmascript, funge98, &c &c ?
-- X D v · o r 6