[perl #34970] [PATCH] fixed getattribute to throw real "Attribute not found" exception

2005-04-13 Thread via RT
# New Ticket Created by Cory Spencer # Please include the string: [perl #34970] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34970 > The getattribute opcode previously threw an internal exception when an attribute wasn

A bug in jit/arm/jit_emit.h ??

2005-04-13 Thread mhzhu
Hello! I have tried to compiled parrot-0.1.2 on debian-arm and get the error below: src/platform.c /usr/bin/perl -MFile::Copy=cp -e 'cp q|jit/arm/jit_emit.h|, q|include/parrot/jit_emit.h|' src/jit.c /usr/bin/perl build_tools/jit2h.pl arm src/jit_cpu.c jit2h: 92 (+ 143 vtable) of 1425 ops are JIT

Re: I wish to understand the JIT machine code generator

2005-04-13 Thread rocko
Quoting Leopold Toetsch <[EMAIL PROTECTED]>: [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I have been trying to examine the i386 code generator to see how feasible it would be to create an AMD64 code generator. Unfortunately, the code is uncommented, and I haven't yet found any documentation to exp

Re: [RFC] .local, .syn, etc.

2005-04-13 Thread Matt Diephouse
William Coleda <[EMAIL PROTECTED]> wrote: > But... this isn't actually enforced. You can do: > > .local String foo > foo = new Blorp > > Basically, anything that isn't one of the basic types is interpreted as "pmc". I think this is misleading. > 1) make > > .local String foo > > (and .sym) eq

Re: Net::SSLeay testing

2005-04-13 Thread Andy Lester
On Apr 13, 2005, at 10:42 PM, Walter Goulet wrote: I thought I'd share a pretty cool side effect of Net::SSLeay testing for the Phalanx project. While adding tests to Net::SSLeay I found a bug in the openssl library itself. Bravo. Turn over enough rocks and you'll find something. xoxo, Andy -- A

Net::SSLeay testing

2005-04-13 Thread Walter Goulet
I thought I'd share a pretty cool side effect of Net::SSLeay testing for the Phalanx project. While adding tests to Net::SSLeay I found a bug in the openssl library itself. See the Phalanx kwiki entry for Net::SSLeay for details: http://phalanx.kwiki.org/index.cgi?NetSSLeayHoplites - walt smim

Help compile parrot on arm-linux

2005-04-13 Thread 明 朱
Hello! I'm new to parrot, sorry for my pool english first. I downloaded parrot-0.1.2 to my debian-arm box --- its cpu(arm920t) is s3c2410 of Samsung. first , I run "perl Configure.pl --cc=gcc --cxx=g++ --link=gcc" to config parrot. The config successly finished and generated the Makefile ,

Re: A sketch of the security model

2005-04-13 Thread Michael Walter
Dan, On 4/13/05, Dan Sugalski <[EMAIL PROTECTED]> wrote: > All security is done on a per-interpreter basis. (really on a > per-thread basis, but since we're one-thread per interpreter it's > essentially the same thing) Just to get me back on track: Does this mean that when you spawn a thread, a se

Re: Whither "use English"?

2005-04-13 Thread Sam Vilain
Juerd wrote: According to Wikipedia there are around 400 million native English speakers and 600 million people who have English as a second language. Should the remaining ~5.5 billion humans be exluded from writing perl code just so that we English speakers can understand all the code that is w

[RFC] .local, .syn, etc.

2005-04-13 Thread William Coleda
Currently, the following syntax is allowed, and used in examples and code throughout the repository: .local String foo foo = new String .sym String bar bar = new String But... this isn't actually enforced. You can do: .local String foo foo = new Blorp Basically, anything that isn't one of the ba

Re: [perl #34966] [PATCH] fix about 30 typos

2005-04-13 Thread chromatic
On Wed, 2005-04-13 at 12:49 -0700, Nick Glencross wrote: > This patch against r7825 fixes about 30-odd typos. All are in > comments/docs, so all changes are just polish. Thanks, applied with a few tweaks of my own. -- c

[perl #34966] [PATCH] fix about 30 typos

2005-04-13 Thread via RT
# New Ticket Created by Nick Glencross # Please include the string: [perl #34966] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34966 > This patch against r7825 fixes about 30-odd typos. All are in comments/docs, so all

[perl #34964] [PATCH] Fix some segfaults due to scalar.pmc/string.pmc

2005-04-13 Thread via RT
# New Ticket Created by Nick Glencross # Please include the string: [perl #34964] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34964 > This patch fixes a few operations which are badly inherited by string from scalar.pm

Re: pugs CGI.pm

2005-04-13 Thread Ovid
--- Stevan Little <[EMAIL PROTECTED]> wrote: > Andras, > > On Apr 13, 2005, at 3:34 PM, BÁRTHÁZI András wrote: > > So, then here's a solution: > > http://barthazi.hu/decode.pugs > > > > It wasn't heavily tested (euro sign, all the Hungarian letters and > > some other works), but I think it can w

Re: Testing for NULL return values in test scripts

2005-04-13 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On Wednesday 13 April 2005 22:52, Walter Goulet wrote: > So the good news is that I was able to convince the author to let me > include my dependancies in the test library. So I'll switch to > Test::More. > > Thanks for the help. Thats very good news! Be

Re: A sketch of the security model

2005-04-13 Thread Aaron Sherman
On Wed, 2005-04-13 at 17:01, Dan Sugalski wrote: > So here's what I was thinking of for Parrot's security and quota > model. (Note that none of this is actually *implemented* yet...) [...] > It's actually pretty straightforward, the hard part being the whole > "don't screw up when implementing" t

Re: pugs CGI.pm

2005-04-13 Thread Stevan Little
Andras, On Apr 13, 2005, at 3:34 PM, BÁRTHÁZI András wrote: So, then here's a solution: http://barthazi.hu/decode.pugs It wasn't heavily tested (euro sign, all the Hungarian letters and some other works), but I think it can work in all possible situations. Let me start by saying this would be an e

Re: Testing for NULL return values in test scripts

2005-04-13 Thread Michael G Schwern
On Wed, Apr 13, 2005 at 03:52:43PM -0500, Walter Goulet wrote: > So the good news is that I was able to convince the author to let me > include my dependancies in the test library. So I'll switch to > Test::More. Huzzah for sanity!

A sketch of the security model

2005-04-13 Thread Dan Sugalski
So here's what I was thinking of for Parrot's security and quota model. (Note that none of this is actually *implemented* yet...) All security is done on a per-interpreter basis. (really on a per-thread basis, but since we're one-thread per interpreter it's essentially the same thing) QUOTAs a

Re: Testing for NULL return values in test scripts

2005-04-13 Thread Walter Goulet
So the good news is that I was able to convince the author to let me include my dependancies in the test library. So I'll switch to Test::More. Thanks for the help. On 4/12/05, Michael G Schwern <[EMAIL PROTECTED]> wrote: > On Tue, Apr 12, 2005 at 04:15:01PM -0500, Walter Goulet wrote: > > I thin

Re: Parrot and the web (PHP?)

2005-04-13 Thread BÁRTHÁZI András
Hi, I'm not a UNIX guru, but I don't know an easily installable solution for the problem. I would like to run just one Apache, and would like to run Perl as an Apache module. Chroot I think is not a solution for it. Running the script as CGI or running as much Apaches as much client you have is

Re: Takers wanted - a perl job

2005-04-13 Thread Leopold Toetsch
Robert Spier wrote: Doesn't work when svk is used to check out the copy. But in that case svk list -R does. Hmm. Maybe this should be a commit action and not a test. It was under CVS. I'm pretty sure everyone ignored it there :) Well, it always depends, how responds looks like: Committed revisio

Re: Parrot and the web (PHP?)

2005-04-13 Thread Michael G Schwern
On Wed, Apr 13, 2005 at 04:23:01PM -0400, MrJoltCola wrote: > >Perl was the most famous web development environment some year ago, today > >PHP is that. I think one of > > I disagree. How do you support that blanket statement? I politely request that we not have a Perl vs PHP popularity discussi

Re: Parrot and the web (PHP?)

2005-04-13 Thread MrJoltCola
At 03:49 PM 4/13/2005, BÁRTHÁZI András wrote: I'm not a UNIX guru, but I don't know an easily installable solution for the problem. I would like to run just one Apache, and would like to run Perl as an Apache module. Chroot I think is not a solution for it. Running the script as CGI or running a

Re: Takers wanted - a perl job

2005-04-13 Thread Michael G Schwern
On Wed, Apr 13, 2005 at 08:58:19AM -0700, Robert Spier wrote: > > > Doesn't work when svk is used to check out the copy. But in that case > > > svk list -R does. > > > > Hmm. Maybe this should be a commit action and not a test. > > It was under CVS. I'm pretty sure everyone ignored it there :)

Re: Parrot and the web (PHP?)

2005-04-13 Thread Dan Sugalski
At 9:49 PM +0200 4/13/05, BÁRTHÁZI András wrote: Hi, An other question is, that how can you tell to the platform, to limit these features, maybe non-modifiable environment variables and command line parameters can be the ways of it. For that you need a full-blown quota and privilege system. Lu

Re: Test automation with perl.

2005-04-13 Thread Michael G Schwern
On Wed, Apr 13, 2005 at 02:45:53PM +0100, Adrian Howard wrote: > Darcs has some of its tests written in > Perl. PS If you're going to look at darcs' test suite look at darcs-unstable, not the latest release. Its test suite is in much better shape.

Re: Parrot and the web (PHP?)

2005-04-13 Thread BÁRTHÁZI András
Hi, An other question is, that how can you tell to the platform, to limit these features, maybe non-modifiable environment variables and command line parameters can be the ways of it. For that you need a full-blown quota and privilege system. Luckily there are plans for one. :) As far as boxing

Re: pugs CGI.pm

2005-04-13 Thread BÁRTHÁZI András
Hi, ah! That makes perfect sense, thanks for clarifying matters! :) Ok, then it seems we need to have a builtin, such that: new_builtin(0xE2) ~ new_builtin(0x82) ~ new_builtin(0xAC) eq "\xE2\x82\xAC" I think - conceptually - it cannot be done, because you cannot store a byte in a character str

