Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 221. Re: Is Lua used as a data representation language? (score: 2)
- Author: Robert Virding <robert.virding@...>
- Date: Thu, 10 Jan 2013 01:05:23 +0000 (GMT)
- Yes, there are really two issues (at least) which have been conflated here: the SYNTAX of the data representation and how it is to be "parsed". These are two separate issues. It seems like there is a
- 222. RE: Is Lua used as a data representation language? (score: 2)
- Author: Dan Tull <dtull@...>
- Date: Tue, 8 Jan 2013 09:59:42 -0800
- Lightroom uses Lua as a data description language with sandboxing. It has crossed my mind on a few occasions to use the disassembly routine we use for some of our linting to provide another level of
- 223. Re: Lua as configuration language (score: 2)
- Author: Tomas Guisasola Gorham <tomas@...>
- Date: Fri, 4 Jan 2013 15:24:54 -0200 (BRST)
- Hi Marc Have you checked ALua? ALua: flexibility for parallel programming, by C. Ururahy, N. Rodriguez, and R. Ierusalimschy. Computer Languages 28 #2 (2002) 155-180. ALua: an event-driven communicat
- 224. Re: Lua as configuration language (score: 2)
- Author: Marc Balmer <marc@...>
- Date: Fri, 4 Jan 2013 18:10:57 +0100
- Am 04.01.2013 um 18:00 schrieb Alexander Gladysh <agladysh@gmail.com>: I agree. I just mentioned it because I found it an interesting use case. And many thanks for you other comments! - Marc
- 225. Re: Lua as configuration language (score: 2)
- Author: Alexander Gladysh <agladysh@...>
- Date: Fri, 4 Jan 2013 21:00:28 +0400
- BTW: see [3] for details. While they have been used, it is not a sound practice, IMO. (1) Both client and server must trust each other (or pay heavy sandboxing toll), and (2) data deserialization is
- 226. Re: a few lua api questions:imbedding, object methods and object properties (score: 3)
- Author: Rob Hoelz <rob@...>
- Date: Thu, 25 Oct 2012 16:24:24 +0200
- Well, you already wanted to use setfenv, so this is pretty easy using that: function run_script(object, script) local mt = {} local env = setmetatable({}, mt) function mt:__index(key) local value = o
- 227. Re: a few lua api questions:imbedding, object methods and object properties (score: 3)
- Author: "Littlefield, Tyler" <tyler@...>
- Date: Thu, 25 Oct 2012 08:09:55 -0600
- AddExit('north', 32) That looks cooll. actually I'd prefer that. I"m not sure though how to make AddExit use self by default. what determines how that's going to be looked up, since it'll be in the r
- 228. Re: a few lua api questions:imbedding, object methods and object properties (score: 3)
- Author: Rob Hoelz <rob@...>
- Date: Thu, 25 Oct 2012 10:01:55 +0200
- Here's the guideline I use for developing a scripting interface for anything: just write some example scripts. Don't worry about how you're going to do it just yet; just write some "play" scripts tha
- 229. Re: a few lua api questions:imbedding, object methods and object properties (score: 3)
- Author: "Littlefield, Tyler" <tyler@...>
- Date: Wed, 24 Oct 2012 09:47:28 -0600
- Hello: The loading and execution of the objects is done for all objects. Basically here's how this works, or at least how I see it working. When objects are currently loaded, their script is executed
- 230. Re: Indexable functions (score: 2)
- Author: Rena <hyperhacker@...>
- Date: Tue, 23 Oct 2012 07:10:12 -0400
- Well, you could always set a metatable for the function that traps __index and __newindex the same as you would for a table... -- Sent from my Game Boy.
- 231. Re: Indexable functions (score: 2)
- Author: Elias Barrionovo <elias.tandel@...>
- Date: Tue, 23 Oct 2012 09:06:52 -0200
- It would indeed. Another pro is the possibility of docstrings. But it does raise some concerns about security and sandboxing: if locals and upvalues are accessible, how to wrap functions and properly
- 232. Re: noob - How to architect c++ code to use lua as external code (score: 2)
- Author: Rena <hyperhacker@...>
- Date: Sun, 21 Oct 2012 14:57:26 -0500
- It sounds like you need to rethink how your code is interacting. You have an "AI object" C++ class of some type and you want Lua code to decide what it should do? Probably the simplest method is to r
- 233. Re: Can module updates ever be made safe? (score: 2)
- Author: William Ahern <william@...>
- Date: Fri, 19 Oct 2012 18:41:57 -0700
- My first instinct is to accomplish this with sandboxing. That presumes that there are discrete and isolated execution contexts, e.g. a web server. You might use Lua 5.1/LuaJIT function environments o
- 234. Re: sandboxing embedded 5.2 (score: 35)
- Author: Owen Shepherd <owen.shepherd@...>
- Date: Sun, 23 Sep 2012 02:52:03 +0100
- Normally, the way to do what you're doing would be to use luaL_loadstring, then set the environment on the returned function, then use lua_call/lua_pcall to invoke said function. This avoids the need
- 235. Re: sandboxing embedded 5.2 (score: 33)
- Author: Jeremy Carter <jeremy@...>
- Date: Sat, 22 Sep 2012 15:15:52 -0400
- Well that was really easy, thank you Enrico! If anyone cares, my mistake was assuming that variables assigned inside the custom _ENV would be "globals" (i.e. retrievable with the C API's lua_getgloba
- 236. Re: sandboxing embedded 5.2 (score: 33)
- Author: Enrico Colombini <erix@...>
- Date: Sat, 22 Sep 2012 20:27:49 +0200
- If I understood correctly what you're doing, you should find any 'global' created by your sandboxed function inside your sandbox_env table. -- Enrico
- 237. Re: sandboxing embedded 5.2 (score: 33)
- Author: Jeremy Carter <jeremy@...>
- Date: Sat, 22 Sep 2012 13:42:10 -0400
- Sorry for the long post, a shorter version of my question is: When running some Lua script through the C API, and the script assigns a custom _ENV (a sandbox whitelist) and then assigns some variable
- 238. sandboxing embedded 5.2 (score: 35)
- Author: Jeremy Carter <jeremy@...>
- Date: Fri, 21 Sep 2012 15:19:32 -0400
- Hi, I'm completely new to Lua, but loving it already. However, I've been having issues with sandboxing the environment for an embedded C++ project. Clearly I'm doing it wrong, but I haven't been able
- 239. Re: Easy remote eval / RPC solution (score: 2)
- Author: Sean Conner <sean@...>
- Date: Thu, 20 Sep 2012 17:01:19 -0400
- It was thus said that the Great Eduardo Ochs once stated: If you are on a Unix system, you can recompile Lua with the target "generic", and use inetd or xinetd (depending up Unix system) to launch lu
- 240. Re: Easy remote eval / RPC solution (score: 2)
- Author: Paul K <paulclinger@...>
- Date: Thu, 20 Sep 2012 09:54:46 -0700
- There are socket-based debuggers that do just that. I've been developing MobDebug (based on RemDebug) that allows one to open a socket connection and send commands to the client, including "EXEC com
Search by
Namazu v2.0.21