gstorme opened this issue on Oct 04, 2002 ยท 4 posts
gstorme posted Fri, 04 October 2002 at 10:07 AM
As you all are aware, Poser5 now has Python as a way to add programming to it.
In my humble opinion, I would like it a lot more if there would be a Perl interface too because I think that the pure objected oriented nature of Python is making this language just too out-of-grasp for the average Poser user that also can program a little.
Perl can be used in quite a number of programming styles (not just OO) and might be more appealing to a larger community.
How do you feel about this?
#!/usr/bin/perl
use Poser;
$p = Poser->new("MyNewPoser.pz3");
...
$p->close;
====
gstorme posted Fri, 04 October 2002 at 10:55 AM
Or just the plain simple form: ==== #!/usr/bin/perl use Poser; $p = openPoser("MyNewPoser.pz3"); ... closePoser( $p); ====
ockham posted Fri, 04 October 2002 at 11:31 AM
I don't know what influenced CL's decision; maybe they had somebody who knew Python and nobody who knew Perl. But one -possible- advantage is that Python seems to be a little more number-oriented, while Perl is more string-oriented. There are definitely more special libraries available for Python in numerical and graphical areas. (Try googling for "Perl numerical" and you'll find mostly Python numerical pages that happen to mention Perl somewhere on the page!)
gstorme posted Fri, 04 October 2002 at 12:37 PM
That is an argument why CL might have preferred to implement the PoserPython calls in Python. It is up to them and actually none of my business how they do the implementation of these calls. My argument is: why not provide a Perl interface, as well as a Python interface? My experience is that Python programmers are rare (well at least from where I am looking :-) and usually very experienced in the art of programming. Perl programmers come in kinds, like beginners to very experienced programmers, old-style scripting do-this-step-and-then-another to more recent class-and-module style. I am not asking CL to put PoserPython aside. I am merely suggesting to make a Perl interface for the already existing PoserPython.