What's MY.line?

2002-07-09 Thread Chip Salzenberg
In (re?)examining the Apocalypses, I've found something that confuses me a bit. A2 refers to C as a "pseudopackage" and says: __LINE__ becomes MY.line __FILE__ " MY.file There is also Apocalypsal reference to C<%MY> as a name for the current lexical symbol table. First:

Re: Mutable vs immutable strings

2002-07-09 Thread Clark C . Evans
On Tue, Apr 23, 2002 at 04:13:24PM -0400, Dan Sugalski wrote: | Should strings in parrot be mutable or immutable? Right now we've a | mix, and that's untenable. Sorry to comment so late. I think that the choice above isn't good enough. You need both strings and buffers. I say this beacuse ther

Building support for non-native bytecode

2002-07-09 Thread Dan Sugalski
Now that we've got docs and specs for many of the other VM systems out there, it's time to see about writing code to execute them. There are three basic things we need here for each. 1) A bytecode loading module. This takes on-disk non-native bytecode and turns it into parrot bytecode. At the

RE: Tasks for the interested

2002-07-09 Thread John Porter
Garrett Goebel wrote: > John Porter wrote: > > Not to beat on Dan (or anyone else), but for the sake of those > [...] > > Please don't beat on Dan... ;) I'm not! > Parrot isn't Perl. I.e., your Perl-vision blinders are on a tad > tight. It's the first general purpose vm for dynamic languages.

RE: Tasks for the interested

2002-07-09 Thread Garrett Goebel
From: John Porter [mailto:[EMAIL PROTECTED]] > Dan Sugalski wrote: > > John Porter wrote: > > >I assume (but I'm open to correction) that it is *not* to simulate > > >the vm of other language environments, so as to execute faithfully > > >bytecode produced in those environments. (That is, taking

Documentation indexer

2002-07-09 Thread Marc M. Adkins
I would like to humbly submit a perl script designed to dig through the Parrot directory tree, locate POD in likely _and_ unlikely places, and generate a tree of HTML pages into a new subdirectory. Includes a top-level index. Run it from the top-level parrot directory with no arguments. Start b

Re: Tasks for the interested

2002-07-09 Thread John Porter
Dan Sugalski wrote: > John Porter wrote: > >I assume (but I'm open to correction) that it is *not* to simulate > >the vm of other language environments, so as to execute faithfully > >bytecode produced in those environments. (That is, taking object > >code from a python compiler (e.g.) and execu

Re: Continuations for fun and profit

2002-07-09 Thread Peter Haworth
On Tue, 9 Jul 2002 16:42:03 +0100, Peter Haworth wrote: > > When you invoke a continuation you put the call scratchpads and lexical > > scratchpads back to the state they were when you took the continuation. > > If you restore the lexicals, how does this ever finish? Never mind. It's the *acces

Re: Continuations for fun and profit

2002-07-09 Thread Peter Haworth
On Mon, 8 Jul 2002 16:54:16 -0400, Dan Sugalski wrote: > while ($foo) { > $foo--; > } > > Pretty simple. (For illustrative purposes) To do that with > continuations, it'd look like: > > $cont = take_continuation(); > if ($foo) { > $foo--; > invoke($cont); >

Re: Tasks for the interested

2002-07-09 Thread John Porter
Dan Sugalski wrote: > John Porter wrote: > > I assume (but I'm open to correction) that it is *not* to simulate > > the vm of other language environments, so as to execute faithfully > > bytecode produced in those environments. (That is, taking object > > code from a python compiler (e.g.) and e

Re: new Key code breaks my code..

2002-07-09 Thread Dan Sugalski
At 9:21 AM +0200 7/9/02, =?latin1?Q?Josef_H=F6=F6k?= wrote: >I was just wondering how should i handle multidimensional keyed access >in my Matrix pmc. I see that my code i broken with this weeks parrot code. >Can someone please but some api specs. We don't have a standard, at least until now. Fo

Re: Continuations for fun and profit

2002-07-09 Thread Ted Zlatanov
On Mon, 8 Jul 2002, [EMAIL PROTECTED] wrote: > Yep. But serializing continuations is either tough, or not > completely doable, since programs tend to have handles on things > outside their direct control like filehandles, sockets, database > connections, and suchlike things. Resuming a continuatio

Cache

2002-07-09 Thread Dan Sugalski
Ars Technica's got a reasonably nice explanation of CPU caches at http://arstechnica.com/paedia/c/caching/caching-1.html, for the interested. -- Dan --"it's like this"--- Dan Sugalski

Re: Tasks for the interested

2002-07-09 Thread Dan Sugalski
At 9:45 PM -0700 7/8/02, John Porter wrote: > > Dan wrote: >> > 1) Dig through the perl source and find out all the opcodes. >> > (pp.c and friends) Document the opcodes and what they do. >> > >> > 2) The same as #1, only for Python >> > . . . >> > >> > Once we get these, the next task is

Finding closure in the continuous forest

2002-07-09 Thread Mike Lambert
> Perhaps we should just explain continuations in terms of time travel. > Most people think they understand time travel, even when they don't. > A continuation is just a funny label for a point in time, and you have > a way of sending messages from the future back to that point in time. Hrm...her

new Key code breaks my code..

2002-07-09 Thread Josef Höök
I was just wondering how should i handle multidimensional keyed access in my Matrix pmc. I see that my code i broken with this weeks parrot code. Can someone please but some api specs. /Josef