LWN.net Logo

GNU Guile 2.0.7 released

GNU Guile 2.0.7 released

Posted Dec 4, 2012 10:58 UTC (Tue) by mpr22 (subscriber, #60784)
In reply to: GNU Guile 2.0.7 released by dakas
Parent article: GNU Guile 2.0.7 released

(e) is somewhat inaccurate. While it's true that a given instance of Lua only has a single numeric type, and the default configuration uses double, you can recompile your particular instance of Lua to use some other numeric type if that's what your use case indicates.


(Log in to post comments)

GNU Guile 2.0.7 released

Posted Dec 4, 2012 11:30 UTC (Tue) by dakas (guest, #88146) [Link]

I don't consider it inaccurate. Yes, you can recompile Lua to use a single other numerical type, typically integer, possibly even complex, because the source code uses a #define for this and has been carefully written to avoid mixing its number type with actual internal operations. That is considerate, but it does not give Lua a numerical stack but merely changes its single type, so you then forego the use of double.

And you need to recompile Lua for that, whereas you can just link with the standard libguile whatever your number requirements may be.

You can consider me a Lua fanboy, so if I mention a disadvantage in passing, it is rarely an advantage to dwell on it as I might have good reason for my opinion.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds