Re: Initial bignum pdd

2002-02-22 Thread Nicholas Clark
On Fri, Feb 22, 2002 at 03:08:58AM +, Alex Gough wrote: > =head2 Rounding > > The rounding part of the context defines the rounding algoritm to be > used, the following are provided (examples assume a precision of 5): > > =over 4 > > =item Round down This is rounding to zero, isn't it? >

Re: Initial bignum pdd

2002-02-22 Thread Alex Gough
On Fri, 22 Feb 2002, Nicholas Clark wrote: > On Fri, Feb 22, 2002 at 03:08:58AM +, Alex Gough wrote: > > =head2 Rounding > > > > The rounding part of the context defines the rounding algoritm to be > > used, the following are provided (examples assume a precision of 5): > > > > =over 4 > > >

Re: Initial bignum pdd

2002-02-22 Thread Simon Cozens
Nicholas Clark: > > =item Round half even > This is the standard financial way of rounding? Is it? That's something we need to get extremely right. -- "The Amiga is the only personal computer where you can run a multitasking operating system and get realtime performance, out of the box." -- Pe

Parrot is evil

2002-02-22 Thread Nicholas Clark
There's nothing particularly unusual about my x86 FreeBSD 4.5 box, except maybe that it's a little old. Attempting to build current parrot with -Os [gcc's optimise for space flag]: swap_pager: out of swap space swap_pager_getswapspace: failed pid 149 (screen-3.9.5), uid 0, was killed: out of swa

Re: Parrot is evil

2002-02-22 Thread Alex Gough
On Fri, 22 Feb 2002, Nicholas Clark wrote: > There's nothing particularly unusual about my x86 FreeBSD 4.5 box, except > maybe that it's a little old. > > It does compile and test perfectly on the defaults (no optimisation), and > on -O. It's just -Os that goes nasty. > > OK, so the machine only

Re: Possible new PMC

2002-02-22 Thread Bryan C. Warnock
On Friday 22 February 2002 01:01, Melvin Smith wrote: > I want to emulate a packed structure with Parrot in the way a compiler > would normally do this for a low level machine. > > It just needs traditional notation for setting fields by offset into > the struct. > > I sort of feel that PerlString

Re: Possible new PMC

2002-02-22 Thread Melvin Smith
At 08:16 AM 2/22/2002 -0500, Bryan C. Warnock wrote: >On Friday 22 February 2002 01:01, Melvin Smith wrote: > > I want to emulate a packed structure with Parrot in the way a compiler > > would normally do this for a low level machine. > > > > It just needs traditional notation for setting fields b

Re: Possible new PMC

2002-02-22 Thread Alex Gough
On Fri, 22 Feb 2002, Melvin Smith wrote: > Exactly. If we added this to String I think it would work. I don't know if that's exactly what you want. A string is a list of integers corresponding to character points and nothing more than that so probably doesn't form a good vehicle for a packed da

The Big switch() in the (Blue) Sky [was: Re: Parrot is evil]

2002-02-22 Thread Gregor N. Purdy
Nicholas -- Apologies in advance. I set out to make a short answer, but it turned out long. Since find_op() is related to other work I want to do/see done, discussion of it brings 'round those other thoughts, too. Liquefaction Guaranteed. [snip] > Hmm. I bet a coffee the problem is static int

Re: Initial bignum pdd

2002-02-22 Thread Alex Gough
On Fri, Feb 22, 2002 at 11:53:12AM +, Simon Cozens was heard to mutter: > Nicholas Clark: > > > =item Round half even > > This is the standard financial way of rounding? > > Is it? That's something we need to get extremely right. [ 2:12PM]parrot/types% perl bignum_atest.pl rounding.decTest |

Re: Possible new PMC

2002-02-22 Thread Melvin Smith
Ok, I thought there was some gotcha, knowing very little of the String pmc. I'll take this as a good enough reason to implement a generic "packed" pmc. It should be very simple, no fancy ops on it, just keyed interface and stringifications. -Melvin Smith IBM :: Atlanta Innovation Center [EMAIL

Re: RFC: new logical operator & more syntactic maple syrup

2002-02-22 Thread Aaron Sherman
On Thu, 2002-02-21 at 19:49, Larry Wall wrote: > David M. Lloyd writes: > : On Thu, 21 Feb 2002, Sam Vilain wrote: > : > : > I can't count the number of times I've had to do something like: > : > > : > if (defined $foo and $foo ne "bar") { } > : > > : > to avoid my program writing garbage to ST

Re: The Big switch() in the (Blue) Sky [was: Re: Parrot is evil]

2002-02-22 Thread Nicholas Clark
[not had time to read your whole message, about to go out] On Fri, Feb 22, 2002 at 09:00:29AM -0500, Gregor N. Purdy wrote: > Of course, thats all irrelevant if it doesn't compile. There are two > ways out, from my perspective: > > (1) Split core.ops into multiple oplibs, with the *really* cor

Re: RFC: new logical operator & more syntactic maple syrup

2002-02-22 Thread Larry Wall
Aaron Sherman writes: : On Thu, 2002-02-21 at 19:49, Larry Wall wrote: : > David M. Lloyd writes: : > : On Thu, 21 Feb 2002, Sam Vilain wrote: : > : : > : > I can't count the number of times I've had to do something like: : > : > : > : > if (defined $foo and $foo ne "bar") { } : > : > : > : > t

Pondering topicalizers and defaulting constructs

2002-02-22 Thread Allison Randal
Of course, this idea may have already been considered and rejected, in which case I'm just curious to learn the reasons. What would be the cost (performance, design or dwim) of making all the defaulting constructs pay attention to the current topicalizer in preference to $_? C is beautifully dwi

Re: The Big switch() in the (Blue) Sky [was: Re: Parrot is evil]

2002-02-22 Thread Nicholas Clark
On Fri, Feb 22, 2002 at 09:00:29AM -0500, Gregor N. Purdy wrote: > I'm not surprised that find_op() is causing some distress. The "best > way" is subject to interpretation, of course. TMTOWTDI all over again. > I chose this way because whenever I started talking about op lookup > by name, cries w

[PATCH]Macro bulletproofing

2002-02-22 Thread Brian Lee Ray
Fixes various warts in header files, such as: * macros -added parens to prevent problems with operator precedence -removed ; at end * removed SSIZE_MAX, since ssize_t is no longer used * removed some misinformation about NULL and function pointers from a comment. * added some more INLINE def

Re: [PATCH]Macro bulletproofing

2002-02-22 Thread Josh Wilmes
Good stuff! However, regarding the function pointer thing, i've got compilers (tcc and lcc) which disagree with you. Using NULL where a function pointer is expected is considered an error by tcc, and a mandatory warning by lcc. It is my understanding that conversion between data pointers and

cvsclean not really really clean?

2002-02-22 Thread Josh Wilmes
My tinderboxen are doing a make cvsclean. However, the tcc and lcc builds were still choking until i did a make clean. Would it hurt to add "clean" to the dependencies for "cvsclean"? I'm not sure exactly what it's doing that helped (something with the pmc generated .c files, i believe), but

[Patch] Tiny fix for building with old gcc

2002-02-22 Thread Josh Wilmes
I found a solaris 2.5 box with perl 5.004_04 and gcc 2.7.2. After installing a more modern perl, i got things to build, with a little tweaking. Turns out we were using a warning flag which doesn't exist on 2.7. Simple tweak though: [josh-010.patch] Index: Configure.pl