Re: Parrot config - a small perl task

2004-07-17 Thread Leopold Toetsch
Timur Safin [EMAIL PROTECTED] wrote: - Original Message - From: Leopold Toetsch [EMAIL PROTECTED] On (AFAIK) all systems: opcode_type = intval_type = long. This size has to match the pointer size. And floatval_type = double. It was not exactly true till recent (the counter sample is

Pie-thon state 4

2004-07-17 Thread Leopold Toetsch
Another week's gone. One benchmark (b1.py) is running with Parrot. The code is produced by languages/python/pie-thon.pl. The speed is competitive :) More below. leo The Pie-thon state - 4 # date [- range ] title # description 10.07.2004 Pie-thon 45 - 47 Enhanced complex

Re: Pie-thon state 4

2004-07-17 Thread Dan Sugalski
At 8:10 AM +0200 7/17/04, Leopold Toetsch wrote: 14.07.2004 *Dan's already starting with the Bytecode converter - SNCR* SNCR? Selective Non-catalytic Reaction? Erm... Okay... :) -- Dan --it's like this--- Dan

Re: Pie-thon state 4

2004-07-17 Thread Leopold Toetsch
Dan Sugalski wrote: At 8:10 AM +0200 7/17/04, Leopold Toetsch wrote: 14.07.2004 *Dan's already starting with the Bytecode converter - SNCR* SNCR? Selective Non-catalytic Reaction? Erm... Okay... :) Or a lysdexic variant of SCNR leo

Bug in pie-thon.pl

2004-07-17 Thread Bryan Donlan
Given the following program: def test(x): return 0 print test(2) Python 2.3.3 prints 0, but pie-thon.pl and parrot print 2. From the generated PIR, it looks like test is returning an integer but the caller expects a PMC.

Re: scalar subscripting

2004-07-17 Thread Jonadab the Unsightly One
Larry Wall [EMAIL PROTECTED] writes: And if we do that, I guess that means that $«file».ext could be made to work as a replacement, which seems conceptually clean if you don't think about it too hard. Now that you put it that way, $( $file ).ext doesn't seem so bad, the visually-distracting

Re: enhanced open-funktion

2004-07-17 Thread Jonadab the Unsightly One
Luke Palmer [EMAIL PROTECTED] writes: my $fh = open $filename :excl; Can we please not name it with a random character generator? How about something that communicates what it does in some fashion, at least well enough to function as a mnemonic? my $fh = open $filename :rw :noreplace;

Re: Pie-thon state 4

2004-07-17 Thread Larry Wall
On Sat, Jul 17, 2004 at 09:47:14AM +0200, Leopold Toetsch wrote: : Or a lysdexic variant of SCNR A lysdexic would be a Greek with a broken right hand... Larry

push @bar, .splice;

2004-07-17 Thread Juerd
If an array element knows that it is an array element, this can be useful: for @foo { push @bar, .splice if EXPR } Juerd

Re: push @bar, .splice;

2004-07-17 Thread Dave Mitchell
On Sat, Jul 17, 2004 at 06:53:28PM +0200, Juerd wrote: If an array element knows that it is an array element, this can be useful: for @foo { push @bar, .splice if EXPR } What happens if the element is an element of more than one array? -- A power surge on the Bridge is rapidly and

Re: push @bar, .splice;

2004-07-17 Thread Juerd
Dave Mitchell skribis 2004-07-17 18:24 (+0100): On Sat, Jul 17, 2004 at 06:53:28PM +0200, Juerd wrote: If an array element knows that it is an array element, this can be useful: for @foo { push @bar, .splice if EXPR } What happens if the element is an element of more than one array?

:)

2004-07-17 Thread Juerd
Do we have a :) operator yet? Juerd

RE: :)

2004-07-17 Thread Austin Hastings
-Original Message- From: Juerd [mailto:[EMAIL PROTECTED] Sent: Saturday, 17 July, 2004 01:53 PM To: [EMAIL PROTECTED] Subject: :) Do we have a :) operator yet? It's an adverbial modifier on the core expression type. Does nothing, but it acts as a line terminator when nothing but

Re: enhanced open-funktion

2004-07-17 Thread Jonadab the Unsightly One
Larry Wall [EMAIL PROTECTED] writes: 1 .. (some_big_hairy_expression) ^:by(3) But we'd have to pay really close attention to how indenting is done. Maybe we should just pass this suggestion on to Guido... :-) Yes, please leave column-alignment tricks to Python. I don't even