Re: Parrot and the web (PHP?)

2005-04-13 Thread MrJoltCola
At 02:33 PM 4/13/2005, Dan Sugalski wrote: At 8:25 PM +0200 4/13/05, BÁRTHÁZI András wrote: An other question is, that how can you tell to the platform, to limit these features, maybe non-modifiable environment variables and command line parameters can be the ways of it. For that you need a full-

Re: pugs CGI.pm

2005-04-13 Thread Dan Sugalski
At 8:51 PM +0200 4/13/05, BÁRTHÁZI András wrote: Hi, ah! That makes perfect sense, thanks for clarifying matters! :) Ok, then it seems we need to have a builtin, such that: new_builtin(0xE2) ~ new_builtin(0x82) ~ new_builtin(0xAC) eq "\xE2\x82\xAC" I think - conceptually - it cannot be done, b

Re: [perl #34963] [PATCH] r7825: suppress stderr output during 'bc' step in configure

2005-04-13 Thread jerry gay
On 4/13/05, Andy Dougherty <[EMAIL PROTECTED]> wrote: > On Wed, 13 Apr 2005, Jerry Gay wrote: > > > the attached patch against r7825 suppresses stderr output during 'bc' > > step in configure > > I was thinking along similar lines, but got stuck wondering: "Why is > Configure.pl looking for bc i

Re: pugs CGI.pm

2005-04-13 Thread Jonathan Scott Duff
On Wed, Apr 13, 2005 at 08:23:17PM +0200, Ingo Blechschmidt wrote: > ah! That makes perfect sense, thanks for clarifying matters! :) > > Ok, then it seems we need to have a builtin, such that: > new_builtin(0xE2) ~ new_builtin(0x82) ~ new_builtin(0xAC) eq > "\xE2\x82\xAC" Hmm. Looks like you'

