lua-users home
lua-l archive

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


On Fri, 21 Sep 2018 at 05:42, Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:
> In "luaconf.h" we could choose datatypes for Lua integers and Lua floats (LUA_INT_TYPE, LUA_FLOAT_TYPE).
> I'm curious whether non-standard configurations exist in wide use or not?
>
> Could you provide examples, such as:
> "The router ${POPULAR_ROUTER_NAME} runs Lua with 32-bit integers instead of 64-bit",
> "The ${FAR_FAMED_GAME_SCRIPTING_ENV} implements Lua with 32-bit floats instead of double",
> and the like.

Fengari implements Lua with the equivalent of 32bit integers and 64bit
floats. i.e. on most compilers: LUA_INT_TYPE=LUA_INT_INT

I try and test my libraries in such a configuration. e.g. see
https://github.com/daurnimator/lua-http/blob/ea12beba8647adaf9ab7fbe151850104714d2577/.travis.yml#L17