$epsilon = 1.0e-6 feels too big for Rat()

2015-12-31 Thread Dan Kogai
Folks, I am only beginning to unwrap the christmas present but I immediately fell in love with the perl6 arithmetic system. Not is it rich but it is also fast. % perl6 > 340282366920938463463374607431768211297.is-prime True > 340282366920938460843936948965011886881.is-prime False And type

c99 hexadecimal floating point support?

2015-12-30 Thread Dan Kogai
Forks, Happy holidays with v6.c https://perl6advent.wordpress.com/2015/12/25/christmas-is-here/ I am blushed to find my name is in the list, both in English and 漢字. I am only beginning to unwrap the present and have fun. Anyway, is there a plan to support hexadecimal floating point support?

Re: base-4 literals

2010-11-16 Thread Dan Kogai
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 17 2010, at 05:16 , Larry Wall wrote: On Tue, Nov 16, 2010 at 12:11:01PM -0800, Darren Duncan wrote: : Carl Mäsak wrote: : Darren (): : While I haven't seen any prior art on this, I'm thinking that it would be : nice for a sense of

The exact value of infinity [Was: Re: sprintf and snake envy]

2006-07-04 Thread Dan Kogai
On Jul 05, 2006, at 01:25 , Larry Wall wrote: What made me laugh is that Pugs knows the exact value of infinity: pugs my $a = {$^lang has $^c.as('%03d') quote types.}(:c (Inf),:langPerl) Perl has 1797693134862315907729305190789024733617976978942306572734300811577326

placeholder vs. lexical variables

2006-04-11 Thread Dan Kogai
Folks, I found this when I was playing w/ pugs. pugs { $^x }.(42) 42 pugs { my $z; $^x }.(42) *** Undeclared variable: $^x at interactive line 1, column 10-14 So far as I see s06, there's nothing wrong w/ the statement above. I just want to make sure this is not a perl6 feature. I

slurp, quine and context sensitivity

2006-04-08 Thread Dan Kogai
Folks, This is a poetic quine (or quine-maker) in perl5. open myself, $0 and print myself; The same thing in perl6 would be: my $self = open $*PROGRAM_NAME; for =$self { say } or my $self = open $*PROGRAM_NAME; say for =$self; or my $self = slurp $*PROGRAM_NAME; print $self; or

Re: slurp, quine and context sensitivity

2006-04-08 Thread Dan Kogai
On Apr 08, 2006, at 18:45 , Damian Conway wrote: Dan Kogai wrote: With that understood, I would welcome if we have a version of slurp () which unconditionally returns a scalar. That'd be: ~slurp $file; :-) Very clever. But still not good enough when it comes to autoboxing

Re: slurp, quine and context sensitivity

2006-04-08 Thread Dan Kogai
On Apr 08, 2006, at 19:34 , Dan Kogai wrote: does not. The problem of ~stringify, ?boolify, and +numify is that they are infix operators so it goes the opposite direction. s/infix/prefix/ Sorry. Dan the Perl6 Golfer on the Bunker

How do you use a built-in class as a base class?

2006-04-08 Thread Dan Kogai
Folks, With Perl6, we have singleton methods as $me.meta.add_method(me = sub{ ... }); But is there a way to, say, add methods within lexical scope? Take URI on Perl 5. URI behaves both as an object my $uri = URI-new(http://dev.perl.org/perl6/;); print $uri-path; # /perl6/ But it also

Bugs Manifesto Released!

2006-03-31 Thread Dan Kogai
[April 1st, 2006, 00:00 GMT+9] Larry Wall and Audrey Tang jointly announced that Parrot, Pugs, and all language-related projects be dysintegrated to Bugs. Bugs have ruled this planet for half a billion years and they shall do so for for years to come. Beats heck out of avians, mammals,

Re: Renaming grep

2005-11-19 Thread Dan Kogai
On Nov 19, 2005, at 13:08 , Chip Salzenberg wrote: On Sat, Nov 19, 2005 at 05:46:51AM +0200, Ilmari Vacklin wrote: I don't much like it - it looks like a mistyped 'shift'. Is 'filter' too long? I usually avoid P6L discussions, but: GNU Make has filter and filter-out, and I've always found

Re: Perl 6 fears

2005-10-24 Thread Dan Kogai
Here is my part. On Oct 24, 2005, at 07:20 , Juerd wrote: I've created pugs/docs/quickref/fears, a list of Perl 6 fears. Feel free to add your own, or fears you heard about! [snip] : FEAR: Perl 6 has too many operators! FEAR: Perl 6 has so many operators that it runs out of Unicode

Avoid the Yen Sign [Was: Re: new sigil]

2005-10-23 Thread Dan Kogai
Maeda-san and the list members, Thank you for raising this issue and sorry for not raising this myself. On Oct 22, 2005, at 19:42 , Kaoru Maeda wrote: If we find a lot of yen sign as zip-operator in the standard library, we have a big question: Give up either Perl6 or Windows. Which do we

FYI: Lambda Calculus on Perl 6

2005-09-04 Thread Dan Kogai
Folks, I recently needed to write a series of codes on lambda calculus in perl. As MJD has shown Perl 5 can handle lambda calculus but I am beginning to get tired of whole bunch of 'my $x = shift' needed. our $ZERO = sub { my $f = shift; sub { my $x = shift; $x }};

Re: Time::Local

2005-08-18 Thread Dan Kogai
On Aug 17, 2005, at 00:29 , Larry Wall wrote: which gives us these possibilities. 大務big / (perform) duty Perl6 to people here. 太夢fat, big / dream Perl6 for the rest of us. 対夢oppose, against, pair / dream Pugs? 待夢wait / dream Perl6 to Oreilly ?

Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Dan Kogai
On Tuesday, Nov 5, 2002, at 04:58 Asia/Tokyo, Larry Wall wrote: (B It would be really funny to use cent $B!q(B, pound $B!r(B, or yen (J\(B as a sigil, (B though... (B (BWhich 'yen' ? I believe you already know \ (U+005c - REVERSE SOLIDUS) (Bis prited as a yen figure in most of

Re: perl6 operator precedence table

2002-10-12 Thread Dan Kogai
On Friday, Oct 11, 2002, at 23:21 Asia/Tokyo, Aaron Crane wrote: Vaguely heretical, I know, but I'd be inclined to do something like this: Perl 5 Proposed Perl 6 $x $y $x $y $x || $y $x | $y $x $ybitand($x, $y) $x | $ybitor($x, $y) Objection, your honor.

Re: ICU and Parrot

2002-05-31 Thread Dan Kogai
On Saturday, June 1, 2002, at 12:34 AM, Autrijus Tang wrote: On Fri, May 31, 2002 at 06:18:55AM +0900, Dan Kogai wrote: As a matter of fact GB18030 is ALREADY supported via Encode::HanExtra by Autrijus Tang. The only reason GB18030 was not included in Encode main is sheer size of the map

Re: ICU and Parrot

2002-05-30 Thread Dan Kogai
It's a good timing to make my first post to this mailing list. On Thursday, May 30, 2002, at 09:04 PM, Bryan C. Warnock wrote: On Tue, 2002-05-28 at 17:42, George Rhoten wrote: It is true that parts of ICU uses C++. Some parts of ICU are written in C++ with a C wrapper. Some other parts

Re: ICU and Parrot

2002-05-30 Thread Dan Kogai
On Friday, May 31, 2002, at 06:06 AM, George Rhoten wrote: Hopefully you take the implicit information in the UCM files and put that into encode implementation too. For instance, in gb18030 there are whole ranges of Unicode mappings that aren't in the UCM file, but they are in the