Re: pugs CGI.pm

2005-04-13 Thread BÁRTHÁZI András
Hi, ah! That makes perfect sense, thanks for clarifying matters! :) Ok, then it seems we need to have a builtin, such that: new_builtin(0xE2) ~ new_builtin(0x82) ~ new_builtin(0xAC) eq "\xE2\x82\xAC" I think - conceptually - it cannot be done, because you cannot store a byte in a character str

Re: pugs CGI.pm

2005-04-13 Thread BÁRTHÁZI András
Hi, So in the regex we have to determine whether we are unencoding a single-byte or multi-byte character. read in a single byte and pass it to chr(). I do not have enough experience with multi-byte characters to know when a byte can be recognized as the first byte of a multi-byte character, and t

Re: Parrot and the web (PHP?)

2005-04-13 Thread Dan Sugalski
At 8:25 PM +0200 4/13/05, BÁRTHÁZI András wrote: An other question is, that how can you tell to the platform, to limit these features, maybe non-modifiable environment variables and command line parameters can be the ways of it. For that you need a full-blown quota and privilege system. Luckily

Re: pugs CGI.pm

2005-04-13 Thread Ingo Blechschmidt
Hi, Roie Marianer wrote: >> # This is what *should* happen: >> my $x = chr(0xE2)~chr(0x82)~chr(0xAC); >> say $x.bytes; # 3 >> say $x.chars; # 1 >> >> # This is what currently happens: >> my $x = chr(0xE2)~chr(0x82)~chr(0xAC); >> say $x.bytes; # 6 >> say $x.chars; # 3 > > That

