lua-users home
lua-l archive

Search lua-l

This index contains 143,615 documents and 1,774,615 keywords. Last update on 2023-03-09 .

Query: [How to search]

Display: Description: Sort by:

Results:

References: [ fixed: 3894 ] [ point: 15188 ]

Total 640 documents matching your query.

21. Re: reply:Re: reply:Using fixed string buffers to avoid extensive allocs for small strings (score: 187)
Author: Flyer31 Test <flyer31@...>
Date: Thu, 14 Oct 2021 13:04:23 +0200
With this "lock_new_index" described in http://lua-users.org/wiki/DetectingUndefinedVariables it should work I think. This creates a metatable for complete _G, so then I can use __newindex for any gl
22. Re: Integer implementation of floating point (score: 120)
Author: Warner Losh <imp@...>
Date: Thu, 26 Jan 2023 15:24:32 -0700
I've been working on updating Lunatik [1] to Lua 5.4.4 and rebasing it on Lua's git repository in the past few days; here is the result: [2]. It might be useful for disabling floating points complet
23. Re: Integer implementation of floating point (score: 117)
Author: Lourival Vieira Neto <lourival.neto@...>
Date: Thu, 26 Jan 2023 18:21:49 -0300
I've been working on updating Lunatik [1] to Lua 5.4.4 and rebasing it on Lua's git repository in the past few days; here is the result: [2]. It might be useful for disabling floating points complete
24. Integer implementation of floating point (score: 117)
Author: Warner Losh <imp@...>
Date: Thu, 26 Jan 2023 09:05:43 -0700
Greetings, My name is Warner Losh and I integrated a google summer of code project that changed FreeBSD's boot loader to use lua as its scripting language. This has gone great for years, but some of
25. Re: Read ieee-754-2008 four-byte floating-point number from binary file? (score: 117)
Author: maxxedout@...
Date: Sun, 11 Apr 2010 23:59:02 +0000 (UTC)
Well, since this Lua code is going to be a plugin for an existing C application, it shouldn't be too hard to do this specific function in C if I really need to. I just hoped to avoid it. (By the way,
26. Re: How to extract a floating point number locale-independantly (score: 113)
Author: Roberto Ierusalimschy <roberto@...>
Date: Thu, 28 Apr 2016 12:56:20 -0300
Maybe a nice compromisse would be to accept both the locale point and dots everywhere, except in the lexer. (Just for the record, "everywhere" means coercions from strings to numbers, 'tonumber', 'i
27. Re: How to extract a floating point number locale-independantly (score: 113)
Author: Daurnimator <quae@...>
Date: Tue, 26 Apr 2016 23:46:46 +1000
Yes for the specific case of ",", before I read the code I was thinking other locales might use something else that didn't conflict. Doesn't it get called once per floating point number encountered w
28. Re: Floating point (score: 113)
Author: Doug Rogers <rogers@...>
Date: Fri, 31 Mar 2006 13:22:51 -0500
I'm wondering if anyone knows of a way to make sure a value is only to two decimal points? I only ask because the obvious solution using (math.ceil(n * 100) == (n * 100)) doesn't work: print(math.fl
29. Re: How to extract a floating point number locale-independantly (score: 110)
Author: Daurnimator <quae@...>
Date: Wed, 27 Apr 2016 23:53:32 +1000
I'm pondering if this is okay to make it into a "bugfix" release: For: - the documented behaviour is closer to the new behaviour than the current behaviour - luajit embeds it's own strtod that doesn'
30. Re: Minimum size Lua without floats (e. g. for CORTEX-M0 cores) (score: 83)
Author: Flyer31 Test <flyer31@...>
Date: Tue, 18 May 2021 06:45:18 +0200
Thank you ... I also recognized now that the STM32G4 alreaedy are available in QFN32 / 5x5 mm, and this is fine for me (STM32G4 including 500kB ROM / 140kB RAM and Floating point)... . And I understa
31. Re: Minimum size Lua without floats (e. g. for CORTEX-M0 cores) (score: 70)
Author: Philippe Verdy <verdyp@...>
Date: Sun, 16 May 2021 16:15:29 +0200
Remember that old home computers had their BIOS/device handlers, basic filesystem and BASIC implemented entirely in a 32KB ROM and were still working within 16KB of RAM, leaving 16KB for the devices
32. Re: Minimum size Lua without floats (e. g. for CORTEX-M0 cores) (score: 67)
Author: Flyer31 Test <flyer31@...>
Date: Sun, 16 May 2021 15:13:47 +0200
Hi Phillippe, thank you for your remarks about PC history. But my "desired limit" would be the STM32G071, this has  BELOW 256kB ROM, it only has 128kB. And I cannot use all for Lua ... I also need RO
33. Re: Minimum size Lua without floats (e. g. for CORTEX-M0 cores) (score: 67)
Author: Philippe Verdy <verdyp@...>
Date: Sun, 16 May 2021 09:39:32 +0200
Stripping the support for tables would not work. This would no longer be Lua at all. Once you have tables, assing metatables is trivial (and they are important for many Lua applications and its core
34. Re: Integer patch for Lua 5.1 final (score: 63)
Author: "Daniel Collins" <daniel.collins@...>
Date: Tue, 28 Feb 2006 08:16:02 +1030
After more thought, I agree. I am not going to alter the lua core to use fixed point. If I need fixed point, I will create it as a fixed point library. This will require all fixed point arithmetic t
35. Re: Functions as first-class objects (score: 57)
Author: Alejandro Reimondo <aleReimondo@...>
Date: Sun, 9 Sep 2018 13:32:57 -0300
Hi, I will copy a few lines to do not distract on details that we can discuss later, when you want (just ask if I missed some question/argument than wants an opinon from me). First, in general all yo
36. Currency representation in Lua (score: 57)
Author: Diogo Mildenberger <diogo.milde@...>
Date: Sun, 4 Sep 2016 21:20:13 -0300
Hello! Has someone any experience to share about implementing a system that deals with currency values? I have already been bitten by the problems described in http://floating-point-gui.de/ and I wan
37. Re: Integer patch for Lua 5.1 final (score: 55)
Author: Asko Kauppi <askok@...>
Date: Mon, 27 Feb 2006 23:28:37 +0200
In my experience, using fixed point arithmetic in anything that is intended to be general purpose (s.a. Lua core) is simply a Bad Idea. Where fixed point work, is coordinate systems etc. where you ca
38. Re: Recursive anonymous functions? (score: 55)
Author: Gabor Grothendieck <ggrothendieck@...>
Date: Thu, 22 Jul 2004 17:49:05 +0000 (UTC)
It seems your problem can be answered without addressing the literal question you asked but just for the sake of completing this, we could use fixed point combinator ideas from computer science to cr
39. Re: Bug modulo operator on negative numbers (score: 47)
Author: Viacheslav Usov <via.usov@...>
Date: Tue, 17 Aug 2021 21:17:09 +0200
This is how it was standardized: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n617.htm (begin quote) Currently, the C standard (C89) [...] differs from Fortran, which requires that the result must
40. Re: Functions as first-class objects (score: 44)
Author: "szbnwer@..." <szbnwer@...>
Date: Sat, 8 Sep 2018 23:49:53 +0000
Il giorno sab 8 set 2018 alle ore 15:54 Alejandro Reimondo <aleReimondo@smalltalking.net> ha scritto: sure! but u misunderstood my point :D (no problem :) ) so i already understood these, but what i

Search by Namazu v2.0.21