Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Stream library ready
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Leopold Toetsch  
View profile  
 More options Apr 7 2004, 3:00 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Wed, 7 Apr 2004 08:19:18 +0200
Local: Wed, Apr 7 2004 2:19 am
Subject: Re: [NEW] Stream library ready

Jens Rieks <par...@jensbeimsurfen.de> wrote:
> Hi all,
> here is a working version of my new Stream library.  I will add more
> documentation later this month, the examples should be enough to
> understand the usage.

Looks good. Should it go into CVS?

BTW: some C<getprop>s still survived.

leo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jens Rieks  
View profile  
 More options Apr 7 2004, 4:48 am
Newsgroups: perl.perl6.internals
From: par...@jensbeimsurfen.de (Jens Rieks)
Date: Wed, 7 Apr 2004 10:29:46 +0200
Local: Wed, Apr 7 2004 4:29 am
Subject: Re: [NEW] Stream library ready
On Wednesday 07 April 2004 08:19, Leopold Toetsch wrote:
> Looks good. Should it go into CVS?

Yes it can.

> BTW: some C<getprop>s still survived.

getprop? I found two delprops, removed.

Can I get commit privs?
I also have a Data::Dumper patch nearly ready that removes the F<onload.imc>
and F<objects.imc> usage. It is very time consuming to send patches by mail.

> leo

jens

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Apr 7 2004, 5:49 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Wed, 7 Apr 2004 10:54:28 +0200
Local: Wed, Apr 7 2004 4:54 am
Subject: Re: [NEW] Stream library ready

Jens Rieks <par...@jensbeimsurfen.de> wrote:
> Can I get commit privs?

That would be the best.

leo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Apr 7 2004, 11:48 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Wed, 7 Apr 2004 17:42:38 +0200
Local: Wed, Apr 7 2004 11:42 am
Subject: Re: [NEW] Stream library ready

Jens Rieks <par...@jensbeimsurfen.de> wrote:
> here is a working version of my new Stream library.  I will add more
> documentation later this month, the examples should be enough to
> understand the usage.

I'm currently investigating a bunch of SIGSEGVs when tracing the examples.
They are all coming from Stream::Sub's usage of continuations:

