Nmap Development mailing list archives

Re: Upgrading NSE to Lua 5.3


From: devin bjelland <devinbjelland () gmail com>
Date: Sat, 31 Jan 2015 10:17:52 -0600

I built your branch and the NSE is working fine. It will be nice for
maintainability and readability to have native bitwise operations. The
other features in Lua 5.3 look useful as well.


On Sat, Jan 24, 2015 at 8:47 PM, Patrick Donnelly <batrick () batbytes com>
wrote:

Hi List,

I've just run through NSE upgrading it to Lua 5.3. The current branch is
here:

https://svn.nmap.org/nmap-exp/patrick/nse-lua53@33937

Lua 5.3 has a number of attractive features including 64 bit integers,
native bitwise operators, builtin string.pack/string.unpack, a utf8
encoding library,

Here are two interesting changes in this branch for Lua 5.3:

o I have removed the old C compiled bit library (nse_bit.cc). It's
been replaced by a Lua library that wraps the new bitwise operators.
I've marked it as deprecated. So, existing scripts using the "bit"
library will continue to function.

o I've only marked the bin library as deprecated. There are some minor
differences between the old bin library and Lua's new
string.pack/unpack. A wrapper library may be difficult.

I don't consider the branch done yet, I will be looking over the code
in depth again to make sure I didn't miss anything.

I would appreciate any feedback (including: "it builds!").

--
Patrick Donnelly
_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: