[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 (work1) now available
- From: Ben Sunshine-Hill <sneftel@...>
- Date: Fri, 10 Sep 2004 03:41:35 -0700
It would be very nice to see this in the standard library. In
particular, it would be good for dumping chunks. (Self-interest is my
primary motivation here; Pluto had to stop using the luaL_buffer
functions, because they mess with the stack, and it would be nice to
move from my rather inefficient replacement to a nice, standardized
solution.)
Ben
On Fri, 10 Sep 2004 00:54:12 -0400, Jay Carlson <nop@nop.com> wrote:
> Philippe Lhoste writes:
>
> > > string.reverse (s)
> > > returns a reversed copy of string 's'
> > [snip]
> >
> > This one is very strange...
> > Can somebody give me a real-world use case where this function is so
> > useful that it needs to go in a standard library? I can't think any
> > practical use myself. Perhaps it is a temporary test function?
> >
> > I would rather see a string buffer library added to the standard
> > library. One that would allow building large strings without hashing and
> > perhaps GC overhead, allowing direct read/write of bytes in arbitrary
> > addresses within the string size, automatic growth of buffer (or not),
> etc.
>
> > I would write it myself, but never got time to start it...
> > So would it be useful at all?
>
> Well, I started it in January.
>
> http://www.place.org/~nop/lua-iostring.tar.gz
>
> I need to add in some of the suggested changes from mailing list users
> someday.
>
> Jay
>
>