Re: Parrot and the web (PHP?)

2005-04-13 Thread BÁRTHÁZI András
Dan Sugalski wrote: At 8:42 AM -0500 4/13/05, Timm Murray wrote: On Wednesday 13 April 2005 08:38 am, BÁRTHÁZI András wrote: <> I think that web development will be very important in the life of Parrot and Perl 6. One of the most important (at least as a server administrator) feature of PHP, is

Re: [perl #34963] [PATCH] r7825: suppress stderr output during 'bc' step in configure

2005-04-13 Thread Andy Dougherty
On Wed, 13 Apr 2005, Jerry Gay wrote: > the attached patch against r7825 suppresses stderr output during 'bc' > step in configure I was thinking along similar lines, but got stuck wondering: "Why is Configure.pl looking for bc in the first place? It doesn't do anything with the result." The

Re: More registers

2005-04-13 Thread Dan Sugalski
At 12:05 PM +0200 4/13/05, Leopold Toetsch wrote: As of rev 7824 Parrot *should* run with NUM_REGISTERS defined as 64 too. Only some stack tests are failing that do half frame push and pop tests. imcc/t/reg/spill_2 just spills 4 registers instead of 36. Dan, could you please try that with one of

Re: Parrot and the web (PHP?)

2005-04-13 Thread Dan Sugalski
At 8:42 AM -0500 4/13/05, Timm Murray wrote: On Wednesday 13 April 2005 08:38 am, BÁRTHÁZI András wrote: <> I think that web development will be very important in the life of Parrot and Perl 6. One of the most important (at least as a server administrator) feature of PHP, is that you can lock th

Re: pugs CGI.pm

2005-04-13 Thread BÁRTHÁZI András
Hi, It's interesting, and it can be the problem, but I think, the CGI.pm way is not the good solution to decode the URL encoded string: if you say chr(0xE2)~chr(0x82)~chr(0xA2), then they are 3 characters, and s:g/A2/AC/? Yes, don't care with it. At first, I would like to tell you, that I'm not the

Re: pugs CGI.pm

2005-04-13 Thread mark . a . biggar
No the bug is using chr() to convert the byte as it appears to be defined as taking a Unicode codepoint and returning a UTF-8 character (which will be multibyte if the arg is >127), not as taking an int and return an 8 bit char with the same value. If this were perl 5, I'd say you really wanted

Re: pugs CGI.pm

2005-04-13 Thread Roie Marianer
> I think we've discovered a bug in Pugs, but as I don't know that much > about UTF-8, I'd like to see the following confirmed first :). > # This is what *should* happen: > my $x = chr(0xE2)~chr(0x82)~chr(0xAC); > say $x.bytes; # 3 > say $x.chars; # 1 > > # This is what currently happen

[perl #34963] [PATCH] r7825: suppress stderr output during 'bc' step in configure

2005-04-13 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #34963] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34963 > This transaction appears to have no contentthe attached patch against r7825 suppresses std

[perl #34960] [PATCH] r7825: remove win32 intermediate files during 'dynclasses/make clean'

2005-04-13 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #34960] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34960 > This transaction appears to have no contentthe attached patch against r7825 removes win32

[perl #34959] config/auto/gmp/gmp.in returns "1" instead of "0"

2005-04-13 Thread via RT
# New Ticket Created by Lambeck # Please include the string: [perl #34959] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34959 > Hi all, Configure.pl failed to find the GNU Math Lib (GMP) on my system eventhough it is in

Re: Parrot and the web (PHP?)

2005-04-13 Thread Timm Murray
On Wednesday 13 April 2005 08:38 am, BÁRTHÁZI András wrote: <> > I think that web development will be very important in the life of > Parrot and Perl 6. One of the most important (at least as a server > administrator) feature of PHP, is that you can lock the programs into a > directory by defining

Re: pugs CGI.pm

2005-04-13 Thread Nathan Gray
On Wed, Apr 13, 2005 at 09:52:41AM -0400, Stevan Little wrote: > On Apr 13, 2005, at 9:20 AM, BÁRTHÁZI András wrote: > >As Pugs works in UTF-8, my page is coded in UTF-8, too (and there are > >some other reasons, too). When I try to send an accented charater to > >the server as parameter, for exa

Re: pugs CGI.pm

2005-04-13 Thread Ingo Blechschmidt
Hi, BÃRTHÃZI AndrÃs wrote: > It's interesting, and it can be the problem, but I think, the CGI.pm > way is not the good solution to decode the URL encoded string: if you > say chr(0xE2)~chr(0x82)~chr(0xA2), then they are 3 characters, and s:g/A2/AC/? I think we've discovered a bug in Pugs, but a

Re: subscripts are.... objects?

2005-04-13 Thread Thomas Sandlaß
Rod Adams wrote: Thomas Sandlaß wrote: I'm not the junction expert, but it's said that they wrap around indexing/slicing! So the @array[!-2] would just read @array[none(-2)]? But how does none() get the base set where the second to last is excluded from? It does no such thing. It creates a new none

Re: pugs CGI.pm

2005-04-13 Thread mark . a . biggar
The standard for URLs uses a double encoding: A URL is coded in UTF-8 and then all bytes with high bits set are written in the %xx format. Therefore, if you just convert each %xx to the proper byte, the result is a valid UTF-8 string. You don't need to worry about multi-byte codes, if UTF-8 is

Re: pugs CGI.pm

2005-04-13 Thread BÃRTHÃZI AndrÃs
Hi! the "XXX -- correct" refers to the :16 (IIRC, Larry said on p6l that he liked that, but I wasn't able to find it in the Synopses). BTW, Pugs' chr does understand input > 255 correctly: pugs> ord "â" 8364 pugs> chr 8364 'â' Yes, I know it. $decoded does contain valid UTF-8, the problem i

Re: pugs CGI.pm

2005-04-13 Thread Ingo Blechschmidt
Hi, Stevan Little wrote: > On Apr 13, 2005, at 9:20 AM, BÃRTHÃZI AndrÃs wrote: >> The problem is with this line in sub url_decode(): >> >> $decoded ~~ s:perl5:g/%([\da-fA-F][\da-fA-F])/{chr(hex($1))}/; >> >> Have any idea, how to solve it? I think I should transform this code >> to recognize mult

Re: Takers wanted - a perl job

2005-04-13 Thread Robert Spier
> > Doesn't work when svk is used to check out the copy. But in that case > > svk list -R does. > > Hmm. Maybe this should be a commit action and not a test. It was under CVS. I'm pretty sure everyone ignored it there :) -R

Re: Hyper operator corner case?

2005-04-13 Thread Thomas Sandlaß
Brent 'Dax' Royal-Gordon wrote: IIRC, it's f) (1,2,3,4,5) >>+<< (1,2,$identity,$identity,$identity), where $identity's value is determined by a table something like this: In the case of &infix_circumfix_meta_operator:{'»','«'}:(List,List:&op) there's no "upgrade"---to use the S03 term. A simple "

Re: Pugs 6.2.0 released.

2005-04-13 Thread David Storrs
On Wed, Apr 13, 2005 at 03:50:38AM +0800, Autrijus Tang wrote: > I am delighted to report that the first major milestone of Pugs, version > 6.2.0, has been released to CPAN: Autrijus and everyone else who has been working on Pugs, As someone who has been following the Perl6 lists for years, I'd l

Re: Pugs 6.2.0 released.

2005-04-13 Thread Patrick R. Michaud
On Wed, Apr 13, 2005 at 07:15:48AM -0400, John Macdonald wrote: > On Tuesday 12 April 2005 23:46, Patrick R. Michaud wrote: > > No, I'm afraid I haven't messed up my math. Integer-xor is &infix:<+^> . > > Array-of-bits-xor is &infix:<~^> . I'm specifically talking about > > &infix:, which "Perl

Re: Tests running Tests

2005-04-13 Thread Tim Bunce
On Tue, Apr 12, 2005 at 02:02:07PM -0400, Sam Tregar wrote: > On Tue, 12 Apr 2005, Paul Johnson wrote: > > > I would do it in the same way as if this had nothing to do with tests. > > That is, abstract away the common code into a module, which can also > > live under t/ > > That would be a lot of

Re: [perl #34950] 'Symbol used before set' warning?

2005-04-13 Thread Nick Glencross
Leopold Toetsch via RT wrote: Nick Glencross <[EMAIL PROTECTED]> wrote: If it's straightforward, could we get imcc to emit a warning if a symbol is used before being set? Please read imcc/cfg.c:690 ff The problem is probably that the code doesn't consider incoming arguments in function call

Re: pugs CGI.pm

2005-04-13 Thread Stevan Little
Andras, I am CC-ing this to perl6-compiler in hopes that smarter people that I can better answer this question. On Apr 13, 2005, at 9:20 AM, BÁRTHÁZI András wrote: I'm trying to create a small web application, and hacking parameter handling now. As Pugs works in UTF-8, my page is coded in UTF-8

Re: Test automation with perl.

2005-04-13 Thread Adrian Howard
On 13 Apr 2005, at 09:27, suresh babu wrote: I need some example projects(not web applications) which uses perl to develop test suites and automate testing requirements. May be some pointers or source forge where i can get information on such projects. Most things on CPAN will have a Perl test su

Parrot and the web (PHP?)

2005-04-13 Thread BÁRTHÁZI András
Hi! I don't know, which platform is the best to ask this question, maybe this is. I think that web development will be very important in the life of Parrot and Perl 6. One of the most important (at least as a server administrator) feature of PHP, is that you can lock the programs into a direct

Re: perlscalar morph code

2005-04-13 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > Leopold Toetsch wrote: >> I'd say that plain String PMCs don't have increment and decrement. >> >>It seems best to just remove scalar.increment and .decrement, which then >>would automatically create the default_increment for Strings. >> > Sounds best, d

Re: [perl #34952] [PATCH] SDL unitialised variable

2005-04-13 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > And... here's the patch! Thanks, applied. leo

Re: [PROPOSAL] infix MMD operators

2005-04-13 Thread Leopold Toetsch
Leopold Toetsch wrote: If there are no objections, I'll continue with: 5) infix method signature change: METHOD PMC* add( [INTERP, SELF,] PMC* rhs, PMC ´*dest) { if (!dest) dest = pmc_new(INTERP, SELF->vtable->base_type); ... return dest; } If the destination PMC is passed in

Re: [perl #34950] 'Symbol used before set' warning?

2005-04-13 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > If it's straightforward, could we get imcc to emit a warning if a symbol > is used before being set? Please read imcc/cfg.c:690 ff The problem is probably that the code doesn't consider incoming arguments in function calls. > Cheers, > Nick leo

Re: Pugs 6.2.0 released.

2005-04-13 Thread John Macdonald
On Tuesday 12 April 2005 23:46, Patrick R. Michaud wrote: > On Tue, Apr 12, 2005 at 11:13:18PM -0400, John Macdonald wrote: > > On Tuesday 12 April 2005 22:36, Patrick R. Michaud wrote: > > > It's entirely possible that I have my mathematics messed up here, > > > but C doesn't seem to me to be enti

Re: perlscalar morph code

2005-04-13 Thread Nick Glencross
Leopold Toetsch wrote: I'd say that plain String PMCs don't have increment and decrement. It seems best to just remove scalar.increment and .decrement, which then would automatically create the default_increment for Strings. Sounds best, doesn't it? It's a bit 'perlish' to inc/dec a string directl

[perl #34952] SDL unitialised variable

2005-04-13 Thread via RT
# New Ticket Created by Nick Glencross # Please include the string: [perl #34952] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34952 > This patch fixes a problem where setting a pixel in a surface isn't always the right

[perl #34950] 'Symbol used before set' warning?

2005-04-13 Thread via RT
# New Ticket Created by Nick Glencross # Please include the string: [perl #34950] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34950 > If it's straightforward, could we get imcc to emit a warning if a symbol is used bef

Re: Welcome to the land of Subversion

2005-04-13 Thread Roger Hale
Robert Spier wrote: Could that be added as 4th line? Good ideas, all of them. I've updated the page to add that, and to switch to bz2. -R Following Nicholas Clark: bzcat svk-mirror-dump.bz2 | svnadmin load --ignore-uuid ~/.svk/parrot presumably should be bzcat svk-bootstrap-dump.bz2 | svnadmi

Re: [PROPOSAL] calling convention abstraction

2005-04-13 Thread Roger Hale
Bob Rogers wrote: So it sounds like we are all saying the same thing now? Well, two of us at least (with me coming from the peanut gallery)... Leo has his own say, and it's his proposal. regards, Roger

Re: perlscalar morph code

2005-04-13 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > On a semi-related note, there's some broken morph code in scalar. It has > code like: > void increment () { > PMC_int_val(SELF) = DYNSELF.get_integer() + 1; > } > which is then used by subclasses String, Integer and Float. Integer and

Re: [perl #34937] [PATCH] Absolute library paths on Win32

2005-04-13 Thread Leopold Toetsch
Philip Taylor <[EMAIL PROTECTED]> wrote: > This patch makes Parrot recognise /path/to/file and c:/path/to/file as > absolute paths on Win32 (so that e.g. 'load_bytecode "c:/path/to/file"' > can be used instead of 'load_bytecode "c:\\path/to/file"') Thanks, applied. leo

More registers

2005-04-13 Thread Leopold Toetsch
As of rev 7824 Parrot *should* run with NUM_REGISTERS defined as 64 too. Only some stack tests are failing that do half frame push and pop tests. imcc/t/reg/spill_2 just spills 4 registers instead of 36. Dan, could you please try that with one of your big subroutines and report compile times and

Re: [perl #34952] [PATCH] SDL unitialised variable

2005-04-13 Thread Nick Glencross
And... here's the patch! Nick Index: runtime/parrot/library/SDL/Color.imc === --- runtime/parrot/library/SDL/Color.imc(revision 7819) +++ runtime/parrot/library/SDL/Color.imc(working copy) @@ -188,6 +188,8 @@ .l

Re: Welcome to the land of Subversion

2005-04-13 Thread Robert Spier
At Wed, 13 Apr 2005 02:07:05 -0400, Roger Hale wrote: > > Robert Spier wrote: > >>Could that be added as 4th line? > > Good ideas, all of them. I've updated the page to add that, and to > > switch to bz2. > > -R > > Following Nicholas Clark: >bzcat svk-mirror-dump.bz2 | svnadmin load --ignor

[perl #34949] [BUG] _p_i_ic

2005-04-13 Thread via RT
# New Ticket Created by Leopold Toetsch # Please include the string: [perl #34949] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34949 > The following snippet ... $ cat b.imc .sub main @MAIN .local pmc b b = ne

Re: perlscalar morph code

2005-04-13 Thread Nick Glencross
Leopold Toetsch wrote: Nicholas Clark <[EMAIL PROTECTED]> wrote: I'm trying to understand how morph works. perlscalar's morph looks like this: [ broken code ] On a semi-related note, there's some broken morph code in scalar. It has code like: void increment () { PMC_int_val(SELF

Re: [perl #34910] [PATCH] t/pmc/nci.t failure with MinGW32

2005-04-13 Thread Leopold Toetsch
François" PERRAD <[EMAIL PROTECTED]> wrote: > Just use gcc with good parameters for build DLL. Thanks, applied. leo

Re: [perl #34933] [PATCH] Handle trailing space in $(LD_OUT)

2005-04-13 Thread Leopold Toetsch
Andy Dougherty <[EMAIL PROTECTED]> wrote: > Removing ICU from the build uncovered an odd build bug concerning the > space after ${ld_out} in config/init/data.pl. This patch fixes it. Thanks, applied. leo

Re: [perl #34935] [PATCH] r7818: removing more warnings in src/

2005-04-13 Thread Leopold Toetsch
Jerry Gay <[EMAIL PROTECTED]> wrote: > this patch against r7818 should eliminate many more warning messages in > src/*.c Thanks, applied as well as #34936 [ except the line reading (size_t) 1.5, which defeats the purpose of increasing allocation ] leo

RE: JavaScript TestSimple 0.02

2005-04-13 Thread Clayton, Nik
> * Write tests! libtap's tests are implemented by creating a set of reference test scripts using Test::More, capturing the output from those, and then making sure that the output from the same test implemented using libtap is the same (modulo changes in line numbers and filenames in the test outp

Test automation with perl.

2005-04-13 Thread suresh babu
Hi, I need some example projects(not web applications) which uses perl to develop test suites and automate testing requirements. May be some pointers or source forge where i can get information on such projects. Thanks, SB. - Do you Yahoo!? Y

Re: trim() and words() functions?

2005-04-13 Thread Juerd
gcomnz skribis 2005-04-12 16:46 (-0700): > [words() and trim()] I thought split'd still split on /\s+/ by default? $string.split is easy to use, and because join uses ' ' by default (this is my interpretation of the /lists in scalar context/ thread), $string.split.join trims all excess whitespace,

Re: I wish to understand the JIT machine code generator

2005-04-13 Thread Leopold Toetsch
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have been trying to examine the i386 code generator to see how > feasible it would be to create an AMD64 code generator. > Unfortunately, the code is uncommented, and I haven't yet found any > documentation to explain how it works on Parrot. So far

Re: perlscalar morph code

2005-04-13 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > I'm trying to understand how morph works. perlscalar's morph looks like this: [ broken code ] > I think that there are 2 bugs here At least, yes. The better and general morph code is pmc.c:pmc_reuse(). > 2: The code isn't thread safe, even though it t

Re: Hyper operator corner case?

2005-04-13 Thread Brent 'Dax' Royal-Gordon
David Christensen <[EMAIL PROTECTED]> wrote: > Example: >(1,2,3,4,5) >>+<< (1,2) > > Is this equivalent to: > > a) (1,2,3,4,5) >>+<< (1,2,undef,undef,undef) (undef padding) > b) (1,2,3,4,5) >>+<< (1,2,1,2,1) (repetition) > c) (1,2,3,4,5) >>+<< (1,2,2,2,2) (stretching) > d) (1,2) >>+<< (1,2) (