Re: perl6 operator precedence table

2002-10-18 Thread Larry Wall
On Thu, 17 Oct 2002, David Wheeler wrote: : On Thursday, October 17, 2002, at 11:49 AM, Shapiro, Jonathan wrote: : : > Well, let's look at a few possibilities: : > : > 1) if( $vec bit| $mask bit& $mask2 ) : > : > 2) if( $vec b| $mask b& $mask2 ) : > : > 3) if( $vec |b $mask &b $mask2 )

Re: perl6 operator precedence table

2002-10-18 Thread Smylers
Larry Wall wrote: > $a .| $b # bitwise or > $a .! $b # bitwise xor On glancing down your list I initially misread the bar as an exclamation mark. I realize that this is a sample size of one, but certainly in this terminal font those only differ by a single pixel and it's possible that

Re: perl6 operator precedence table

2002-10-18 Thread Adam D. Lopresto
> : It's rare enough to need bitwise things in Perl 5 (outside golf). I'm > : hoping that it'll be even rarer in Perl 6, as better interfaces are > : designed for the things which at present require flipping individual > : bits. > > I almost wonder if it's wrong to waste ~ on it... > > That woul

Re: perl6 operator precedence table

2002-10-18 Thread Larry Wall
On Thu, 17 Oct 2002, Adam D. Lopresto wrote: : Then again, it always seemed odd that you combine two flags with | to turn them both : on). There could probably be a bitwise type that would overload superpositions : to do bitwise math instead... : : my Bitwise $a = 1; #woohoo, $a and $b are no lo

Re: perl6 operator precedence table

2002-10-18 Thread Larry Wall
On 16 Oct 2002, Smylers wrote: : Larry Wall wrote: : : > : $x ~& $y # bitwise and : > : $x ~| $y # bitwise or : > : : > : ~!$x # bitwise not : > : > I think I like that. Except now we'll get things like: : > : > @x ^~|= @y; : > : > Hmm...and then there's: : > : > $a ~? $

Re: perl6 operator precedence table

2002-10-18 Thread Jonathan Scott Duff
On Thu, Oct 17, 2002 at 02:57:22PM -0700, Larry Wall wrote: > I find those difficult to read--too wordy. At the moment I'm leaning towards > > $a .| $b # bitwise or > $a .& $b # bitwise and > $a .! $b # bitwise xor > .! $b # bitwise not > $a ! $b # logical xor > !

Re: perl6 operator precedence table

2002-10-18 Thread David Wheeler
On Thursday, October 17, 2002, at 11:49 AM, Shapiro, Jonathan wrote: Well, let's look at a few possibilities: 1) if( $vec bit| $mask bit& $mask2 ) 2) if( $vec b| $mask b& $mask2 ) 3) if( $vec |b $mask &b $mask2 ) 4) if( $vec |bit $mask &bit $mask2 ) I think I would have an easier tim

RE: perl6 operator precedence table

2002-10-18 Thread Shapiro, Jonathan
On Thu, 17 Oct 2002, John Williams wrote: > > > : It's rare enough to need bitwise things in Perl 5 (outside golf). I'm > > > : hoping that it'll be even rarer in Perl 6, as better interfaces are > > > : designed for the things which at present require flipping individual > > > : bits. > > > > >

Re: Indeterminate math

