Indeterminate forms for the Num type.

2006-01-17 Thread Audrey Tang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Assuming "num" uses the underlying floating point semantic (which may turn 0/0 into NaN without raising exception), what should the default "Num" do on these forms? 0/0 0*Inf Inf/Inf Inf-Inf 0**0 Inf**0

Re: Indeterminate forms for the Num type.

2006-01-17 Thread Jonathan Lang
Audrey Tang wrote: > Assuming "num" uses the underlying floating point semantic (which may > turn 0/0 into NaN without raising exception), what should the default > "Num" do on these forms? > > 0/0 > 0*Inf > Inf/Inf > Inf-Inf > 0**0 > Inf**0 >

split on empty string

2006-01-17 Thread Gaal Yahas
While cleaning up tests for release: "".split(':')=> ()# Perl 5 ("",) # pugs Which is correct? It doesn's seem to be specced yet. -- Gaal Yahas <[EMAIL PROTECTED]> http://gaal.livejournal.com/

Re: how to detect that we're running under CPAN::Testers?

2006-01-17 Thread Barbie
On Tue, Jan 17, 2006 at 06:06:50AM +1100, Adam Kennedy wrote: > > At the moment all our output is structured XML files, so at some point I > need to write an XSL to translate it back down into something CPAN > Testers can deal with, and I can add whatever you want me to at that time. > > Do you

Re: split on empty string

2006-01-17 Thread Mark Reed
On 2006-01-17 12:24 PM, "Gaal Yahas" <[EMAIL PROTECTED]> wrote: > While cleaning up tests for release: > > "".split(':')=> > >()# Perl 5 >("",) # pugs > > Which is correct? It doesn's seem to be specced yet. I would prefer the current pugs behavior;

Re: Indeterminate forms for the Num type.

2006-01-17 Thread Doug McNutt
Physicist here. One who believes -2**2 is negative. At 23:26 +0800 1/17/06, Audrey Tang wrote: >Several options: >- - Use whatever the underlying "num" semantics available That's likely to be in hardware. It might even be hard to detect without looking at the NaN returned and that would be a was

Re: Indeterminate forms for the Num type.

2006-01-17 Thread Audrey Tang
Doug McNutt wrote: >> - - Specify them to return some definite value. > Only on a machine that doesn't do it in hardware or in some special perl > function that's unlikely. This question arises as different platform answer things differently for the native calculation of eg. 1**Inf. > >> At this

Re: Indeterminate forms for the Num type.

2006-01-17 Thread Rob Kinyon
On 1/17/06, Audrey Tang <[EMAIL PROTECTED]> wrote: > But putter on #perl6 reports "1" on his amd64. I'd be happy we spec it > has to have to return 1 always for boxed Num types, even though it means > additional cycles for boxed numeric types. Isn't the point of boxing to provide a hardware-indep

