Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: The Exponentiation of (not-so) Large Primes

by titivillus (Beadle)
on Jun 29, 2006 at 04:55 UTC ( #558216=note: print w/replies, xml ) Need Help??

in reply to Re: The Exponentiation of (not-so) Large Primes
in thread The Exponentiation of (not-so) Large Primes

Yes, this is years late, but I'm just back from YAPC::NA and back in a Perl state of mind. I started out saying that I wanted a pure Perl implementation. The description you link to says.
It uses dc, an arbritrary precision arithmetic package that ships with most UNIX systems.
That isn't quite what I was hoping for. And, y'know? Those two-line implementations of things are exactly why people have a bad view of Perl. Yes, it's wonderful and cool that such a small implementation exists. But I was hoping to put this together for a presentation for my LUG, and having code that someone who isn't a full-on Perl guru can look at and understand is a good thing when you're trying to teach it. I don't want to be harsh -- you were trying to help -- and I do suck for abandoning this thought for four years. It's just that the cool 2-line implementation that calls dc isn't what I need.

.sig goes here

  • Comment on Re^2: The Exponentiation of (not-so) Large Primes

Replies are listed 'Best First'.
Re^3: The Exponentiation of (not-so) Large Primes
by hsmyers (Canon) on Jun 29, 2006 at 15:25 UTC
    You are 100% correct! That said I would recommend the following for your presentation; go ahead and show the Perl code, explain your criticisms and then demonstrate a workable version either in Perl or (my choice) Mathematica. Perhaps a headline such as "When go answers go bad" or some such.


    "Never try to teach a pig to wastes your time and it annoys the pig."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://558216]
[shmem]: karlgoethebier: here abouts people are sitting in big tents, gulp beer and ingest badly scorched chicken and sausages while (not) listening to afwul musik
[shmem]: *awful
[choroba]: panem et circenses
[karlgoethebier]: shmem: Yes. I didn't go to the firefighters party just 500 yards from my home this year...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-05-25 12:47 GMT
Find Nodes?
    Voting Booth?