Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Numerically generate the perl sequence 1, 11, 111, ....

by blazar (Canon)
on Oct 14, 2008 at 21:56 UTC ( #717097=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Numerically generate the perl sequence 1, 11, 111, ....
in thread Generate the perl sequence 1, 11, 111, ....

perhaps the perl6 source could carry the OEIS database. ;-)

I personally believe that (the smiley should suggest me that you're joking, but in case there's even the slightest attempt at being serious about this, I should point out that) a major problem with the OEIS is that it's continuously updated. So this pretty much already rules it out. Also, only a limited number of terms is recorded per sequence in the database, even taking into account ones that can be easily computed to a large extent: thus each one should be accompanied with suitable generating code too, if such code exists!

--
If you can't understand the incipit, then please check the IPB Campaign.


Comment on Re^4: Numerically generate the perl sequence 1, 11, 111, ....
Download Code
Re^5: Numerically generate the perl sequence 1, 11, 111, ....
by JavaFan (Canon) on Oct 14, 2008 at 23:46 UTC
    Well, yes, I was joking. But to address your problems:
    • It being updated isn't a problem. The Unicode database gets updated as well. Just decide at some point in time before you make a release which version of the OEIS you're going to include. That's what we've been doing with the Unicode database as well. The version included in 5.10 is later than the one in 5.8.x, and the one that comes with blead perl is a later version than what's in 5.10. And perl itself gets continuously updated as well. But that doesn't stop many vendors from including perl in their distros.
    • As for your second point, many entries in the OEIS have generating formula; sometimes recursive, sometimes closed.
    Personally, I don't think the OEIS should be included just to make ".. *" smarter - but for other reasons than you point out.

        I personally believe that it's by far too verbose, losing the original attempt at conciseness, but the latter could be recovered by means of of suitable (pseudo? unofficial?r) protocol/scheme (or whatever it's really called like...) so I think that the Perl 6 syntax should really be:

        1,-3,-8...oeis://A046970
        How's that for self-documenting code?

        --
        If you can't understand the incipit, then please check the IPB Campaign.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2014-10-30 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls