lua-users home
lua-l archive

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



On 24 Aug 2006, at 20:46, Jerome Vuarand wrote:


- long double as the lua native type - been working on this. People
  seem horrified.... but I don't do any arithmetic to speak of other
  than comparisons, simple counting loops, etc., I just need to move
  data back and forth between C and lua accurately. I'm still working
  on this.

Using long doubles on a 64bit platform is not much worse than using
doubles on a 32bits platform. It's just that people are not yet used to
them.

Where did you draw that conclusion from? 64-bit Power, SPARC, and Alpha platforms all have 64-bit floating-point units, so long double is a _lot_ worse. Of course, if you're talking about some narrow case like Intel's 64-bit platforms then you may well be right.

Can't say that long double in Lua horrifies me, but then, last year I did a complex number Lua as a hack.

drj