Re: [perl #70045] [PATCH] Make IO::Socket::INET.accept() return an IO::Socket::INET object rather than a Parrot IO object

2009-10-28 Thread Moritz Lenz
Carlin Bingham (via RT) wrote: > This patch makes accept() return an instance of IO::Socket::INET with > the $!PIO attribute set to the Parrot IO object that accept() currently > returns. > > This will affect applications that currently call recv() from the object > created

[perl #70045] [PATCH] Make IO::Socket::INET.accept() return an IO::Socket::INET object rather than a Parrot IO object

2009-10-28 Thread via RT
# New Ticket Created by Carlin Bingham # Please include the string: [perl #70045] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=70045 > The current IO::Socket::INET.accept() returns a Parrot IO object rather than

[perl #48070] [TODO] Replace Parrot::IO::Capture::Mini with IO::CaptureOutput

2007-12-27 Thread James Keenan via RT
We've replaced Parrot::IO::Capture::Mini throughout with IO::CaptureOutput, so I'm removing Mini.pm from the distribution and resolving the ticket. Thanks to Alan Rocker for assistance.

[perl #48070] [TODO] Replace Parrot::IO::Capture::Mini with IO::CaptureOutput

2007-12-14 Thread James Keenan via RT
On Fri Dec 14 08:37:50 2007, [EMAIL PROTECTED] wrote: > Unless someone shouts, in a few hours I'll be applying a patch visible > here: http://thenceforward.net/parrot/diff.io.captureoutput.txt Patches applied to trunk in r23890.

[perl #48070] [TODO] Replace Parrot::IO::Capture::Mini with IO::CaptureOutput

2007-12-14 Thread James Keenan via RT
Unless someone shouts, in a few hours I'll be applying a patch visible here: http://thenceforward.net/parrot/diff.io.captureoutput.txt

[perl #48070] [TODO] Replace Parrot::IO::Capture::Mini with IO::CaptureOutput

2007-12-06 Thread James Keenan via RT
Am working on this with new Parrot contributor Alan Rocker. We've transformed 17 tests so far; 65 to go.

[perl #48070] [TODO] Replace Parrot::IO::Capture::Mini with IO::CaptureOutput

2007-12-02 Thread via RT
by creating Parrot::IO::Capture::Mini. Its main use is to capture verbose output during testing so as to reduce terminal clutter and to see if correct output is generated. I've run into a number of difficulties with P::IO::C::Mini and tonight began to explore the possibility of replacing it w

Re: Parrot IO

2006-06-25 Thread Jonathan Worthington
"Vishal Soni" <[EMAIL PROTECTED]> wrote: Is Parrot IO going to be implemented via opcodes or PMC? I looked at some old email discussion. There were discussions on refactoring some IO opcodes to PMC's (e.g socket opcodes). Have we reached on any decisions as to how we a

Parrot IO

2006-06-24 Thread Vishal Soni
Hi, Is Parrot IO going to be implemented via opcodes or PMC? I looked at some old email discussion. There were discussions on refactoring some IO opcodes to PMC's (e.g socket opcodes). Have we reached on any decisions as to how we are going to implement the Parrot IO? -- Thanks, Vishal

Re: [perl #37876] Bug with Parrot::IO test

2005-12-10 Thread Joshua Hoblitt
On Sat, Dec 10, 2005 at 01:21:27PM -1000, Joshua Hoblitt wrote: > On Sat, Dec 10, 2005 at 03:04:09PM -0800, chromatic wrote: > > Seems reasonable to me, unless curdir() can ever return 0 or undef, and > > also fixes my bug #37875. > > We could explicitly test if the return eq '' which would let 0

Re: [perl #37876] Bug with Parrot::IO test

2005-12-10 Thread Joshua Hoblitt
Awww, I bet you meant bug #37865. #37876 is clearly a duplicate so I'm going to merge #37876 into #37865. -J -- On Sat, Dec 10, 2005 at 02:48:25PM -1000, Joshua Hoblitt wrote: > On Sat, Dec 10, 2005 at 03:04:09PM -0800, chromatic wrote: > > Seems reasonable to me, unless curdir() can ever return

Re: [perl #37876] Bug with Parrot::IO test

2005-12-10 Thread Joshua Hoblitt
On Sat, Dec 10, 2005 at 03:04:09PM -0800, chromatic wrote: > Seems reasonable to me, unless curdir() can ever return 0 or undef, and > also fixes my bug #37875. It there something 'magical' about 37875? RT won't let me view it. -- RT Error No permission to view ticket -- -J -- pgpL6

Re: [perl #37876] Bug with Parrot::IO test

2005-12-10 Thread Joshua Hoblitt
On Sat, Dec 10, 2005 at 03:04:09PM -0800, chromatic wrote: > On Sat, 2005-12-10 at 12:52 -1000, Joshua Hoblitt wrote: > > > I think we need to also change Parrot::IO::Directory->relative_path() to > > filter out '' and replace it with '.' or else we'

Re: [perl #37876] Bug with Parrot::IO test

2005-12-10 Thread chromatic
On Sat, 2005-12-10 at 12:52 -1000, Joshua Hoblitt wrote: > I think we need to also change Parrot::IO::Directory->relative_path() to > filter out '' and replace it with '.' or else we'll have to bundle a > recent version of File::Spec with Parrot, which I&#

Re: [perl #37876] Bug with Parrot::IO test

2005-12-10 Thread Joshua Hoblitt
- abs2rel() used to return the empty string when its two arguments > >were identical, which made no sense. Now it returns > >curdir(). [Spotted by David Golden] > > > >So, maybe we should replace '.' by File::Spec->curdir() but I'm not sure. > >

[perl #37876] Bug with Parrot::IO test

2005-12-10 Thread via RT
# New Ticket Created by Alberto Manuel Brandao Simoes # Please include the string: [perl #37876] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37876 > --- osname= darwin osvers= 8.0 arch= darwin-thread-multi-2level cc=

Re: [perl #37876] Bug with Parrot::IO test

2005-12-10 Thread Alberto Simões
arrotbug regarding: "Bug with Parrot::IO test" There is no need to reply to this message right now. Your ticket has been assigned an ID of [perl #37876]. Please include the string: [perl #37876] In the subject line of all future correspondence about this issue. To do so, y

Re: [perl #37876] Bug with Parrot::IO test

2005-12-10 Thread Alberto Simões
replace '.' by File::Spec->curdir() but I'm not sure. Alberto Parrot Assembler via RT wrote: Greetings, This message has been automatically generated in response to the creation of a parrotbug regarding: "Bug with Parrot::IO test" There is no need to reply to t

[perl #22857] Parrot IO test failures

2005-01-13 Thread Will Coleda via RT
> [EMAIL PROTECTED] - Mon Jun 30 07:15:44 2003]: > > > A further data point: the tests pass if I use IMCC to assemble them, > rather than assemble.pl > > Simon > Since assemble.pl is no more, closing this ticket.

Re: Parrot IO fun

2003-10-31 Thread Melvin Smith
At 09:16 AM 10/31/2003 -0500, David Robins wrote: On Thu, 30 Oct 2003, Melvin Smith wrote: > At 12:09 AM 10/31/2003 +, Nicholas Clark wrote: > >On Thu, Oct 30, 2003 at 01:54:24AM -0500, Melvin Smith wrote: > > > Parrot fetched its first web page tonight. Its a baby step, but hey... :) > > > >

Re: Parrot IO fun

2003-10-31 Thread David Robins
On Thu, 30 Oct 2003, Melvin Smith wrote: > At 12:09 AM 10/31/2003 +, Nicholas Clark wrote: > >On Thu, Oct 30, 2003 at 01:54:24AM -0500, Melvin Smith wrote: > > > Parrot fetched its first web page tonight. Its a baby step, but hey... :) > > > >Can we do IPv6? > > Some of the changes are pretty

Re: Parrot IO fun

2003-10-30 Thread Melvin Smith
At 12:09 AM 10/31/2003 +, Nicholas Clark wrote: On Thu, Oct 30, 2003 at 01:54:24AM -0500, Melvin Smith wrote: > Parrot fetched its first web page tonight. Its a baby step, but hey... :) > > You can now stuff hostnames into a socket as well as a numeric IP address. > > see examples/io/http.imc C

Re: Parrot IO fun

2003-10-30 Thread Nicholas Clark
On Fri, Oct 31, 2003 at 12:09:14AM +, Nicholas Clark wrote: > On Thu, Oct 30, 2003 at 01:54:24AM -0500, Melvin Smith wrote: > > Parrot fetched its first web page tonight. Its a baby step, but hey... :) I forgot to say: Hey, cool! Nice work. Today web pages, tomorrow self propagating worms? M

Re: Parrot IO fun

2003-10-30 Thread Nicholas Clark
On Thu, Oct 30, 2003 at 01:54:24AM -0500, Melvin Smith wrote: > Parrot fetched its first web page tonight. Its a baby step, but hey... :) > > You can now stuff hostnames into a socket as well as a numeric IP address. > > see examples/io/http.imc Can we do IPv6? (Not meant to be a throw away que

Parrot IO fun

2003-10-29 Thread Melvin Smith
Parrot fetched its first web page tonight. Its a baby step, but hey... :) You can now stuff hostnames into a socket as well as a numeric IP address. see examples/io/http.imc -Melvin

Re: cvs commit: parrot/io io.c io_buf.c

2003-10-13 Thread Juergen Boemmels
Melvin Smith <[EMAIL PROTECTED]> writes: > >Did you consider using the method interface in ParrotIO? That ought to > >be even extensible with user code. > > Yes, I'm trying to get back up to speed on everything. The method interface > is a new feature that I need to look at. I've written a first

Re: cvs commit: parrot/io io.c io_buf.c

2003-10-11 Thread Melvin Smith
At 09:59 AM 10/11/2003 +0200, Leopold Toetsch wrote: Melvin Smith <[EMAIL PROTECTED]> wrote: > I personally don't like to add an opcode for every special case > because most of them are very rarely used, but as usual its > up for discussion. Did you consider using the method interface in ParrotIO?

Re: cvs commit: parrot/io io.c io_buf.c

2003-10-11 Thread Leopold Toetsch
Melvin Smith <[EMAIL PROTECTED]> wrote: > I personally don't like to add an opcode for every special case > because most of them are very rarely used, but as usual its > up for discussion. Did you consider using the method interface in ParrotIO? That ought to be even extensible with user code. >

Re: cvs commit: parrot/io io.c io_buf.c

2003-10-10 Thread Melvin Smith
At 11:23 PM 10/10/2003 +0100, Nicholas Clark wrote: On Fri, Oct 10, 2003 at 05:55:11PM -0400, Melvin Smith wrote: > Which ones? The PIOCTL ones are, for a lack of current > interface, a way for interfacing to the lower level IO > system through a catchall opcode. It can be anything from > setting t

Re: cvs commit: parrot/io io.c io_buf.c

2003-10-10 Thread Nicholas Clark
On Fri, Oct 10, 2003 at 05:55:11PM -0400, Melvin Smith wrote: > Which ones? The PIOCTL ones are, for a lack of current > interface, a way for interfacing to the lower level IO > system through a catchall opcode. It can be anything from > setting terminal modes, buffering, separator characters, the

Re: cvs commit: parrot/io io.c io_buf.c

2003-10-10 Thread Melvin Smith
Which ones? The PIOCTL ones are, for a lack of current interface, a way for interfacing to the lower level IO system through a catchall opcode. It can be anything from setting terminal modes, buffering, separator characters, the list goes on. Although we probably want to make separate ops for commo

Re: cvs commit: parrot/io io.c io_buf.c

2003-10-10 Thread Nicholas Clark
On Fri, Oct 10, 2003 at 02:43:10AM -, Melvin Smith wrote: > +else if(arg == PIOCTL_BLKBUF) { > + PIO_setbuf(interpreter, pmc, PIO_UNBOUND); > + return 0; > +} > +else return -3; > case PIOCTL_CMDGETBUFSIZE: >

Re: [perl #22854] Incongruity in Parrot IO and/or Parrot I/O crashes on STDIN read

2003-07-08 Thread Leopold Toetsch
Clinton Pierce wrote: What I do know is that imcc -t under Win32 is crash-happy Snippet runs fine on Linux (with typo adjusted or not) as well as your previous one, -t or not. But, as IO is under *construction* some issues might remain. They'll get resolved. leo

Re: [perl #22854] Incongruity in Parrot IO and/or Parrot I/O crashes on STDIN read

2003-07-08 Thread Clinton Pierce
Typo! > getstderr P3 # STDOUT Should have been "getstdout" Although... if left at getstderr the error also goes away. (Add that to my bullet list.) My haven't-grokked-the-code psychic abilities tell me that "getstdout" does something Real Bad to the stdout filehandle

Re: [perl #22854] Incongruity in Parrot IO and/or Parrot I/O crashes on STDIN read

2003-07-08 Thread Clinton Pierce
I'm not sure whether getstd\w+ is supposed to give me a new reference or not. From now on I'll code that portion defensively. What I do know is that imcc -t under Win32 is crash-happy and I can't trace beyond the first getstdin. Greatly simplified example: .sub _main $P0=new PerlArray

Re: [perl #22854] Incongruity in Parrot IO and/or Parrot I/O crashes on STDIN read

2003-07-08 Thread Juergen Boemmels
"Clinton Pierce" <[EMAIL PROTECTED]> writes: > Given that, there's a possible bug in Jürgen's patch (or IMCC?). Given: > > .sub _main > call _INIT > .arg 0 > call _READLINE > .result $S0 > print $S0 > end > .end > .sub _INIT > $P0=new PerlArray # A

Re: [perl #22854] Incongruity in Parrot IO and/or Parrot I/O crashes on STDIN read

2003-07-08 Thread Leopold Toetsch
Clinton Pierce wrote: new $P4, PerlArray A current workaround for the missing clone in ParrotIO: getstdin P0 getstdout P1 getstderr P2 $P4[0], P0 $P4[1], P1 $P4[2], P2 leo

Re: [perl #22854] Incongruity in Parrot IO and/or Parrot I/O crashes on STDIN read

2003-07-08 Thread Leopold Toetsch
Clinton Pierce wrote: set P1[0], P0 getstdout P0# <-- bug is here? Overwrote my P0. set P1[1], P0 Yep a bug is here. But this bug is a BASIC compiler bug. Things that go into aggregates (or are stored in lex pads/global tables) are stored by reference. You

Re: [perl #22854] Incongruity in Parrot IO and/or Parrot I/O crashes on STDIN read

2003-07-08 Thread Clinton Pierce
>>> .sub _main >>> fdopen $P1, 0, "r" # STDIN > >BTW > fdopen $P1, 0, "<" # read STDIN > >>> 3. its currently only defined for PIO_OS_UNIX > >> Okaaay, so the plan is for this to work and I should probably code this way anyway, >> right? > > You could just

Re: [perl #22857] Parrot IO test failures

2003-07-01 Thread Juergen Boemmels
Leopold Toetsch <[EMAIL PROTECTED]> writes: > Simon Glover <[EMAIL PROTECTED]> wrote: > > I'm getting failures in tests 1 & 2 in t/pmc/io.t; however, both tests > > seem to run fine if I run them in the debugger. > > valgrind does indicate, that there are unitialized items in many > parts of io

Re: [perl #22857] Parrot IO test failures

2003-06-30 Thread Leopold Toetsch
Simon Glover <[EMAIL PROTECTED]> wrote: > I'm getting failures in tests 1 & 2 in t/pmc/io.t; however, both tests > seem to run fine if I run them in the debugger. valgrind does indicate, that there are unitialized items in many parts of io_buf.c. (I don't know, if these tests even should use the

Re: [perl #22857] Parrot IO test failures

2003-06-30 Thread Simon Glover
A further data point: the tests pass if I use IMCC to assemble them, rather than assemble.pl Simon

[perl #22857] Parrot IO test failures

2003-06-30 Thread via RT
# New Ticket Created by Simon Glover # Please include the string: [perl #22857] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=22857 > Hi, I'm getting failures in tests 1 & 2 in t/pmc/io.t; however, both tests seem to

Re: [perl #22854] Incongruity in Parrot IO and/or Parrot I/O crashes on STDIN read

2003-06-30 Thread Leopold Toetsch
Clinton Pierce <[EMAIL PROTECTED]> wrote: >> .sub _main >> fdopen $P1, 0, "r" # STDIN BTW fdopen $P1, 0, "<" # read STDIN >> 3. its currently only defined for PIO_OS_UNIX > Okaaay, so the plan is for this to work and I should probably code this way anyway

Re: [perl #22854] Incongruity in Parrot IO and/or Parrot I/O crashes on STDIN read

2003-06-30 Thread Clinton Pierce
> First, always check the result of IO operations. If something fails, > these return a PerlUndef, so: > .sub _main > fdopen $P1, 0, "r" # STDIN > defined $I0, $P1 *Doh* Stupid Newbie Error. > unless $I0, err > read $S0, $P1, 255 >

Re: [perl #22854] Incongruity in Parrot IO and/or Parrot I/O crashes on STDIN read

2003-06-30 Thread Leopold Toetsch
Clinton A. Pierce (via RT) wrote: Suggestions welcome! First, always check the result of IO operations. If something fails, these return a PerlUndef, so: .sub _main fdopen $P1, 0, "r" # STDIN defined $I0, $P1 unless $I0, err read $S0, $P1, 255 print $S0

[perl #22854] Incongruity in Parrot IO and/or Parrot I/O crashes on STDIN read

2003-06-29 Thread Clinton A. Pierce
# New Ticket Created by "Clinton A. Pierce" # Please include the string: [perl #22854] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=22854 > This is either an oversight in the current implementation *or* its a bug. Or bot

Re: cvs commit: parrot/io io.c

2002-01-28 Thread Melvin Smith
@@ >v = op_assembly[*pc].string_register_address; >for (i = 0; i < v.amount; i++) >{ > -address = (INTVAL > *)&interpreter->string_reg->registers[pc[v.info[i].number]]; >