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

Hello tye,

You are right, a user would not been able to observe a difference even of a second. Some times I found my self spending too much time and effort trying to improve and compare my code with small percentages.

The reason that I am using Perl is that simplifies life so much and also there are so many modules available to choose upon that it makes all other programming languages look so poor.

So in conclusion is C and C++ faster? Yes, since Perl is written in C. But, taken in consideration the variety of modules available in Perl, I do not think so there is something to compare here.

Apart from timing and simple tasks is also the ability to solve something really fast and really simple. This is the beauty of Perl.

Thank you for your time and effort reading and replying to my question.

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

Replies are listed 'Best First'.
Re^3: When to Use Object Oriented approach in Perl? (gah)
by davido (Cardinal) on Aug 01, 2014 at 14:54 UTC

    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

      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!