Re: I could not resist

2003-12-30 Thread David Pippenger
On Mon, Dec 29, 2003 at 04:44:33PM -0500, Uri Guttman wrote: HJ == Harry Jackson [EMAIL PROTECTED] writes: HJ I was searching on google for HJ core.html parrot HJ http://www.gurney.co.uk/parrots/dandan.html and if dan keeps leading parrot he will soon pluck out his own hairs

Re: Threads and Events (was Re: threads and shared interpreter data structures)

2003-12-30 Thread Gordon Henriksen
On Tuesday, December 23, 2003, at 08:40 , Rod Adams wrote: - Most treaded code can be converted to an event loop (+async I/O) without issue. Esp if we have co-routines. - For the other stuff, we'd still have Type 2 threads, which gets the job done. (Just got back from vacation and was reviewing

Strangeness with '.sub' in macros

2003-12-30 Thread Bernhard Schmalhofer
Hi, I have been playing around with 'libpcre' for Parrot m4. For some reason I couldn't compile two regular expressions in the same PIR script. I created a sample C program and that worked like it should. It looks like the error has nothing to do with 'libpcre'. So I boiled down my code to a

Re: Threads

2003-12-30 Thread Gordon Henriksen
Leopold Toetsch wrote: Dan Sugalski wrote: Leopold Toetsch wrote: Again, not only strings but all kind of containers using managed resources suffer from that problem. All that seems to imply, that we need two locks for shared access: one for protecting DOD/GC and a second for the PMC. Any

nci

2003-12-30 Thread Harry Jackson
Some questions Please note: I have been unable to test these patches with make test due to the problems I mentioned in an earler post. I have managed to get the postgres lib working again and I am hoping this is the only thing I have affected with these patches although if someone would like

Re: Strangeness with '.sub' in macros

2003-12-30 Thread Harry Jackson
Bernhard Schmalhofer wrote: Hi, Could sombody test the attached script on another machine? I'm working here on a Linux laptop: I am geting a seg fault. Its fine when the second call is commented out. I am not sure if any of the following is any use to you. The follwoing PASM was part generated

Need some deep non-POSIX thread info (Attention you Windows folks!)

2003-12-30 Thread Dan Sugalski
Well... it's time to start digging into threads more seriously, which Leo's been starting to do. At the moment I'm leaning towards all threads in a thread group sharing string and PMC arenas, and memory pools, as it makes life very much easier in some ways, except... The DOD. And the GC,

IMCC keyed crasher

2003-12-30 Thread Dan Sugalski
IMCC bus errors (at least on OS X) when presented with the construct: set $P0[$I1], Params[$I1] This little test program triggers it for me: .sub _MAIN prototyped .local Array Foo .local Array Bar set Foo[1], Bar[1] .end IMCC also doesn't like the construct: Foo[1] = Bar[1] but

Perl Abstract/Concrete Syntax Tree

2003-12-30 Thread Potozniak, Andrew
Hi, I was wondering if there was anything built in Perl (a Module) that will take in a Perl file and parse that into an abstract or concrete syntax tree. I searched around cpan for a bit and couldn't find what I was looking for. If anyone is wondering what I'm talking about there is a

Re: Perl Abstract/Concrete Syntax Tree

2003-12-30 Thread Ovid
--- Potozniak, Andrew [EMAIL PROTECTED] wrote: Hi, I was wondering if there was anything built in Perl (a Module) that will take in a Perl file and parse that into an abstract or concrete syntax tree. I searched around cpan for a bit and couldn't find what I was looking for. If

Re: Perl Abstract/Concrete Syntax Tree

2003-12-30 Thread Rafael Garcia-Suarez
Andrew Potozniak wrote in perl.qa : I was wondering if there was anything built in Perl (a Module) that will take in a Perl file and parse that into an abstract or concrete syntax tree. I searched around cpan for a bit and couldn't find what I was looking for. If anyone is wondering

Re: Threading design

2003-12-30 Thread Dan Sugalski
At 11:27 AM -0500 12/30/03, Gordon Henriksen wrote: I wish the threading design for parrot would look more toward successful, performant multithreaded systems, I'm going to be really grumpy here, though it's not directed at Gordon. What *I* wish is that people who've not had any experience

Re: Garbage Collection Tasks

2003-12-30 Thread Jeff Clites
On Dec 29, 2003, at 11:48 AM, Dan Sugalski wrote: As I see it, it's really the allocation that is more complicated with a mark-and-sweep collector (since you have to search for a correct-sized free chunk, efficiently)--the collection itself is the easy part. Actually, it seems like this is

Re: Threading design

2003-12-30 Thread Jeff Clites
On Dec 30, 2003, at 11:18 AM, Dan Sugalski wrote: At 11:27 AM -0500 12/30/03, Gordon Henriksen wrote: I wish the threading design for parrot would look more toward successful, performant multithreaded systems, I'm going to be really grumpy here, though it's not directed at Gordon. What *I* wish

Re: Threading design

2003-12-30 Thread Uri Guttman
DS == Dan Sugalski [EMAIL PROTECTED] writes: DS I'm going to be really grumpy here, though it's not directed at DS Gordon. What *I* wish is that people who've not had any experience DS trying to build threaded interpreters for languages with data as DS heavyweight as perl's with a POSIXy

Re: Problem during make test