,--[ Stream::Sub ]------------------------------------------------------
| This special "method" can call C<write>, which will internally create
| a Continuation to return to the current execution point when read is
| called the next time. The C<read> method creates a continuation before
| invoking the provided sub or the continuation captured by the write
| method. C<read>'s continuation is used to return the string parameter
| passed to C<write> as the return value of the read method.
`-----------------------------------------------------------------------

The problem seems to be context handling. When C<write> creates the
Continuation, it saves a different context as that one that is inplace
and will be restored, when the Continuation is invoked.

Further, in C<rawRead> P1 is stored away (and invoked later), which
isn't allowed.  But cloning it doesn't help because the continuation
context is still wrong.

I think to get that right we need some more support to copy contexts
around.

How exactly should these contexts look like for these two
continuations?

leo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jens Rieks  
View profile  
 More options Apr 7 2004, 12:48 pm
Newsgroups: perl.perl6.internals
From: par...@jensbeimsurfen.de (Jens Rieks)
Date: Wed, 7 Apr 2004 18:24:31 +0200
Local: Wed, Apr 7 2004 12:24 pm
Subject: Re: [NEW] Stream library ready
On Wednesday 07 April 2004 17:42, Leopold Toetsch wrote:
> Jens Rieks <par...@jensbeimsurfen.de> wrote:
> > here is a working version of my new Stream library.  I will add more
> > documentation later this month, the examples should be enough to
> > understand the usage.

> I'm currently investigating a bunch of SIGSEGVs when tracing the examples.
> They are all coming from Stream::Sub's usage of continuations:

Oops yes, I forgot to mention that. I though it is related to string handling,
running parrot with -G works, and it crashes only after processing some lines.

It should be a snapshot of the current execution chain, so that exactly the
same context is restored when invoking the continuation.
It is some kind of "context swapping":

   main exec chain          sub chain
---------------------------------------------
   Stream::Sub created
                            sub created
   stored as "source"

   read()

   create "read cont"
   call "source"
                            execution start

                            do something

                            write()

                            create continuation
                            store it as new "source"

                            call "read cont"
   back in read, directly
   after the invokation of
   the "source" sub/cont

   return the value passed to
   the "read cont" as return
   values of read()

   do something

   read()
   create "read cont"
                            back in write
                            return from write

                            do something

                            write()

                            create "write cont"
                            call "read cont"
...

> leo

jens

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Sugalski  
View profile  
 More options Apr 7 2004, 2:48 pm
Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Wed, 7 Apr 2004 14:05:48 -0400
Local: Wed, Apr 7 2004 2:05 pm
Subject: Re: [NEW] Stream library ready
At 10:54 AM +0200 4/7/04, Leopold Toetsch wrote:

>Jens Rieks <par...@jensbeimsurfen.de> wrote:

>>  Can I get commit privs?

>That would be the best.

I'm fine with it too. Set up a perl.org account (pointers to it from
bugs.perl.org) and mail me your login and I'll get things in motion.
--
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
d...@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Apr 9 2004, 8:48 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Fri, 9 Apr 2004 14:03:30 +0200
Local: Fri, Apr 9 2004 8:03 am
Subject: Re: [NEW] Stream library ready

Jens Rieks <par...@jensbeimsurfen.de> wrote:
> On Wednesday 07 April 2004 17:42, Leopold Toetsch wrote:

>> Further, in C<rawRead> P1 is stored away (and invoked later), which
>> isn't allowed.  But cloning it doesn't help because the continuation
>> context is still wrong.

I've this now running.

$ ../parrot -t --gc-debug examples/streams/SubHello.imc 2>/dev/null
read:[hello]
read:[world!]
read:[parrot]
read:[is cool]

Where a return continuation is reused the code
should look like:

  $P1 = clone P1
  # store $P1

The "clone" for return continuation resets the recycle flag (on both
sides) so that e.g. a Sub can exit through this P1 multiple times.

The code is quite hackish and I'm still not sure, if we can keep this
optimization, we'll see.

leo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jens Rieks  
View profile  
 More options Apr 9 2004, 8:48 am
Newsgroups: perl.perl6.internals
From: par...@jensbeimsurfen.de (Jens Rieks)
Date: Fri, 9 Apr 2004 14:28:26 +0200
Local: Fri, Apr 9 2004 8:28 am
Subject: Re: [NEW] Stream library ready
Hi,

On Friday 09 April 2004 14:03, Leopold Toetsch wrote:

I'll check it in now.

There is also a new Stream::Writer, an inside-turned-out version of
Stream::Sub. You can call "write" in the normal call chain; the reading is
done in the sub one provides.

> leo

jens

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Apr 9 2004, 10:48 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Fri, 9 Apr 2004 15:48:22 +0200
Local: Fri, Apr 9 2004 9:48 am
Subject: Re: [NEW] Stream library ready

Jens Rieks <par...@jensbeimsurfen.de> wrote:
> There is also a new Stream::Writer,

Wasn't The Plan to move over to runtime/parrot/lib or library?

> jens

leo

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jens Rieks  
View profile  
 More options Apr 9 2004, 11:48 am
Newsgroups: perl.perl6.internals
From: par...@jensbeimsurfen.de (Jens Rieks)
Date: Fri, 9 Apr 2004 17:41:27 +0200
Local: Fri, Apr 9 2004 11:41 am
Subject: Re: [NEW] Stream library ready
On Friday 09 April 2004 15:48, Leopold Toetsch wrote:
> Wasn't The Plan to move over to runtime/parrot/lib or library?

Hmm, good question.
I'm waiting for a final decision where everyting should be moved to.

I vote for:
- runtime/parrot/library
- t/library
If parrot is modified to search files in runtime/parrot, everything should
continue to work with the paths currently in use.
If parrot is going to be installed somewhere, it needs a place where it can
find all files anyway. I have no clue what has to be done till everything
will be found at the new location. I think IMCC and load_bytecode needs some
work to make the relocation possible.

I can have a look at it after the 16th, have to learn for two written
examinations this week.

> leo

jens

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Apr 10 2004, 5:48 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Sat, 10 Apr 2004 10:28:42 +0200
Local: Sat, Apr 10 2004 4:28 am
Subject: Re: [NEW] Stream library ready

Jens Rieks wrote:

> I vote for:
> - runtime/parrot/library
> - t/library

Ok.

> If parrot is modified to search files in runtime/parrot, everything should
> continue to work with the paths currently in use.

I'll have a look at that.

> I can have a look at it after the 16th, have to learn for two written
> examinations this week.

Ok, thanks.

leo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »