Re: More Lua number types

  • From: "Robert G. Jakabosky" <bobby@xxxxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 1 Aug 2012 01:13:56 -0700

On Wednesday 01, Szabó Antal 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.

Can you show example code that is worse because of allocations?  Also have you 
tried with the latest luajit 2 with allocation sinking?

I don't think there is any need to add more native types to luajit.

Robert G. Jakabosky

Other related posts: