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: [ serial: 492 ] [ interface: 4819 ]

Total 94 documents matching your query.

41. Re: Delay garbage collection of some data possible? ("validate" data for C?) (score: 27)
Author: Flyer31 Test <flyer31@...>
Date: Fri, 11 Jun 2021 13:45:37 +0200
Thank you for answer, this sounds interesting, but unfortunately I never used luaL_ref before and I would prefer some short 2-3 lines example if possible. Currently when I get my String I would use (
42. Re: Delay garbage collection of some data possible? ("validate" data for C?) (score: 27)
Author: shankusu2017 <shankusu2017@...>
Date: Fri, 11 Jun 2021 17:48:02 +0800
Lua's gc module does not change the reference attribute of the data, so you still need to change the reference attribute of the data. You can set the data to the global table before sending, and dele
43. Re: Delay garbage collection of some data possible? ("validate" data for C?) (score: 27)
Author: "Pierre Chapuis" <catwell@...>
Date: Fri, 11 Jun 2021 11:01:09 +0200
The way I'd do this to avoid copies is I'd implement a buffer type with its memory managed by the engine (in C) and expose it to the Lua program as userdata. With the right metatables you can almost
44. Re: Delay garbage collection of some data possible? ("validate" data for C?) (score: 27)
Author: Edoardo <edoardo762@...>
Date: Fri, 11 Jun 2021 10:57:38 +0200
You could hold a reference to this value in the registry index: luaL_ref(current_state, LUA_REGISTRYINDEX); In this way, there will always ne a reference to ut until you manaully remove the entry fro
45. Delay garbage collection of some data possible? ("validate" data for C?) (score: 27)
Author: Flyer31 Test <flyer31@...>
Date: Fri, 11 Jun 2021 10:47:25 +0200
In my Lua microcontroller application (quite restricted RAM space), I would implement some function written by C, which sends data out through a serial interface. So this function gets e. g. a longer
46. Re: lua - running bytecode from an external ram space (score: 27)
Author: David Walker <dbwalker0min@...>
Date: Wed, 13 Jul 2011 10:48:45 -0700
Another option could be pymite (http://code.google.com/p/python-on-a-chip/). I haven't used it personally, but I know it can run code from external SPI-based devices.
47. Re: lua - running bytecode from an external ram space (score: 27)
Author: KHMan <keinhong@...>
Date: Thu, 14 Jul 2011 01:35:43 +0800
On 7/14/2011 12:59 AM, James Graves wrote: imo wrote: Hi, as the Lua is a virtual machine based, let me kindly ask you following: 1.would it be possible to allocate the vm ?working space?, or some pa
48. Re: uses of Lua (score: 24)
Author: Andrew Starks <andrew@...>
Date: Fri, 1 Apr 2022 10:19:44 -0500
We are using Lua in our new product, MPA1000, which is a System on a Module (SoM) used in OEM products that deliver ultra-low latency video and audio over IP networks. Lua allows us to grant our OEM
49. Re: 60kB RAM: Compare indexed string handling to Lua heap handling (score: 22)
Author: Benjamin Riggs <riggs@...>
Date: Wed, 24 Nov 2021 16:05:48 -0600
Have you considered loading the script source straight into the interpreter from serial, and then dumping the compiler bytecode to flash? It should eliminate your extra step of chunking the source to
50. Re: How to comprehend that Lua automatically removes whatever is in the stack below the results after the function returned? (score: 22)
Author: bel <bel2125@...>
Date: Sun, 27 Sep 2020 19:26:07 +0200
  a pre-known max Not exactly. The concept is to allow the Lua interpreter to allocate and free all objects, as it always does, but to not pass this memory dynamics to the operating system or glibc.
51. Re: How to comprehend that Lua automatically removes whatever is in the stack below the results after the function returned? (score: 22)
Author: ??? sunshilong <sunshilong369@...>
Date: Sat, 26 Sep 2020 13:26:05 +0800
If I understand correctly, all the objects should have a pre-known max size to meet the soft real-time requirements. I use Lua scripts to control the robot arm to grab cookies, plates, fruits and et
52. Re: How to comprehend that Lua automatically removes whatever is in the stack below the results after the function returned? (score: 22)
Author: bel <bel2125@...>
Date: Thu, 24 Sep 2020 23:57:11 +0200
53. Lua and Sol2 on Embedded Target? (score: 22)
Author: Russell Haley <russ.haley@...>
Date: Thu, 24 Oct 2019 19:41:30 -0700
Hello, So this isn't so much a question as a brain storming exercise: We have a client that has an embedded system and they want to be able to control individual components, but they can't really do
54. Re: [ANN] lua-periphery v1.0.1 (score: 22)
Author: Harley Laue <losinggeneration@...>
Date: Mon, 26 May 2014 15:23:06 -0500
A quick try says yes. First lua_Unsigned is used, as well as luaL_len. I'm sure with a bit more time though, a 5.1 & 5.2 compatible version could be made. Linux Peripheral I/O (GPIO, SPI, I2C, MMIO,
55. Re: [ANN] lua-periphery v1.0.1 (score: 22)
Author: djczaski@...
Date: Mon, 26 May 2014 15:50:34 -0400
Looks very interesting. Are there are issue getting it to run on 5.1.5? On May 26, 2014, at 12:21 PM, Ivan Sergeev <vsergeev@gmail.com> wrote: Linux Peripheral I/O (GPIO, SPI, I2C, MMIO, Serial) with
56. [ANN] lua-periphery v1.0.1 (score: 22)
Author: Ivan Sergeev <vsergeev@...>
Date: Mon, 26 May 2014 09:21:49 -0700
Linux Peripheral I/O (GPIO, SPI, I2C, MMIO, Serial) with Lua https://github.com/vsergeev/lua-periphery lua-periphery is a library for GPIO, SPI, I2C, MMIO, and Serial peripheral I/O interface access
57. Re: Suggestion: Lua 5.3 -- a facility for creating and manipulting Lua file handles (C API) (score: 22)
Author: Sir Pogsalot <sir.pogsalot@...>
Date: Fri, 15 Nov 2013 23:59:37 +0000
In response to Coda: I don't agree that opening up file handle creation to the C side of Lua would mean we have to forgo an appropriate level of security.  Lua does have a fair bit of type checking c
58. Re: Suggestion: Lua 5.3 -- a facility for creating and manipulting Lua file handles (C API) (score: 22)
Author: Sean Conner <sean@...>
Date: Fri, 15 Nov 2013 17:47:32 -0500
It was thus said that the Great Sir Pogsalot once stated: I did a similar thing by creating my own socket libary [11], and I too, wanted a way to use the standard Lua IO calls on it. I ended up with
59. Re: lua - running bytecode from an external ram space (score: 22)
Author: KHMan <keinhong@...>
Date: Thu, 14 Jul 2011 05:49:55 +0800
Yummy, nice FRAM you have there. :-) Here IIRC I see a lot of it marked as "discontinued product" in the usual local catalogs. With a pic32mx (I am running the pic32lua on it) or an arm or other fast
60. Re: dsPIC33F Lua support (Was: Advocating Lua on an embedded systems fair) (score: 22)
Author: Bogdan Marinescu <bogdan.marinescu@...>
Date: Wed, 11 Feb 2009 13:31:30 +0200
Heh, that sounds insanely crazy indeed :) Following your idea though (just for the sake of exercise :) ) I don't think you'd need to emulate a 32-bit CPU, this might prove far too complex and in the

Search by Namazu v2.0.21