2003-12-30 Thread Jeff Clites
On Dec 29, 2003, at 2:12 PM, Harry Jackson wrote: During [EMAIL PROTECTED] parrot]$ make test echo imcc/imcc.y -d -o imcc/imcparser.c imcc/imcc.y -d -o imcc/imcparser.c perl -e 'open(A,qq{$_}) or die foreach @ARGV' imcc/imcc.y.flag imcc/imcparser.c imcc/imcparser.h perl t/harness --gc-debug

Threads. Design. Go for it

2003-12-30 Thread Dan Sugalski
It's pretty obvious that we've a number of folks who've got Thread Religion. It's also very obvious that there is more than one One True Thread Religion. And it's *definitely* obvious that I'm getting cranky. So. This is everyone's chance. You have what you think is the Right Way to do it?

This week's summary

2003-12-30 Thread The Perl 6 Summarizer
The Perl 6 Summary for the week ending 20031228 It's the last Perl 6 Summary of 2003 already. Where did the year go? A large part of my year went down the plughole in the great double disk disaster which saw about 3 years of mail, a few gigabytes of photos and my entire summary

Re: Problem during make test

2003-12-30 Thread Harry Jackson
Jeff Clites wrote: Here are 3 things to try: 1) When it hangs there, check with 'top' to see if it is using CPU (ie, is it blocking, or in an infinite loop). Already done that and it is eating no cycles. 2) Try running one of the tests which blocks, individually. If you can get it to happen

Re: Problem during make test

2003-12-30 Thread Jeff Clites
On Dec 30, 2003, at 3:11 PM, Harry Jackson wrote: 2) Try running one of the tests which blocks, individually. If you can get it to happen this way, then run it in gdb and see what it's doing. (Or, attach to an already blocked one from 'make test'--this is assuming it's parrot that's actually

Re: Need some deep non-POSIX thread info (Attention you Windows folks!)

2003-12-30 Thread Vladimir Lipsky
From: Dan Sugalski [EMAIL PROTECTED] So, could someone with some windows experience go digging and find out how one would: 1) Find the address of the base of a thread's stack 3) Find out what a thread's current stack pointer is I would do 1), 3) this way ... thdl = _beginthreadex(NULL,

Re: Need some deep non-POSIX thread info (Attention you Windows folks!)

2003-12-30 Thread Vladimir Lipsky
And a note for 3): It's importatnt to create a thread with CREATE_SUSPENDED, and at thread runtime we have to suspend thread while checking out its registers so that to get the true values. SuspendThread(thdl); GetThreadContext(thdl, ctx); ... ResumeThread(thdl); 0x4C56

Re: Problem during make test

2003-12-30 Thread Harry Jackson
Jeff Clites wrote: On Dec 30, 2003, at 3:11 PM, Harry Jackson wrote: 2) Try running one of the tests which blocks, individually. If you can get it to happen this way, then run it in gdb and see what it's doing. (Or, attach to an already blocked one from 'make test'--this is assuming it's

Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft

2003-12-30 Thread Vladimir Lipsky
From: Jonathan Worthington [EMAIL PROTECTED] Here is my attempt at a patch for executable memory allocation, which makes +void * +mem_alloc_executable(size_t size) +{ + void *ptr = VirtualAlloc(NULL, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE); ^^^

Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft

2003-12-30 Thread Jonathan Worthington
- Original Message - From: Vladimir Lipsky [EMAIL PROTECTED] To: perl6-internals [EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 2:42 AM Subject: Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft From: Jonathan Worthington [EMAIL PROTECTED] Here is my attempt

Re: Need some deep non-POSIX thread info (Attention you Windows folks!)

2003-12-30 Thread Dan Sugalski
At 5:07 AM +0300 12/31/03, Vladimir Lipsky wrote: From: Dan Sugalski [EMAIL PROTECTED] So, could someone with some windows experience go digging and find out how one would: 1) Find the address of the base of a thread's stack 3) Find out what a thread's current stack pointer is I would do 1),

pdd16

2003-12-30 Thread Harry Jackson
I might be going mad here and maybe I have been up too long but, does: http://dev.x.perl.org/perl6/pdd/pdd16_native_call.html have two identical Parrot_callback_C and Parrot_callback_D function signatures. Harry Jackson

Re: pdd16

2003-12-30 Thread Dan Sugalski
At 2:28 AM + 12/31/03, Harry Jackson wrote: I might be going mad here and maybe I have been up too long but, does: http://dev.x.perl.org/perl6/pdd/pdd16_native_call.html have two identical Parrot_callback_C and Parrot_callback_D function signatures. Possibly, though they're supposed to have

Re: PMC registry

2003-12-30 Thread Melvin Smith
At 07:38 PM 12/28/2003 -0500, Dan Sugalski wrote: At 7:19 PM -0500 12/28/03, Matt Fowles wrote: Dan Sugalski wrote: At 3:27 PM -0500 12/28/03, Matt Fowles wrote: Leopold Toetsch wrote: I'd use a custom hash with the PMC address being the key[1]. /Me thinks, it doesn't help, when a PMC gets

Re: Strangeness with '.sub' in macros

2003-12-30 Thread Melvin Smith
At 05:45 PM 12/30/2003 +0100, Bernhard Schmalhofer wrote: Hi, I have been playing around with 'libpcre' for Parrot m4. For some reason I couldn't compile two regular expressions in the same PIR script. I created a sample C program and that worked like it should. It looks like the error has