Re: [perl #27904] [PATCH] stack items 2

2004-03-25 Thread Leopold Toetsch
Jonathan Worthington [EMAIL PROTECTED] wrote: Hi, This is a no-go for places where sizeof(INTVAL) is the same as sizeof(FLOATVAL). I know. It'll be replaced RSN. Jonathan leo

Re: Load paths

2004-03-25 Thread H.Merijn Brand
On Thu 25 Mar 2004 07:42, Jarkko Hietaniemi [EMAIL PROTECTED] wrote: Larry Wall wrote: On Thu, Mar 25, 2004 at 12:12:12AM +0200, Jarkko Hietaniemi wrote: : I'd like to propose the following optimisation: : if an attempt is made to load anything over the network : (without cryptographic

$PConfig{'i_pthread'}

2004-03-25 Thread Nick Kostirya
Hello, Tell me please where $PConfig{'i_pthread'} is defined? I want use this paramet into t/pmc/threads.t for detect that parrot has being built with thread on NetBSD. Nick.

ops2c

2004-03-25 Thread Michael Scott
I'm trying to write some documentation for the ops2c system at the moment and have a question. In Parrot::OpsFile::read_ops() a Parrot::Op's type is set to 'inline' or 'function', yet in Parrot::Op type is expected to be 'auto' or 'manual'. Auto ops have a 'goto NEXT()' appended to their

Re: [perl #27904] [PATCH] stack items 2

2004-03-25 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: Right. That's why the stack frames have to be garbage collected--only the DOD knows when one's truly not used any more. Done (again). leo

Re: $PConfig{'i_pthread'}

2004-03-25 Thread Leopold Toetsch
Nick Kostirya [EMAIL PROTECTED] wrote: Hello, Tell me please where $PConfig{'i_pthread'} is defined? It's missing in our config system. Wanted. Nick. leo

Re: Safety and security

2004-03-25 Thread Joe Schaefer
[EMAIL PROTECTED] (Dan Sugalski) writes: At 5:48 PM -0500 3/23/04, Joe Schaefer wrote: [...] IMO, the advantage would be that parrot apps will have a better idea of what security model is appropriate. Well... maybe. Parrot apps don't get a whole lot of say here--this is more on the

Re: Load paths

2004-03-25 Thread Johan Vromans
Larry Wall [EMAIL PROTECTED] writes: On Thu, Mar 25, 2004 at 12:12:12AM +0200, Jarkko Hietaniemi wrote: : just system(rm -rf /;halt) Sorry, that won't work correctly, since the rm will remove the halt program. Not necessarily. There's a chance it will remove 'rm' and 'rmdir' before 'halt'.

Re: Safety and security

2004-03-25 Thread James Mastros
[EMAIL PROTECTED] wrote: It can be safe. Normally, PCC works by certifying the code during compilation, and attaching the machine-checkable certificate with the resulting compiled code (be that bytecode, machine code or whatever). During runtime, a certificate checker then validates the

Re: Ulterior Reference Counting for DoD?

2004-03-25 Thread Leopold Toetsch
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi guys, http://www.cs.purdue.edu/homes/hosking/690M/urc-oopsla-2003.pdf Two-line summary: * gives as good performance as the best generational garbage collectors today, with All these generational collectors don't work with Parrot

Re: Ulterior Reference Counting for DoD?

2004-03-25 Thread ozone
On 25/03/2004, at 9:01 PM, Leopold Toetsch wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi guys, http://www.cs.purdue.edu/homes/hosking/690M/urc-oopsla-2003.pdf Two-line summary: * gives as good performance as the best generational garbage collectors today, with All these

Re: Exception bug?

2004-03-25 Thread Will Coleda
Ok. if I change that line, the program no longer infinite loops. However, argv is still trounced. On Thursday, March 25, 2004, at 02:59 AM, Leopold Toetsch wrote: Will Coleda [EMAIL PROTECTED] wrote: Is there a bug in my code? Yes. invokecc P2 Your are destroying the callers return

Re: $PConfig{'i_pthread'}

2004-03-25 Thread Nick Kostirya
Tell me please where $PConfig{'i_pthread'} is defined? It's missing in our config system. Wanted. Oh, looks like I said it wrong. I do have package Parrot::Config :-). Please let me know at which moment $PConfig{'i_pthread'} value is set and where in the code I can find it. Use of grep gave

Re: Ulterior Reference Counting for DoD?

2004-03-25 Thread Leopold Toetsch
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 25/03/2004, at 9:01 PM, Leopold Toetsch wrote: All these generational collectors don't work with Parrot objects. We guarantee that objects don't move around. Oh, I didn't see a mention of this in a PDD. What's the reason for why you provide

Re: Safety and security

2004-03-25 Thread Dan Sugalski
At 1:06 PM -0500 3/24/04, Joe Schaefer wrote: [EMAIL PROTECTED] (Dan Sugalski) writes: At 5:48 PM -0500 3/23/04, Joe Schaefer wrote: [...] IMO, the advantage would be that parrot apps will have a better idea of what security model is appropriate. Well... maybe. Parrot apps don't get a

Re: Exception bug?

2004-03-25 Thread Leopold Toetsch
Will Coleda [EMAIL PROTECTED] wrote: Ok. if I change that line, the program no longer infinite loops. However, argv is still trounced. Ah sorry, I did miss that in your first post. First, exceptions are really very experimental, especially when they resume. Anyway, the PerlArray (in P5) is

Re: $PConfig{'i_pthread'}

2004-03-25 Thread Leopold Toetsch
Nick Kostirya [EMAIL PROTECTED] wrote: Tell me please where $PConfig{'i_pthread'} is defined? It's missing in our config system. Wanted. Oh, looks like I said it wrong. I do have package Parrot::Config :-). Please let me know at which moment $PConfig{'i_pthread'} value is set and where

Re: $PConfig{'i_pthread'}

2004-03-25 Thread Nick Kostirya
You might have got an entry from your perl5, which is of no use for Parrot. Thank you. I see! It's config/auto/headers.pl have for (keys %Config) { next unless /^i_/; Configure::Data-set($mapping{$_}||$_, $Config{$_}); } There is no PConfig option that some threading

Dependency cleanup in generated makefile

2004-03-25 Thread Dan Sugalski
I've fixed up the dependency problem in the makefile generation that was getting in the way of multithreaded makes. Shouldn't cause any problems, but it never hurts to double-check these things elsewhere. Also, as I've been poking around in the make code, I'm finding myself less and less

Re: Safety and security

2004-03-25 Thread Larry Wall
Do bear in mind that Perl can execute bits of code as it's compiling, so if a bit of code is untrustworthy, you shouldn't be compiling it in the first place, unless you've prescanned it to reject Cuse, CBEGIN, and other macro definitions, or (more usefully) have hooks in the compiler to catch and

Re: [PATCH] single item stack chunks

2004-03-25 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: 2) The stack entry has to look something like: struct { struct IntStackFrame *prev; INTVAL Registers[REGSPERFRAME]; } IntStackFrame; Ok, now we something like that: typedef struct Stack_Chunk { pobj_t obj; int

MMD vtable functions in bytecode

2004-03-25 Thread Dan Sugalski
So, I'm doing these, because I need 'em, and we might as well get the things in now. For the record, these things will be called as functions (not methods), with three parameters, so the signature looks like: .pcc_sub thingie prototyped .param pmc left .param pmc right .param

Re: Ulterior Reference Counting for DoD?

2004-03-25 Thread Piers Cawley
Leopold Toetsch [EMAIL PROTECTED] writes: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 25/03/2004, at 9:01 PM, Leopold Toetsch wrote: All these generational collectors don't work with Parrot objects. We guarantee that objects don't move around. Oh, I didn't see a mention of this in a PDD.

Re: Safety and security

2004-03-25 Thread Rafael Garcia-Suarez
Larry Wall wrote in perl.perl6.internals : Do bear in mind that Perl can execute bits of code as it's compiling, so if a bit of code is untrustworthy, you shouldn't be compiling it in the first place, unless you've prescanned it to reject Cuse, CBEGIN, and other macro definitions, or (more

RE: Ulterior Reference Counting for DoD?

2004-03-25 Thread Butler, Gerald
How do you make the copy/move of the object from one location in memory and the update of the pointer to the pointer ATOMIC? If you don't, it doesn't matter how many layers of indirection you have, it will still be a problem ;^) -Original Message- From: Piers Cawley [mailto:[EMAIL

Re: Safety and security

2004-03-25 Thread Jarkko Hietaniemi
Rafael Garcia-Suarez wrote: prevent eval 'while(1){}' or eval '$x = take this! x 1_000_000' Or hog both (for a small while): eval 'while([EMAIL PROTECTED],0){}' or my personal favourite, the always funny eval 'CORE::dump()' unless you set up a very restrictive set of

Re: Safety and security

2004-03-25 Thread Dan Sugalski
At 11:35 PM +0200 3/25/04, Jarkko Hietaniemi wrote: Rafael Garcia-Suarez wrote: prevent eval 'while(1){}' or eval '$x = take this! x 1_000_000' Or hog both (for a small while): eval 'while([EMAIL PROTECTED],0){}' Which, if the interpreter's running with quotas, will be caught

Re: Ulterior Reference Counting for DoD?

2004-03-25 Thread Leopold Toetsch
Gerald Butler [EMAIL PROTECTED] wrote: [ message history rearranged - please don toppost - I hope that got the right levels of indentation ] From: Piers Cawley [mailto:[EMAIL PROTECTED] Leopold Toetsch [EMAIL PROTECTED] writes: PMCs are passed on to (external) C code. When inmidst of C

Re: Ulterior Reference Counting for DoD?

2004-03-25 Thread Piers Cawley
Butler, Gerald [EMAIL PROTECTED] writes: How do you make the copy/move of the object from one location in memory and the update of the pointer to the pointer ATOMIC? If you don't, it doesn't matter how many layers of indirection you have, it will still be a problem ;^) You only do it

[perl #27959] [PATCH] Tcl update

2004-03-25 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #27959] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=27959 With the thought that anything more frequent than every six months is good,

[perl #27961] [PATCH] removes two compiler warnings in src/register.c

2004-03-25 Thread via RT
# New Ticket Created by Matt Fowles # Please include the string: [perl #27961] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=27961 All~ The subject says it all. Matt Index: src/register.c

[perl #27962] [PATCH] bad error message for split.

2004-03-25 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #27962] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=27962 Here's an untested patch to fix the split op's warning. Index: ops/string.ops

Re: [perl #27962] [PATCH] bad error message for split.

2004-03-25 Thread Will Coleda
Would a patch be accepted that let split work on non empty strings (not treated as REs) as a stopgap until RE support? On Thursday, March 25, 2004, at 10:51 PM, Will Coleda (via RT) wrote: # New Ticket Created by Will Coleda # Please include the string: [perl #27962] # in the subject line of

parrot crash...

2004-03-25 Thread Will Coleda
I knew I should have updated to cvs latest before issuing a tcl release. =) (go ahead and apply that patch, I'll get things fixed as soon as I can.) If I run a very short tcl program, ala: set a(b) whee puts - I get a crash in parrot, ala: Exception: EXC_BAD_ACCESS (0x0001) Codes:

Re: Dereferencing Syntax (Was: Outer product considered useful)

2004-03-25 Thread Aaron Sherman
On Tue, 2004-03-23 at 13:11, Goplat wrote: @(...) is the list context operator in S3. I hope array references won't explode in list context, that would be very annoying when making multi-dimentional arrays: @foo = ([1, 2], [3, 4]) # oops, would be (1, 2, 3, 4) @foo = ($([1, 2]),

Re: Dereferencing Syntax (Was: Outer product considered useful)

2004-03-25 Thread Luke Palmer
Aaron Sherman writes: I would expect [] to force itself into scalar context anyway. Is there ever a reason to want otherwise? Clearly the entire point of [] is to create a scalar array ref from a list of arguments. More to the point is there ever a reason to want any array ref in list

Re: Dereferencing Syntax (Was: Outer product considered useful)

2004-03-25 Thread Larry Wall
On Thu, Mar 25, 2004 at 08:42:53AM -0700, Luke Palmer wrote: : Aaron Sherman writes: : More to the point is there ever a reason to want any array ref in list : context to NOT explode other than []? I can't think of any. : : push @a, $b : : Is it too non-obvious that if $b is an array

Re: Dereferencing Syntax (Was: Outer product considered useful)

2004-03-25 Thread Brent 'Dax' Royal-Gordon
Larry Wall wrote: say @bar.elems; # prints 1 Csay? Not Cprint? -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Dereferencing Syntax (Was: Outer product considered useful)

2004-03-25 Thread Larry Wall
On Thu, Mar 25, 2004 at 11:35:46AM -0800, Brent 'Dax' Royal-Gordon wrote: : Larry Wall wrote: : say @bar.elems;# prints 1 : : Csay? Not Cprint? It's just a println spelled Huffmanly. Larry

[perl #27966] [BUG] PerlHash/_dumper interaction

2004-03-25 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #27966] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=27966 .sub main .param pmc argv $S0 = argv[1] $I2 = $S0 $P2 = new

[perl #27969] [BUG] ParrotIO crash

2004-03-25 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #27969] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=27969 This rather dodgy bit of code .sub main $S0 = read $P1, 1 end .end Causes

Re: parrot crash...

2004-03-25 Thread Will Coleda
Ah. this appears to be the same stack trace already noted by: Mitchell N Charity On Thursday, March 25, 2004, at 11:56 PM, Will Coleda wrote: I knew I should have updated to cvs latest before issuing a tcl release. =) (go ahead and apply that patch, I'll get things fixed as soon as I can.)

ParrotUnit

2004-03-25 Thread Piers Cawley
Here's version 0.01 of ParrotUnit, my port of the xUnit testing framework to Parrot. It allows you to write your tests for parrot applications using object oriented parrot. Untar it in your parrot directory then do $ parrot t/test.imc 1..3 ok 1 testTemplateMethod ok 2

Re: [perl #27959] [PATCH] Tcl update

2004-03-25 Thread Leopold Toetsch
Will Coleda (via RT) wrote: One patch with changes: Doesn't apply: patching file languages/tcl/lib/commands/array.imc Reversed (or previously applied) patch detected! Assume -R? [n] $ grep ^Index tcl_20030325.patch | grep array Index: languages/tcl/lib/commands/array.imc Index:

Re: parrot crash...

2004-03-25 Thread Leopold Toetsch
Will Coleda [EMAIL PROTECTED] wrote: I knew I should have updated to cvs latest before issuing a tcl release. =) ... and before sending bug reports ;) The hash/_dumper interaction bug vanished ... $ parrot hash-bug.imc 1000 | tail -3 998 = undef, 999 = undef } ... as very likely the

Re: [perl #27962] [PATCH] bad error message for split.

2004-03-25 Thread Leopold Toetsch
Will Coleda [EMAIL PROTECTED] wrote: Here's an untested patch to fix the split op's warning. Thanks, applied. leo

Re: parrot crash...

2004-03-25 Thread Will Coleda
I'm still seeing both bugs, with a cvs update, make realclean; perl Configure.pl, make. (if I do a cvs diff in my repo, the only changed files are tcl related.) What other intel do you need to help duplicate the bugs? FWIW, I do see that Mitchell's program is not segfaulting, so while my