-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hello,
I would like to said BIG THANKS for your work.
For years, I'm searching a way to go outside of native limitations for numbers and bitwise operations with interpreted code (without lib/compilation stuff)
I tried by myself, I tried with very old thirdparty code.
Your lua-nums is the first one with all features, both big int and bitwise operation.
Your code is very well documented. I think you like your project/code and hardly follow your own rules.
I see some coding style that is unusual for me.
- Do you comes from C world ?
I read lot oflocal variable, one per line at the beginning of each functions.
It is unusual for Lua code.
Usualy I uselocalnear the first use.
You'll have guessed it, I have a big interest on lua-nums.
Are you open to alternative implementation to compare some function one by one.
In some case the generated bytecode is very different and performance can be also different...
I would like to know if you are interested to discuss of possible changes more complexe than minor change that I made for now.
I think also about spliting the tostring_int to 2 parts :
- the convertion code needed to change base (returning a BN or a table of digits)
- the need to convert a table of digits to a string with the sign
The previous bug of len_digits can fixed by getting the._digitstable size directly, without string convertion (without dealing with the sign).
I think also about the use of expand + reduce, I think there is other way to do.
Best Regards,