Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: When to Use Object Oriented approach in Perl? (gah)

by davido (Cardinal)
on Aug 01, 2014 at 14:54 UTC ( [id://1095923]=note: print w/replies, xml ) Need Help??


in reply to Re^2: When to Use Object Oriented approach in Perl? (gah)
in thread When to Use Object Oriented approach in Perl? (RFC)

One nit to pick: C isn't faster than Perl because Perl is written in C. It's faster because it isn't doing much behind the scenes compared to what Perl is doing. Once you layer in a significant portion of what Perl would be doing, a C program would begin to perform similar to Perl, or worse since its code hasn't undergone the years of scrutiny Perl has.

One reason that XS is useful is that it allows the programmer to decide what things that Perl would normally do are unnecessary in a particular xsub, thus only paying for what is needed and used.


Dave

Replies are listed 'Best First'.
Re^4: When to Use Object Oriented approach in Perl? (gah)
by thanos1983 (Parson) on Aug 01, 2014 at 17:50 UTC

    Hello Dave,

    Nice short and valuable explanation, I did not think about that.

    Thank you for your time and effort clarifying these details.

    Seeking for Perl wisdom...on the process...not there...yet!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-03-19 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found