Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: What defines "Pure Perl"?

by Corion (Patriarch)
on Sep 08, 2008 at 13:48 UTC ( [id://709758]=note: print w/replies, xml ) Need Help??


in reply to What defines "Pure Perl"?

"Pure Perl" refers to not using the C-extensions ("XS") and thus, not requiring a working C compiler setup. This is often preferred because in many environments, you don't have the luxury of having a C compiler that works with the version of Perl supplied by your vendor. Having a pure Perl module also makes it easy to include the code in your program by copying the source code of the module into your program directly.

Replies are listed 'Best First'.
Re^2: What defines "Pure Perl"?
by mpeg4codec (Pilgrim) on Sep 08, 2008 at 18:51 UTC
    An example of such a platform is Solaris, since Sun wants big bucks for the native compiler. While there are hacks for using gcc to build XS modules, they are just that: hacks. Pure perl is vastly preferred.
        At least the last time I compared them, gcc produced code that was quite noticeably slower. Now this doesn't matter if you're writing your code in perl (if speed were all important you'd use C or FORTRAN or some related evil), but it does matter for some XS modules.
      gcc works well (and is even shipped) with Solaris 9 and later. Before that gcc worked well for xs, but you needed to get it from sunfreeware or some other packager. -Waswas


      -Waswas

      Actually I believe that the Sun Forté compiler is now available for free for Solaris 10, but I haven't looked closely.

      $35.00 doesn't strike me as "big bucks"

Re^2: What defines "Pure Perl"?
by lodin (Hermit) on Sep 08, 2008 at 20:35 UTC

    I believe it often also includes not using any third-party software (e.g. sendmail) not explicitly part of the scope of the module.

    lodin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://709758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found