Re: References to hash elements?

2004-01-13 Thread Piers Cawley
Simon Cozens [EMAIL PROTECTED] writes: Arthur Bergman: I am wondering how the references to hash elements are planned to be done? The call to set_ must somehow be delayed until the time is right. I would have thought that a hash element would itself be a PMC rather than an immediate value,

Re: Mr Parrot's Neighborhood

2004-01-13 Thread Leopold Toetsch
Michal Wallace [EMAIL PROTECTED] wrote: A .pcc_sub isn't an object, just a little segment of the list of instructions. A pcc_sub *is* an object: find_global P0, _the_sub invokecc print back\n end .pcc_sub _the_sub: print in sub\n invoke P1 You can store it away, pass

Re: find_global failing

2004-01-13 Thread Leopold Toetsch
Jonathan Worthington [EMAIL PROTECTED] wrote: Hi, I currently have a file named win32.pasm containing the following:- saveall loadlib P1, 'user32' dlfunc P2, P1, 'MessageBoxA', 'llttl' store_global 'MessageBox', P2 # MANY MORE LINES LIKE THIS restoreall I compile that file to a .pbc

Re: [PATCH] Small register stack fix

2004-01-13 Thread Leopold Toetsch
Luke Palmer [EMAIL PROTECTED] wrote: +PObj_COW_CLEAR((PObj*)buf); Applied, thanks. leo

Re: yield op?

2004-01-13 Thread Leopold Toetsch
Michal Wallace [EMAIL PROTECTED] wrote: Hey all, When you invoke a Coroutine, it calls swap_context() Register frames are now properly swapped too. Your given example is working now. I've checked in a slightly modified version as a test. leo

Re: Continuations don't close over register stacks