Re: [perl #38217] r11124: Cygwin build fails

2006-01-17 Thread Greg Bacon
I'm still seeing a link failure with r11221. A confusing bit: I stopped the stripping of libparrot.dll, and nm seems to see the symbols that the linker's complaining about: [...] Compiling with: xx.c gcc -I./include -pipe -I/usr/local/include -g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wi

Re: Indeterminate forms for the Num type.

2006-01-17 Thread Luke Palmer
On 1/17/06, Audrey Tang <[EMAIL PROTECTED]> wrote: > I personally like having 0/0 be NaN and 1/0 be Inf (as in JavaScript), > but all of Python/Perl/Ruby/Scheme/OCaml throws exceptions for them... I believe we've been through this before. We go with a standard, probably IEEE, horridly mathematica

Re: [perl #38217] r11124: Cygwin build fails

2006-01-17 Thread Larry Wall
On Tue, Jan 17, 2006 at 08:28:37AM -0600, Greg Bacon wrote: : I'm still seeing a link failure with r11221. : : A confusing bit: I stopped the stripping of libparrot.dll, and nm : seems to see the symbols that the linker's complaining about: : : [...] : Compiling with: : xx.c : gcc -I./include -pi

[TODO] tools/dev/genrpt.pl is obsolete

2006-01-17 Thread Bernhard Schmalhofer
It looks like the script 'tools/dev/genrpt.pl' does basically the same as 'parrotbug'. In order to decrease the level of confusion I propose to remove genrpt.pl and the associated make targets 'ok', 'okfile', 'nok', 'nokfile'. CU, Bernhard

[perl #38235] [TODO] Rename (dyn)?classes to (dyn)?pmc

2006-01-17 Thread Bernhard Schmalhofer via RT
> [jonathan - Sa 14. Jan 2006, 09:57:37]: > > I propose to rename 'src/classes' to 'src/pmc' as IMHO it makes > > more sene. 't/pmc' is already named 'pmc'. > > > Yes, and for consistency please also rename dynclasses to dynpmc and the > t/dynclass to t/dynpmc. The first step, renaming 'src/dync

Re: [PATCH] struct Parrot_Context doesn't need a 'prev' field.

2006-01-17 Thread Matt Fowles
Bob~ On 1/15/06, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > On Jan 14, 2006, at 21:28, Bob Rogers wrote: > > >I had thought this field was being used, but it turns out to be > > irrelevant. I offer this patch so that no one else is fooled (and > > because I had to test it anyway to prove

punie.g observation

2006-01-17 Thread Chris Dolan
Allison et al., I was looking at languages/punie/lib/punie.g in the current SVN head and got confused. I see: rule gprint { (print) \s* } and rule expr{ | } Doesn't that imply that "print print print print 1;" is a valid Punie program? Is that intentional? It seems to me that

Re: punie.g observation

2006-01-17 Thread Andrew Rodland
On Tuesday 17 January 2006 16:50, Chris Dolan wrote: > Allison et al., > > I was looking at languages/punie/lib/punie.g in the current SVN head > and got confused. I see: >rule gprint { (print) \s* } > and >rule expr{ | } > > Doesn't that imply that "print print print print 1;" is

Re: Indeterminate forms for the Num type.

2006-01-17 Thread Audrey Tang
Luke Palmer wrote: > I believe we've been through this before. We go with a standard, > probably IEEE, horridly mathematically unappealing though it may be. > It will be easier to implement and it will be more predictable, both > because most other language follow standards, too. "The good thing

Re: Indeterminate forms for the Num type.

2006-01-17 Thread Audrey Tang
Audrey Tang wrote: > That seems to follow from the standard (ruby, ocaml, mzscheme currently > does that), but some may also argue for NaN bothways (ghc, js) or an > exception bothways (perl5, python). Er, wait, ghc also raises an exception for (div 0 0), because it distinguishes integer (div) wit

Re: punie.g observation

2006-01-17 Thread chromatic
On Tuesday 17 January 2006 15:01, Andrew Rodland wrote: > "print print print print 1;" is certainly a valid Perl 5 program; it > prints a 1 followed by 3 other things (which are defined to be true, and > which happen to also be the number 1). Nit: print doesn't *always* return a true value. It'

Re: how to detect that we're running under CPAN::Testers?

2006-01-17 Thread Adam Kennedy
OK, I'll make sure there's some level of tagging about that in the reports. Adam K Barbie wrote: On Tue, Jan 17, 2006 at 06:06:50AM +1100, Adam Kennedy wrote: At the moment all our output is structured XML files, so at some point I need to write an XSL to translate it back down into something

Re: punie.g observation

2006-01-17 Thread Allison Randal
On Jan 17, 2006, at 18:01, Andrew Rodland wrote: Doesn't that imply that "print print print print 1;" is a valid Punie program? Is that intentional? It seems to me that the gprint rule should instead contain "cexpr": rule gprint { (print) \s* } "print print print print 1;" is certainly

Re: [PATCH] struct Parrot_Context doesn't need a 'prev' field.

2006-01-17 Thread Bob Rogers
From: Matt Fowles <[EMAIL PROTECTED]> Date: Tue, 17 Jan 2006 16:29:55 -0500 Bob~ On 1/15/06, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > On Jan 14, 2006, at 21:28, Bob Rogers wrote: > > >I had thought this field was being used, but it turns out to be > > irreleva

Re: Indeterminate forms for the Num type.

2006-01-17 Thread Darren Duncan
At 9:50 AM +0800 1/18/06, Audrey Tang wrote: However, I think one of P6's idea is that the user should not have to care between 0 and 0.0's behaviours, so maybe it makes sense to do the same thing (be it NaN or exception) both ways. I'm not sure that IEEE 754/854 still applies if we want to merg

[perl #38262] get external modules out of the parrot repo

2006-01-17 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #38262] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=38262 > perl modules necessary for parrot configuration, development, and testing have been either

[perl #38263] Re: [PATCH] struct Parrot_Context doesn't need a 'prev' field.

2006-01-17 Thread via RT
# New Ticket Created by Bob Rogers # Please include the string: [perl #38263] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=38263 > From: Matt Fowles <[EMAIL PROTECTED]> Date: Tue, 17 Jan 2006 16:29:55 -0500 Bob

[perl #38264] Bug in compute_dominance_frontiers?

2006-01-17 Thread via RT
# New Ticket Created by Bob Rogers # Please include the string: [perl #38264] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=38264 > The attached code compiles to byte code OK in r11235, until you comment out the push_e

[perl #38261] Re: [PATCH] struct Parrot_Context doesn't need a 'prev' field.

2006-01-17 Thread via RT
# New Ticket Created by Matt Fowles # Please include the string: [perl #38261] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=38261 > Bob~ On 1/15/06, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > On Jan 14, 2006, at 21:

[perl #38260] [BUG] Parrot::Config contains invalid info

2006-01-17 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #38260] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=38260 > attached is my lib/Parrot/Config.pm file generated from r11223, on windows using msvc. ins

Re: split on empty string

2006-01-17 Thread Jonathan Scott Duff
On Tue, Jan 17, 2006 at 12:35:57PM -0500, Mark Reed wrote: > On 2006-01-17 12:24 PM, "Gaal Yahas" <[EMAIL PROTECTED]> wrote: > > > While cleaning up tests for release: > > > > "".split(':')=> > > > >()# Perl 5 > >("",) # pugs > > > > Which is correct?