Re: More Lua number types

  • From: Justin Cormack <justin@xxxxxxxxxxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 1 Aug 2012 09:57:16 +0100

On 1 Aug 2012 08:04, "Szabó Antal" <szabo.antal.92@xxxxxxxxx> wrote:
>
> Hi,
>
> How hard would it be to add multiple number types (float, double,
> (u)int(8|16|32|64)) to luajit as native lua types?
> I tried using ffi integer types, but the generated code is much worse
> than with the number type, I guess because of allocations the ffi
> needs.
>
>
> Antal Szabó
>

I think you should post some example code. Generally using ffi types is
fast.

Justin

Other related posts: