Re: Input / Output encoding filters.

2006-02-22 Thread Leopold Toetsch
On Feb 22, 2006, at 9:32, MrJoltCola wrote: Obviously there is another camp that feels that everything needs to be implemented in low level C and special PMCs for each HLL and funky APIs everywhere - did I miss the high level C release? - "special PMCs for each HLL": - just no: one general c

Re: Input / Output encoding filters.

2006-02-22 Thread MrJoltCola
Just to add my 2 cents here, I've always felt that there should be basic primitives provided, and the HLL can take care of the rest. Technically the low-level IO routines don't have to know about encoding or compression schemes at all. A VM provides the building blocks, and you can add whatever

Re: Input / Output encoding filters.

2006-02-21 Thread Martin D Kealey
I'm a bit slow coming back to this, sorry. It seems that "seek" is used in two ways: * returning to some previously identified point (including the start or end of the file) * moving a given number of characters you want to move relative to a known location Clearly you can al

Re: Input / Output encoding filters.

2006-01-26 Thread Joshua Hoblitt
On Thu, Jan 26, 2006 at 07:18:55PM +, Nicholas Clark wrote: > On Thu, Jan 26, 2006 at 03:22:11PM +0800, Steve Gunnell wrote: > > > 5) Seeking through an encoding filter could be highly problematic. > > Filters such as "utf8" that have a non-deterministic byte per character > > ratio should pol

Re: Input / Output encoding filters.

2006-01-26 Thread Nicholas Clark
On Thu, Jan 26, 2006 at 03:22:11PM +0800, Steve Gunnell wrote: > 5) Seeking through an encoding filter could be highly problematic. > Filters such as "utf8" that have a non-deterministic byte per character > ratio should politely refuse seeks. In theory it ought to be possible to seek back to any

Re: Input / Output encoding filters.

2006-01-26 Thread Leopold Toetsch
Steve Gunnell wrote: Hi People, Back in December I asked a question about utf8 I/O. Leo responded pointing me at the encoding filters. I then published a possible implementation of PIO_utf8_read with a request for comments. Since that time I have been thinking about the testing and implementati

Input / Output encoding filters.

2006-01-25 Thread Steve Gunnell
Hi People, Back in December I asked a question about utf8 I/O. Leo responded pointing me at the encoding filters. I then published a possible implementation of PIO_utf8_read with a request for comments. Since that time I have been thinking about the testing and implementation of I/O filters. Actu