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: 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: [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: [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 #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: 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

[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: 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

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

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 #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

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: [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: 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

[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

[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

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

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: [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 #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: 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

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: [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: 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: 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

[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

[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 #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

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: 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: 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: [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: 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: 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: [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: 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: 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: 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: 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 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: 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: 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 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

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: 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

[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

[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

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

[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: 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

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: [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: 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

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

[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