Re: [perl6/specs] 5277fe: Add expmod and is-prime as built-ins in Int

2012-09-24 Thread Richard Nuttall
A quick search throws up http://primes.utm.edu/prove/prove2_3.html Which says that for/n/< 341,550,071,728,321 it is enough to test 2, 3, 5, 7, 11, 13 and 17 to be definitive (and fewer specific tries for smaller n) That also verifies the 75/25 figures mentioned below. So, depending on the i

Re: DBI v2 - The Plan and How You Can Help

2005-07-04 Thread Richard Nuttall
- support for automatically pulling database DSN information from a ~/.dbi (or similar) file. This is constantly re-invented poorly. Let's just do a connect by logical application name and let the SysAdmins sort out which DB that connects to, in a standard way. This reminds me o

Re: Yadda yadda yadda some more (2)

2004-05-14 Thread Richard Nuttall
1-Apr comes in. Create a template like the above and then DWIM::AI::Yadda will join the dots and create the program for you ! R. -- Richard Nuttall Nuttall Consulting 01353 649878 www.nuttall.uk.net

Re: Default program

2004-04-01 Thread Richard Nuttall
and line without any arguments, it seems obvious to me that they are intending to begin development of a script. On the DWIM principle, shouldn't Perl then just autoload the DWIM::AI module and provide as output the script that they are intending to write ? R. -- Richard Nuttall Nuttal

Re: Exegesis 7: Fill Justification

2004-03-01 Thread Richard Nuttall
t; and "fill leftmost gaps" on alternate lines. This produces more balanced looking columns, so they don't all look heavier on the left. -- Richard Nuttall

Re: run-once code

2004-01-14 Thread Richard Nuttall
= sub{}; }; Then call &$test() as needed; R. -- Richard Nuttall Nuttall Consulting www.nuttall.uk.net

Re: Perl6 Operator List, TAKE 4

2002-10-28 Thread Richard Nuttall
conversion between bases, and/or strings, rather than using pack/unpack/sprintf, etc. ? my $macaddr = '00022D3F7659'; my $hex = 16:$macaddr; How about $a = 'DEADBEEF'; $hexres = 16:$a + 16:FEED; print ~16:$hexres; does that give me "DEAEBDDC" ? R. -- Richard Nuttall

Re: Indeterminate math

2002-10-15 Thread Richard Nuttall
; >The problem with returning undef is that undef numifies to zero. > Why can't it return "undef but +Inf", or "undef but NaN" for 0/0, which would then cause a warning/error/nothing, as required by pragma, following the "0 but true" that has been discussed previ

RE: Apoc 5 questions/comments

2002-06-09 Thread Richard Nuttall
> I have no doubt that, once Perl 6 is available, we'll see a > rash of modules released in the Grammar:: namespace. > Including Grammar::Romana, > Grammar::Klingon, Grammar::Buffy, Grammer::Mispelt, and others... :-) Grammar::Python, Grammar::Ruby, Grammar::PHP ? R.

RE: dor (was RE: General Feelings on Apoc 3 )

2001-10-10 Thread Richard Nuttall
> Bart Lateur: > # On Thu, 4 Oct 2001 03:22:55 -0400, Michael G Schwern wrote: > # > # >Binary // > # > > # >The analogy to || is probably a bit too clever. My first reaction > # >was it's some sort of weird division operator. But it's > servicable. > # > # I think it's very cute. I think of it

Hyper concat ^_ ?

2001-10-05 Thread Richard Nuttall
Will Hyper operators work on strings as well ? e.g. ('pic1','pic2','pic3') ^_ ('.jpg') or even my @images = qw( pic1 pic2 pic3) ^_ ('.jpg'); R. -- Richard Nuttall