_dodger opened this issue on May 08, 2003 ยท 34 posts
_dodger posted Fri, 09 May 2003 at 1:16 AM
BYS, you said Java would be a batter thing to write a Perl module in. I'm open to any real suggestions, but you vehemently insisted that Java would be a better language for a Perl module. Perl is a language that's built around and dedicated to text munging. Sure, it's possible to use Inline::Java to include it, but that's absurd. Text munging is not a Java strength. It's a perl strength. Poser files are text files. Perl is OOP. Note the new method in this module:
sub new {
my $class = shift;
my $obj = {};
bless $obj, ref $class || $class;
return $obj;
}
This, in combination with the package declaration at the top of the module, mean that all the methods (the subroutines defined within the package namespace), are called from the object created and returned by the new() method. Maybe Perl has it, but I haven't come across it as a programmer for, once again, 15 years (is it sinking in yet that I'm no weekend coder? Will you bloody stop that. Stop takign the fact that I am not going to develop a PERL MODULE in JAVA personally. Yeesh. As a note -- you've specifically stated that you're not a perl programmer, you do not know perl, and you do not code perl. Therefore it's in no way surprising that you haven't seen the development runaround time in Perl. Working, full blown apps impress me plenty. Java apps impress me less, primarily because ther'es something wrong with the feel of the interface. As far as Perl SDKs, the GImP (essentially, the freware Photoshop) uses Perl as its scripting backend. More importantly, however, is the PDK available from Activestate. Yes, it's a full blown developer's kit capable of compiling both to full-blown standalone applications and to activeX controls, among other things. And yes, there's VisualPerl, a .NET extension. The MacPerl implementation of perl contains the ability to compile both standalone code and 'droplets' with an embedded, slimmed-down Perl interpreter. It should be noted that ActiveState is also the place that makes the Python Developer's Kit. They did Perl first. It's a real honest-to-god programming language. BTW, here are some objective or semi-objective comparisons: - http://www.flat222.org/mac/bench/