2002-10-18 Thread Michael G Schwern
On Tue, Oct 15, 2002 at 04:07:51PM -0700, [EMAIL PROTECTED] wrote: > [1]: This comes from a recent discussion on perlmonks where i attempted > to formally iron things out for people, since i have yet to see anywhere > thus far on the web where it was actually formalized. > (formalization being mark

RE: perl6 operator precedence table

2002-10-18 Thread Larry Wall
On Thu, 17 Oct 2002, Brent Dax wrote: : Shapiro, Jonathan: : # Well, let's look at a few possibilities: : # : # 1) if( $vec bit| $mask bit& $mask2 ) : # : # 2) if( $vec b| $mask b& $mask2 ) : # : # 3) if( $vec |b $mask &b $mask2 ) : # : # 4) if( $vec |bit $mask &bit $mask2 )

RE: perl6 operator precedence table

2002-10-18 Thread Brent Dax
Shapiro, Jonathan: # Well, let's look at a few possibilities: # # 1)if( $vec bit| $mask bit& $mask2 ) # # 2)if( $vec b| $mask b& $mask2 ) # # 3)if( $vec |b $mask &b $mask2 ) # # 4)if( $vec |bit $mask &bit $mask2 ) What's wrong with 'bitand' and 'bitor' (or e

Re: perl6 operator precedence table

2002-10-18 Thread John Williams
On Thu, 17 Oct 2002, Adam D. Lopresto wrote: > > : It's rare enough to need bitwise things in Perl 5 (outside golf). I'm > > : hoping that it'll be even rarer in Perl 6, as better interfaces are > > : designed for the things which at present require flipping individual > > : bits. > > > > I almos

Re: perl6 operator precedence table

2002-10-18 Thread David Wheeler
On Wednesday, October 16, 2002, at 04:55 PM, Smylers wrote: How about keeping caret for xor? $a ~^ $b # bitwise xor $a ^^ $b # logical xor Hm, the "seagull operator"? David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED]

Re: perl6 operator precedence table

2002-10-18 Thread Mark J. Reed
On 2002-10-17 at 22:52:49, Smylers wrote: > Larry Wall wrote: > > > $a .| $b# bitwise or > > $a .! $b# bitwise xor > > On glancing down your list I initially misread the bar as an exclamation > mark. I realize that this is a sample size of one, but certainly in > this ter

Re: perl6 operator precedence table

2002-10-18 Thread Larry Wall
On Thu, 17 Oct 2002, Jonathan Scott Duff wrote: : > As a productive prefix, it has limits, but there are actually very few : > operators that make sense to be bitified, and none of them look like a : > method name. : : Could users redefine how the prefixes work and get the productions for : free?

RE: C# and Parrot

2002-10-18 Thread Brent Dax
Rhys Weatherley: # I'm Rhys Weatherley, the author of Portable.NET, which is # part of the DotGNU project. (Put down that flame thrower! I # come in peace. :-) ) Hey. Don't worry--we're not worried about DotGNU. On the other hand, if you said you were on the actual .Net development group, it

Re: C# and Parrot

2002-10-18 Thread Leopold Toetsch
Rhys Weatherley wrote: The Portable.NET C# compiler, cscc, is very extensive, and is capable of generating output for multiple bytecode formats (IL and JVM are currently supported, more or less). Have a look at imcc, which is our high level assembler. imcc does register allocation and (curre

[perl #17990] perlarray.pmc prototype clashes

2002-10-18 Thread via RT
# New Ticket Created by Andy Dougherty # Please include the string: [perl #17990] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17990 > Currently, when compiling parrot, I see the following error message: cc -g -I../incl

[perl #17989] [PATCH] 'test' skipped by MANIFEST.SKIP

2002-10-18 Thread via RT
# New Ticket Created by Matthew Zimmerman # Please include the string: [perl #17989] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17989 > This is probably a minor thing, but confusing (to me) nonetheless. The file 'test'

Re: getting started guide in pod

2002-10-18 Thread Marty Pauley
On Wed Oct 16 01:24:16 2002, Erik Lechak wrote: > > Is there a module or a script out there that will let me write in > "freestyle pod" (allowing indentation and reasonable blank line > placement) and translate it to pod? Try the Simple Document Format, http://www.cpan.org/modules/by-authors/id

Re: [CVS ci] list / array

2002-10-18 Thread Nicholas Clark
On Wed, Oct 16, 2002 at 10:29:39PM +0200, Leopold Toetsch wrote: > Success ;-) reports, especially from non intel - welcome. Linux Bagpuss.unfortu.net 2.4.18-rmk7 #10 Sun Jun 23 21:43:05 BST 2002 armv4l unknown Strictly it's not Intel, because the StrongARM was made by DEC. Oh, hang on, you meant

Re: Variable/value split prelims

2002-10-18 Thread Leopold Toetsch
In perl.perl6.internals, you wrote: > A "thing" has three parts, a name (which is optional), a container, > and the contents of the container. [ ... ] > Well, first it means we need to conceptually split "variables" into > three parts, rather than two as we have been. Do you have a more verbose

Re: C# and Parrot

2002-10-18 Thread Leon Brocard
Rhys Weatherley sent the following bits through the ether: > The Portable.NET C# compiler, cscc, is very extensive, and is > capable of generating output for multiple bytecode formats (IL > and JVM are currently supported, more or less). Oh, excellent. If you're already targeting both then it sho

Re: [perl #17903] [PATCH] sprintf test

2002-10-18 Thread Leopold Toetsch
Steve Fink wrote: I don't know exactly who has the permissions to do these things, but I'm pretty sure that if you have commit access then you also have RT futzing access. I tried to set the status of my patches to resolved after committing and got something like "forbidden". Thanks! le

C# and Parrot

2002-10-18 Thread Rhys Weatherley
Hi, I'm Rhys Weatherley, the author of Portable.NET, which is part of the DotGNU project. (Put down that flame thrower! I come in peace. :-) ) DotGNU is currently reaching out to other projects in the OSS/FS world to see how we can help you and how you might be able to help us. One of the proj

Re: [perl #17990] perlarray.pmc prototype clashes

2002-10-18 Thread Leopold Toetsch
Andy Dougherty (via RT) wrote: # New Ticket Created by Andy Dougherty # Please include the string: [perl #17990] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17990 > Currently, when compiling parrot, I see the following

Re: C# and Parrot

2002-10-18 Thread Rhys Weatherley
Leopold Toetsch wrote: > Have a look at imcc, which is our high level assembler. imcc does > register allocation and (currently little) optimization. perl6 produces > IMCC code. imcc can also run the code or write PBC files. Yes, I saw that. I haven't yet decided whether to generate pasm or imcc

Re: C# and Parrot

2002-10-18 Thread Rhys Weatherley
Brent Dax wrote: > # I'm a bit confused as to how one creates a user-defined class > # in Parrot, and makes virtual method calls, accesses fields, > # and what-not. I can't seem to find a good example (Cola does > # non-virtual methods only at present). > > You don't, at least not yet. Eventual

Re: C# and Parrot

2002-10-18 Thread Simon Cozens
[EMAIL PROTECTED] (Rhys Weatherley) writes: > int x = ...; > int y = (short)x; > > The value of x is truncated to 16 bits, and then sign-extended > to int. I'm looking for something like the "conv.i2" instruction > in IL, or "i2s" in JVM. One concievable way to do that is basically have

Re: C# and Parrot

2002-10-18 Thread Andy Dougherty
On Fri, 18 Oct 2002, Rhys Weatherley wrote: > Leopold Toetsch wrote: > > > > What is the size of the "int" type? Will it always be 32 bit > > > or is it "whatever is best for the machine"? > > > > It's a Configure option. > > That may be a bit of a problem, as C# (and Java for that matter) > i

PMC initializer stuff

2002-10-18 Thread Dan Sugalski
Okay, it's been a while, I've been out of it, it's time to start getting going. Today's first topic: PMCs with real initializers. Here's a snip from the updated PDD2: -- =item void init_pmc(INTERP, PMC* self, PMC* initializer) This form of the init method takes a single initializer

Re: C# and Parrot

2002-10-18 Thread Leon Brocard
Rhys Weatherley sent the following bits through the ether: > DotGNU is currently reaching out to other projects in the OSS/FS > world to see how we can help you and how you might be able to > help us. It looks like the DotGNU weekly IRC meeting will be discussing Parrot. Could be interesting: htt

RE: PMC initializer stuff

2002-10-18 Thread Brent Dax
Dan Sugalski: # =item void init_pmc(INTERP, PMC* self, PMC* initializer) # For example, if a class has the known properties "Size", # "Dimension" and "Color", they may be assigned the values 100, # 101, and 102. If the creator if the PMC knows enough about # the class to make the translatio

RE: [PATCH] PMC initializer stuff

2002-10-18 Thread Jonathan Sillito
> -Original Message- > From: Dan Sugalski [mailto:dan@;sidhe.org] > > Okay, it's been a while, I've been out of it, it's time to start > getting going. Welcome back! > Today's first topic: PMCs with real initializers. Here's a snip from > the updated PDD2: > > -- > > =item v

[perl #18003] Make test failures under Win32 MSVC++

2002-10-18 Thread via RT
# New Ticket Created by Clinton Pierce # Please include the string: [perl #18003] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=18003 > I sync'd up Parrot for the first time in ages today to get rid of a PerlArray PMC bug

Re: Variable/value split prelims

2002-10-18 Thread Dan Sugalski
At 10:49 AM +0200 10/18/02, Leopold Toetsch wrote: In perl.perl6.internals, you wrote: A "thing" has three parts, a name (which is optional), a container, and the contents of the container. [ ... ] Well, first it means we need to conceptually split "variables" into three parts, rather th

Re: C# and Parrot

2002-10-18 Thread Dan Sugalski
At 5:54 PM +0100 10/18/02, Leon Brocard wrote: Rhys Weatherley sent the following bits through the ether: DotGNU is currently reaching out to other projects in the OSS/FS world to see how we can help you and how you might be able to help us. It looks like the DotGNU weekly IRC meeting will

Re: C# and Parrot

2002-10-18 Thread Graham Barr
On Fri, Oct 18, 2002 at 05:54:08PM +0100, Leon Brocard wrote: > It looks like the DotGNU weekly IRC meeting will be discussing > Parrot. Could be interesting: > http://www.dotgnu.org/pipermail/developers/2002-October/008345.html The author of that mail needs to learn the difference between GMT and

RE: PMC initializer stuff

2002-10-18 Thread Dan Sugalski
At 11:07 AM -0700 10/18/02, Brent Dax wrote: Dan Sugalski: # =item void init_pmc(INTERP, PMC* self, PMC* initializer) ... # For example, if a class has the known properties "Size", # "Dimension" and "Color", they may be assigned the values 100, # 101, and 102. If the creator if the PMC knows enoug

Re: C# and Parrot

2002-10-18 Thread Leopold Toetsch
Rhys Weatherley wrote: Leopold Toetsch wrote: [ imcc ] Yes, I saw that. I haven't yet decided whether to generate pasm or imcc directly from cscc. I did have some problems getting "test_spilling.imc" to work. Is this a known issue? Now yes ;-) Last cleanup changes did break the spillin

[perl #18006] [PATCH] Improved stack direction test

2002-10-18 Thread via RT
# New Ticket Created by Andy Dougherty # Please include the string: [perl #18006] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=18006 > The following patch splits the stack-direction-detection test into 3 separate files.

[perl #18008] t/src/list.t failing.

2002-10-18 Thread via RT
# New Ticket Created by Andy Dougherty # Please include the string: [perl #18008] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=18008 > On a fresh checkout, I'm getting the following test failure. I'm pretty sure this is

Re: [perl #17899] [PATCH] .include macros (and misc. documentation)

2002-10-18 Thread Nicholas Clark
On Sun, Oct 13, 2002 at 10:16:04PM +, Simon Glover wrote: > This patch: > > 1) Fixes some minor nits in the assembler documentation (mostly POD > formatting issues) > > 2) Documents the .include macro > > 3) Fixes a bug in the code that handles includes: we weren't stripping > of

Re: C# and Parrot

2002-10-18 Thread Dan Sugalski
At 1:38 PM +0100 10/18/02, Simon Cozens wrote: [EMAIL PROTECTED] (Rhys Weatherley) writes: int x = ...; int y = (short)x; The value of x is truncated to 16 bits, and then sign-extended to int. I'm looking for something like the "conv.i2" instruction in IL, or "i2s" in JVM. One co

Re: [perl #18006] [PATCH] Improved stack direction test

2002-10-18 Thread Nicholas Clark
On Fri, Oct 18, 2002 at 07:36:40PM +, Andy Dougherty wrote: > This patch ought to be harmless. I'd appreciate it if someone else could > give it a try, and, if it works, go ahead and commit it. Works fine on x86 (Debian GNU/Linux), arm (er Debian GNU/Linux) and sparc (guess?). I didn't try it

Re: [perl #] [PATCH] sprintf test

2002-10-18 Thread Nicholas Clark
On Thu, Oct 17, 2002 at 12:07:57AM -0700, Steve Fink wrote: > On Wed, Oct 16, 2002 at 09:19:45PM +0100, Nicholas Clark wrote: > > On Mon, Oct 14, 2002 at 12:09:54AM +, Simon Glover wrote: > > > Here's a brief test for the PMC, PMC, PMC form of the sprintf op; > > > as an added bonus, it also