Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: Perl oddities

by Anonymous Monk
on Mar 02, 2005 at 15:04 UTC ( #435852=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Perl oddities
in thread Perl oddities

You can only explain that with "Huffman" if the save space of 'tan' actually allows you to do something else. Besides, for your reasoning to really work, you'd have to sacrifice one of sin or cos. The analogue would really be having 'splice', 'push' and 'unshift', but not 'pop' or 'shift'. ;-)


Comment on Re^5: Perl oddities
Re^6: Perl oddities
by herveus (Parson) on Mar 02, 2005 at 15:09 UTC
    Howdy!

    To be more clear, the utility of push, et al. justifies their existence. I claim (without specific evidence) that the trig functions are, in general, used much less frequently, thus making their expansion a less productive use of energy.

    yours,
    Michael
      Whose energy? It's not that tan (and acos, and asin, and atan) isn't provided by the C math library.

      Guess what, a corner where C is more programmer friendly than Perl... Now, that's an oddity! ;-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-10-25 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls