Re: problems with Lua
Felix von Leitner <[email protected]> Fri, 19 Jul 2013 21:52:30 +0200
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
> my project is Lua-AKFAvatar[1]. That is an unusual graphical user > interface which can be scripted with Lua[2]. > Since I try to keep everything small and portable, I thought it would > be a good idea if it could be compiled with dietlibc for embedded > Linux systems with a framebuffer. > To my own surprise I could get it working to some extend. The GUI stuff > runs. But also to my surprise, now it is Lua which seems to make trouble. > It seems to have trouble with numbers. Lua uses double for numbers. > And often I get a NaN instead of a simple number. That is at least > one problem, maybe there are others. > So has anyone here experience with Lua and dietlibc? Any hints? The floating point input and output routines are pretty buggy, unfortunately. Input and output of floating point numbers is harder than it looks, it turns out :-) Felix