2004-01-13 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: [ stack layout ] I'd rather not have the store statically inside the hunk: - small objects code currently has an upper limit for sized header pools Doesn't mean we have to use them, honestly. A separate arena for them is fine. Each sized item (a

This week's summary

2004-01-13 Thread The Perl 6 Summarizer
The Perl 6 Summary for the week ending 20040111 It's Monday. People have been talking about Perl 6, Parrot and the European Union Constitution. Let's find out what they've been saying about Parrot first shall we? Threads Threads were discussed some more. Dan's deadline is coming

Segmentation fault

2004-01-13 Thread Chris Allan
Hello, I've just started trying to experiment with parrot, and I keep getting segmentation faults, eg when running the following one-liner: set I0, 7 I'm using gcc 2.95.4 on linux, and it says all the tests are passing when I run make test. gdb gives the following: --- [New

Re: Segmentation fault

2004-01-13 Thread Leopold Toetsch
Chris Allan [EMAIL PROTECTED] wrote: Hello, I've just started trying to experiment with parrot, and I keep getting segmentation faults, eg when running the following one-liner: set I0, 7 end is missing. Program flow just continues with executing garbage. I also noticed what seems to be

Re: Docs and releases

2004-01-13 Thread Harry Jackson
Paul Cochrane wrote: If there are any shy lurkers out there please speak now or forever hold your peace. I'll admit to being a shy lurker... (and have rudimentary C knowledge, but a bit low on the elbow grease atm :-/) Another one, we are getting more and more of them pop up from all over

Re: Docs and releases

2004-01-13 Thread Jeffrey Dik
Ooh, ooh, a chance to leave shy lurker status behind and work on one of the coolest software projects out there, count me in. I have some rudimentary C skills and I'm sure there's some elbow grease around here somewhere... Jeff On Mon, Jan 12, 2004 at 05:58:18PM +, Harry Jackson wrote:

Re: Docs and releases

2004-01-13 Thread Vishal Vatsa
On Monday 12 January 2004 17:58, Harry Jackson wrote: Robert Eaglestone wrote: Yes, I'm a shy lurker. Are there any more, don't be shy, there might be a lot of barking but no one bites at least I have not had anyone bite me _yet_. Is there anyone on the list who wants to help but does not

Shy Lurking

2004-01-13 Thread Robert Eaglestone
Well, I may be shy, and I may lurk, but I'm willing and able to contribute. I've coded C professionally, on and off, since 1992, and I like to tinker with things, and I'm not too terrible at documentation. I think a good place to start digging in would be updating docs, though I can be turned

Re: Shy Lurking

2004-01-13 Thread Harry Jackson
Robert Eaglestone wrote: Well, I may be shy, and I may lurk, but I'm willing and able to contribute. I've coded C professionally, on and off, since 1992, and I like to tinker with things, and I'm not too terrible at documentation. I think a good place to start digging in would be updating docs,

Re: find_global failing

2004-01-13 Thread Jonathan Worthington
- Original Message - From: Leopold Toetsch [EMAIL PROTECTED] To: Jonathan Worthington [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 9:13 AM Subject: Re: find_global failing Jonathan Worthington [EMAIL PROTECTED] wrote: Hi, I currently have a file named

RE: Docs and releases

2004-01-13 Thread Solinski, Mark
I'm also a shy lurker but would love to help in any way I can. I have twenty+ years experience in C/C++/OOP. Is there a reasonable place to start? Mark Solinski [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: Docs and releases

2004-01-13 Thread Harry Jackson
Mark Solinski wrote: I'm also a shy lurker but would love to help in any way I can. I have twenty+ years experience in C/C++/OOP. Is there a reasonable place to start? Bloody hell man, what took you so long ;-). With that amount of experience, take your pick. http://www.parrotcode.org/todo

Re: nci

2004-01-13 Thread Tim Bunce
On Mon, Jan 12, 2004 at 01:01:58PM -0600, Garrett Goebel wrote: Tim Bunce wrote: Tim Bunce wrote: I see Dan says in his blog Yeah, I know, we should use libffi, and we may as a fallback, if we don't just give in and build up the function headers everywhere. I'm not familiar

Re: Mr Parrot's Neighborhood

2004-01-13 Thread Tim Bunce
On Tue, Jan 13, 2004 at 10:01:32AM +0100, Leopold Toetsch wrote: Michal Wallace [EMAIL PROTECTED] wrote: Here's my guess: [lots of good stuff from leo] Is there a Parrot Architecture Overview document that summarises this kind of high-level view with links to the deeper docs? If not it

Re: find_global failing

2004-01-13 Thread Leopold Toetsch
Jonathan Worthington [EMAIL PROTECTED] wrote: Thanks, that works great. I now have a .pbc with loadlibs and dlfuncs for pretty much the entire Win32 API. Fine. ... The next thing I want to look at is constants. At first I thought I could do something like:- .constant MB_YESNOCANCEL 3

OT: Cost of O'Reilly OSCON?

2004-01-13 Thread Tim Howell
Sorry for the off-topic post, but I'm having trouble finding anything about the likely cost of registration for the 2004 OSCON. Anyone have any guesses based on past experience? Thanks! =) --TWH

Re: Shy Lurkers

2004-01-13 Thread Bernhard Schmalhofer
Harry Jackson wrote: If no one objects I don't mind starting a TODO list for newcomers or people who just want to get their feet wet. I will try and supply a list of simpler stuff that needs doing and some pointers as to where they should start. If people do not want to post to the parrot list

Re: This week's summary

2004-01-13 Thread Uri Guttman
TP6S == The Perl 6 Summarizer [EMAIL PROTECTED] writes: TP6S Congratulations Dan TP6S Melvin Smith offered his congratulations to Dan for the TP6S first commercial use of Parrot. I think I can safely say we TP6S all echo those congratulations. shouldn't that be

Some namespace notes

2004-01-13 Thread Jeff Clites
Here are some notes on namespaces, picking up a thread from about a month ago: On Dec 11, 2003, at 8:57 AM, Dan Sugalski wrote: That does, though, argue that we need to revisit the global access opcodes. If we're going hierarchic, and we want to separate out the name from the namespace, that

Re: Mr Parrot's Neighborhood

2004-01-13 Thread Melvin Smith
At 11:18 PM 1/12/2004 -0500, Michal Wallace wrote: On Mon, 12 Jan 2004, Luke Palmer wrote: A continuation is one snapshot -- it never changes, it never runs. To invoke the continuation is to take you back to that snapshot and start running from there. To invoke it a second time is exactly

Test::More::todo_some ? (was: Re: Setting TODO by test number)

2004-01-13 Thread Elizabeth Mattijsen
At 16:47 + 1/12/04, Fergal Daly wrote: You can just do Test::Builder-new to get the Test::Builder object. It will be the same one used by Test::More because it's a singleton. That way you should need no patches, In the end I came up with this code. It's pretty simple and straightforward and

Re: Test::More::todo_some ? (was: Re: Setting TODO by test number)

2004-01-13 Thread Fergal Daly
On Tue, Jan 13, 2004 at 04:35:21PM +0100, Elizabeth Mattijsen wrote: At 16:47 + 1/12/04, Fergal Daly wrote: You can just do Test::Builder-new to get the Test::Builder object. It will be the same one used by Test::More because it's a singleton. That way you should need no patches, In the

Re: Test::More::todo_some ? (was: Re: Setting TODO by test number)

2004-01-13 Thread Elizabeth Mattijsen
At 15:56 + 1/13/04, Fergal Daly wrote: On Tue, Jan 13, 2004 at 04:35:21PM +0100, Elizabeth Mattijsen wrote: In the end I came up with this code. It's pretty simple and straightforward and maybe would be nice to include with Test::More. I definitely have a use for that but basing it on test

Re: Test::More::todo_some ? (was: Re: Setting TODO by test number)

2004-01-13 Thread Fergal Daly
On Tuesday 13 January 2004 16:41, Elizabeth Mattijsen wrote: Maybe the first parameter of todo_some should also accept a code reference to a subroutine which, given the other parameters, is supposed to give the TODO reason? That would make it even more flexible, I would think. I think at

Parrot String Doc

2004-01-13 Thread Robert Eaglestone
OK, I'm looking at the Parrot String documentation, and I've got questions. It's not like the docs are a total mess, they just need some fleshing out. Yeah, that's it. So here I go. Here's the page I'm looking at: http://www.parrotcode.org/docs/strings.pod.html And here are my questions.

Re: Docs and releases

2004-01-13 Thread Vladimir Lipsky
Well, there is always up-to-date documentation, your debugger output ... 0x4C56 Who says that the copy-paste antipattern is bad?

Re: Parrot String Doc

2004-01-13 Thread Stéphane Payrard
Le Tue, Jan 13, 2004 at 03:06:18PM -0600, le valeureux mongueur Robert Eaglestone a dit: OK, I'm looking at the Parrot String documentation, and I've got questions. It's not like the docs are a total mess, they just need some fleshing out. Yeah, that's it. So here I go. Here's the page

Re: Parrot String Doc

2004-01-13 Thread Harry Jackson
Stéphane Payrard wrote: Le Tue, Jan 13, 2004 at 03:06:18PM -0600, le valeureux mongueur Robert Eaglestone a dit: OK, I'm looking at the Parrot String documentation, and I've got questions. It's not like the docs are a total mess, they just need some fleshing out. Yeah, that's it. So here I go.

Re: Parrot String Doc

2004-01-13 Thread Michael Scott
You'll find some diagrams here which might help. http://www.vendian.org/parrot/wiki/bin/view.cgi/Main/ ParrotDiagramsString On 13 Jan 2004, at 22:06, Robert Eaglestone wrote: OK, I'm looking at the Parrot String documentation, and I've got questions. It's not like the docs are a total mess,

Re: Docs and releases

2004-01-13 Thread Matt Diephouse
Harry Jackson wrote: Harry Jackson If there are any shy lurkers out there please speak now or forever hold your peace. Alright, that's me too. I've been lurking for a couple years, actually, and have only made one post on perl6-language, I think. I just downloaded parrot again last week after

Re: [ANNOUNCE] Devel::Cover 0.33

2004-01-13 Thread Paul Johnson
On Tue, Jan 13, 2004 at 10:22:52PM +0100, Paul Johnson wrote: This is a fairly important release because it fixes some errors in the coverage reported. And introduces some others :-( Hold off on this release - I'll upload a new one as soon as possible. -- Paul Johnson - [EMAIL PROTECTED]

[ANNOUNCE] Devel::Cover 0.34

2004-01-13 Thread Paul Johnson
On Tue, Jan 13, 2004 at 10:39:02PM +0100, Paul Johnson wrote: On Tue, Jan 13, 2004 at 10:22:52PM +0100, Paul Johnson wrote: This is a fairly important release because it fixes some errors in the coverage reported. And introduces some others :-( Hold off on this release - I'll upload a

Re: Questions about abstract pmcs

2004-01-13 Thread Melvin Smith
At 09:55 PM 1/12/2004 +0100, Stéphane Payrard wrote: On Mon, Jan 12, 2004 at 03:16:50PM -0500, Dan Sugalski wrote: Which brings up a question. What's the difference between .local and .sym? -- Currently, there is none. So I went for the shortest: grep -n -e LOCAL imcc.l imcc.l:181:.sym

[PATCH] Updatecc fix

2004-01-13 Thread Luke Palmer
In the spirit of getting real continuations working Just Right, this modifies IMCC's PCC implementation to emit the updatecc *after* the pushtop, so that the redundant pushtop isn't necessary when returning with a real continuation. I'm also thinking that updatecc should cow_copy_context, not

run-once code

2004-01-13 Thread David Storrs
Given this code: if ( some_expensive_lookup_function() = $MAX_RECORDS ) { mark_that_we_have_reached_max_records(); return; } After I enter that block once, I never want to evaluate the condition again--I want the code to completely disappear from the bytecode

Re: run-once code

2004-01-13 Thread Luke Palmer
David Storrs writes: Given this code: if ( some_expensive_lookup_function() = $MAX_RECORDS ) { mark_that_we_have_reached_max_records(); return; } After I enter that block once, I never want to evaluate the condition again--I want the code to completely