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

Re^5: getting rid of costly special features

by BrowserUk (Pope)
on Feb 18, 2013 at 11:42 UTC ( #1019328=note: print w/ replies, xml ) Need Help??


in reply to Re^4: getting rid of costly special features
in thread getting rid of costly special features

Essentially what you are arguing is that we should change the Perl5 language and interpreter so that you can replace it with another interpreter written in Javascript. Which is ....!

Besides which, in order to preserve Perl5's semantics, you would have to have a scalar type that could represent integers, floats, strings and references. Ie. You would have to box your ints.

Here you are saying that to do so would make things too slow; and yet it is only a few months since you were advocating autoboxing everything in Perl for the sake of some OO ideology, and hang the (enormous) performance hit.

There's nothing like consistency. And that's nothing like it :)


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^5: getting rid of costly special features
Re^6: getting rid of costly special features
by LanX (Canon) on Feb 18, 2013 at 12:57 UTC
    nonsense ... Did the possibility to insert no autovivification change the language?

      Man, you really don;t think things through do you.

      A configurable pragma won't speed numerical increment up, it'll slow it down. It's just one extra test that will need to be performed every time.

      And it won't help a JS port, unless the JS port will only run code that disables all the things that come from having transparent type conversion.

      That includes things like 2**32 (or 2**64) + 1 becoming an NV; and 0+'12' doing the right thing. And at that point; it ain't Perl.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        > Man, you really don;t think things through do you.

        contrary to you, I do a lot.

        > A configurable pragma won't speed numerical increment up, it'll slow it down

        It already tests if the scalar is an integer or string, only in the rarely used latter case you need to check the flag

        > JS port will only run code that disables all the things that come from having transparent type conversion

        nope, the author is free to enable slow magic increment

        > 2**32 (or 2**64)

        you like contradicting yourself? if Perl can live with different integer sizes why shouldnt a JS port.

        Perl versions are never 100% compatible.

        > 0+'12' doing the right thing

        This case is easily covered.

        You never can resist the ad hominem, can you.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2014-07-26 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls