lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


hi


the first preview of Selene Base is available at
http://luaforge.net/frs/download.php/1734/slnbase-0.9.tar.bz2


It includes Tio, a fairly complete stdio replacement.
Some tests survived on linux, solaris and os x.
Currently windows code is only drafted.
scanf is not supported and double printing resorts to
the host libc by default, but can easily be replaced by
pure integer printing or the broken stuff from dietlibc.

The Lua IO library based on Tio supports a variety of file types,
including sockets and in-memory files,
either memory mapped real files or anonymous buffers,
plus a couple of extensions like explizit CR-LF-conversion.

All files have a format method, which is the same as of
the (unicode) string library. Format has lots of planned
extensions, some of which are already implemented
(e.g. urlen/decoding).
As format does not use a luaL_buffer, it can now push values on the
stack (e.g. for %n) and should eventually include functionality of
scanf (printed numbers), pack and unpack (binary numbers),
encode and decode (strings). The nice thing is that pushed values
can be used immediatly by other conversions without creating
intermediate strings.


For a longer blurb see http://malete.org/Selene-Base


Be careful, it's alpha, but you get the idea.


enjoy
Klaus