Re: Memory leak

2004-10-16 Thread H.Merijn Brand
On Fri 15 Oct 2004 22:32, [EMAIL PROTECTED] (PerlDiscuss - Perl Newsgroups and mailing lists) wrote: I need to embed Perl function in C program running as a daemon on Linux and Solaris. What it needs is to do pattern matching in Perl while it is If pattern matching is your only goal, why not

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-16 Thread Leopold Toetsch
Sam Ruby [EMAIL PROTECTED] wrote: It still doesn't make sense to me. Try adding the following line to both fixedpmcarray.pmc and perlint.pmc: METHOD INTVAL inheritme() { return 42; } Ok, that's exactly that part, which currently *is* broken. If you have some time please read

Re: [Proposal] JIT, exec core, threads, and architectures

2004-10-16 Thread Leopold Toetsch
Jeff Clites [EMAIL PROTECTED] wrote: On Oct 14, 2004, at 12:10 PM, Leopold Toetsch wrote: Proposal: * we mandate that JIT code uses interpreter-relative addressing - because almost all platforms do it - because some platforms just can't do anything else - and of course to avoid re-JITting

grsecurity interfering with the parrot JIT/build

2004-10-16 Thread Christian Jaeger
Hello I'm using Linux/x86 with the Grsecurity.org patch applied, which is enforcing page execution permissions (PAX) unless you turn them off on a binary using the chpax userspace tool. This means - unless you turn it off - an executable that is executing code in a page which is not marked as

Re: [Proposal] JIT, exec core, threads, and architectures

2004-10-16 Thread Leopold Toetsch
Jeff Clites wrote: We do still re-JIT for each thread on PPC, though we wouldn't have to The real problem that all JIT architectures still have is a different one: its called const_table and hidden either in the CONST macro or in syntax like NUM_CONST, which is translated by the jit2h.pl

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-16 Thread Sam Ruby
Leopold Toetsch wrote: Sam Ruby [EMAIL PROTECTED] wrote: It still doesn't make sense to me. Try adding the following line to both fixedpmcarray.pmc and perlint.pmc: METHOD INTVAL inheritme() { return 42; } Ok, that's exactly that part, which currently *is* broken. If you have some time please

Re: grsecurity interfering with the parrot JIT/build

2004-10-16 Thread Leopold Toetsch
Christian Jaeger [EMAIL PROTECTED] wrote: Hello I'm using Linux/x86 with the Grsecurity.org patch applied, which is enforcing page execution permissions (PAX) unless you turn them off on a binary using the chpax userspace tool. [ ... ] The correct solution would be to mark the respective

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-16 Thread Leopold Toetsch
Sam Ruby wrote: [ PMC method inheritance ] Patch attached. Thanks, applied. leo

Re: [PATCH] Re: [perl #31978] [BUG] dynclasses broken

2004-10-16 Thread William Coleda
oolong:~/research/parrot/include/parrot coke$ uname -a Darwin oolong 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug 5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power Macintosh powerpc perl is v5.8.1-RC3 All tests successful, 4 tests and 52 subtests skipped. Files=122, Tests=1943,

Re: [Proposal] JIT, exec core, threads, and architectures

2004-10-16 Thread Jeff Clites
On Oct 16, 2004, at 12:26 AM, Leopold Toetsch wrote: Jeff Clites [EMAIL PROTECTED] wrote: ... But, we use this currently, because there is one issue with threads: With a thread, you don't start from the beginning of the JITted code segment, This isn't a threading issue. We can always start

Re: cvs commit: parrot/languages/tcl/lib/macros boolean.imc

2004-10-16 Thread Leopold Toetsch
William Coleda [EMAIL PROTECTED] wrote: Though I have to wonder how this will work with inter-language-operability. bool = istrue(some_pmc) is exactly that. Your PMC can answer 1 if it's true or such. A lispish PMC might evaluate t and nil... Thanks, Leo. Welcome, leo

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-16 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: There are two basic classes of methods here. (And classes of classes, something I'm regretting, and I think we'll redo once I get a handle on metaclasses and just unify it all)[1] The first is the vtable method stuff. There's a static single inheritance

Re: [PATCH] Re: [perl #31978] [BUG] dynclasses broken

2004-10-16 Thread Brent 'Dax' Royal-Gordon
Leopold Toetsch [EMAIL PROTECTED] wrote: Jeff Clites [EMAIL PROTECTED] wrote: At the same time, I'm not sure why we need this construct in a header: struct Parrot_Interp; typedef struct Parrot_Interp *Parrot_Interp; We don't need it. There was some discussion a while a

CPAN smoking with cpansmoke and CPAN::Nargile

2004-10-16 Thread Gabor Szabo
Good evening, I am trying to use cpansmoke but I have a couple of issues 1) How can I say if I don't want to test a class of modules ? e.g. non of the Win32::* modules as I am on linux no Oracle related modules as I have no Oracle etc. 2) How can I run smoking on a machine

testing a shell command which prompts for output?

2004-10-16 Thread Mark Stosberg
How can I write an automate test for a shell command that prompts for output. I first tried just using backticks, but that hangs waiting for input. Thanks, Mark -- http://mark.stosberg.com/

Re: testing a shell command which prompts for output?

2004-10-16 Thread Andy Lester
On Oct 16, 2004, at 8:02 PM, Mark Stosberg wrote: How can I write an automate test for a shell command that prompts for output. I first tried just using backticks, but that hangs waiting for input. Will it take its input from STDIN? If so, pipe stdin to it. xox,o Andy -- Andy Lester = [EMAIL

Re: testing a shell command which prompts for output?

2004-10-16 Thread Mark Stosberg
On 2004-10-17, Andy Lester [EMAIL PROTECTED] wrote: On Oct 16, 2004, at 8:02 PM, Mark Stosberg wrote: How can I write an automate test for a shell command that prompts for output. I first tried just using backticks, but that hangs waiting for input. Will it take its input from STDIN? If

Re: testing a shell command which prompts for output?

2004-10-16 Thread Danny R. Faught
Mark Stosberg wrote: `echo 'y' | my_shell_cmd` I'm sure there's some other cooler way, but this works well enough for me. If it needs something fancier, like a pseudoterminal, you can use the Expect module (e.g., testing the Unix passwd program requires this). But if the simple echo works, keep

Re: testing a shell command which prompts for output?

2004-10-16 Thread Michael G Schwern
On Sun, 17 Oct 2004 01:12:45 + (UTC), Mark Stosberg [EMAIL PROTECTED] wrote: It also worked. Here's what I used: `echo 'y' | my_shell_cmd` I'm sure there's some other cooler way, but this works well enough for me. Eventually you'll want something more flexible and portable. You can

Re: Test::Harness with modules that output to STDOUT

2004-10-16 Thread Michael G Schwern
On Tue, 24 Aug 2004 11:04:50 -0400, Peter Kay [EMAIL PROTECTED] wrote: Ok, what's the elegent way to ignore/dispose of the output the tested module produces? Tie STDOUT. Look at Test::More's own test suite for examples. http://search.cpan.org/src/MSCHWERN/Test-Simple-0.49/t/lib/TieOut.pm

Re: Test::Harness with modules that output to STDOUT

2004-10-16 Thread Michael G Schwern
On Tue, 24 Aug 2004 17:47:42 -0700 (PDT), Ovid [EMAIL PROTECTED] wrote: --- Peter Kay [EMAIL PROTECTED] wrote: Ok, what's the elegent way to ignore/dispose of the output the tested module produces? What I do whenever this happens is to move the printing code to a subroutine or method and