[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua BitOp 1.0.0 released
- From: "David Manura" <dm.lua@...>
- Date: Wed, 17 Dec 2008 02:26:28 -0500
On Tue, Dec 16, 2008 at 9:41 PM, Mike Pall wrote:
> Lua BitOp is a C extension module for Lua 5.1 which adds
> bitwise operations on numbers.
This looks great, Mike. One thing though is that 'require "bit"'
conflicts with the package name of lbitlib as currently used in
LuaRocks and LuaDist. Then again, does there remain any reason to use
lbitlib over BitOp? Of the various implementations, these two
projects look similar enough in design to be combined. (LuaBit
also uses the package name "bit", but I don't think that is used as
Also, one quasi-convention in Perl is for the package name of a Perl
reimplementation of a C Module to be postfixed by ::Perl. So, there
exists Compress::Zlib and Compress::Zlib::Perl. Similarly, I would
suggest that any Lua-only reimplementation of this interface be given
the package name "bitlua" or something like that.
BTW, I had recently implemented the Lua-only bitwise op library
(bit.numberlua) based on Roberto's approach in the link below, both of
which are in the link below. However, it currently uses non-negative
Lua numbers as its underlying data type, so the semantics might not
currently be identical to BitOp.