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: [ sandboxing: 527 ]

Total 527 documents matching your query.

241. Re: Easy remote eval / RPC solution (score: 2)
Author: Eduardo Ochs <eduardoochs@...>
Date: Thu, 20 Sep 2012 12:25:08 -0300
assert(loadstring(something))()  ?    Like that, except that the "something" should come from a socket, and Lua should enter "assert(loadstring(something))()-mode" whenever it's idle - maybe even wh
242. Re: Easy remote eval / RPC solution (score: 2)
Author: Daniel Silverstone <dsilvers@...>
Date: Thu, 20 Sep 2012 16:11:35 +0100
assert(loadstring(something))() ? D. -- Daniel Silverstone http://www.digital-scurf.org/ PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69
243. Re: Easy remote eval / RPC solution (score: 3)
Author: Eduardo Ochs <eduardoochs@...>
Date: Thu, 20 Sep 2012 12:01:02 -0300
The networking side is the least of your worries if you want to accept arbitrary scripts. You might want to look at Supple -- http://cgit.gitano.org.uk/supple.git Supple does the sandboxing in as co
244. Re: Easy remote eval / RPC solution (score: 2)
Author: Daniel Silverstone <dsilvers@...>
Date: Thu, 20 Sep 2012 14:44:54 +0100
The networking side is the least of your worries if you want to accept arbitrary scripts. You might want to look at Supple -- http://cgit.gitano.org.uk/supple.git Supple does the sandboxing in as com
245. Re: require+localizing=frustrating (was Re: Idea for a new kind of require) (score: 2)
Author: Patrick Donnelly <batrick@...>
Date: Tue, 28 Aug 2012 15:40:40 -0400
Uh, so the Lua interpreter assigning a module to a global variable is okay but for require() it's not okay? No, global variables are indeed very evil. We regularly have problems with them in the Nmap
246. Re: require+localizing=frustrating (was Re: Idea for a new kind of require) (score: 2)
Author: Dirk Laurie <dirk.laurie@...>
Date: Tue, 28 Aug 2012 13:15:56 +0200
2012/8/27 Jay Carlson <nop@nop.com>: Are we? Even in Lua 5.2, we still have "lua -i -l mymodule" and hey presto, there's something in the global namespace called "mymodule". No, what we are trying to
247. Idea for a new kind of require (score: 2)
Author: Rob Hoelz <rob@...>
Date: Fri, 24 Aug 2012 14:53:05 +0200
Hello fellow Lua users, Over my experience reading e-mails on this mailing list, as well as helping people on #lua, I've decided to write a library that implements and enhances the functionality of r
248. Interesting issue with managing GC of proxies across process boundaries. (score: 3)
Author: Daniel Silverstone <dsilvers@...>
Date: Sun, 12 Aug 2012 17:16:49 +0100
Hi, I am having an "interesting" GC issue related to weak tables and userdata when considering garbage collection *across* process boundaries... First, some background.... I am developing a sandboxin
249. Re: config-file for a config-language: where the cat meet its tail ?!? (score: 2)
Author: Rena <hyperhacker@...>
Date: Fri, 13 Jul 2012 23:33:11 -0600
loadfile() returns a function whose body is the file's contents. So to load a config file which is Lua code, you'd do something like: local cfg = assert(loadfile('config.lua')) config = cfg() assumin
250. RE : Proposal: Lua Table Notation + load change (score: 3)
Author: Julien Duminil <julien.duminil@...>
Date: Fri, 29 Jun 2012 09:17:01 +0200
Good point, I don't have this problem because I mainly use trusted data (I just use sandboxing sometimes to cacth some function results). However you can have trusted data (and run it with Lua) and
251. Re: Proposal: Lua Table Notation + load change (score: 2)
Author: Coda Highland <chighland@...>
Date: Thu, 28 Jun 2012 16:48:43 -0500
NB: function loadvaluefromstring(s) return loadstring("return "..s)() end That said, your two proposals actually run counter to each other, although it's a little subtle. One of the things about JSON
252. Re: Garbage collector behaviour changed from 5.1 to 5.2 (score: 2)
Author: Robert Norris <rob@...>
Date: Sun, 27 May 2012 05:51:32 +1000
Fair question! At the moment there's no particular reason than wanting to get some experience with the latest & greatest. We do have some plans to try use the changed environment/global stuff to star
253. Re: Idea for an event loop library (score: 2)
Author: William Ahern <william@...>
Date: Fri, 11 May 2012 19:32:40 -0700
I think this issue is overblown. But one way to address it is to redirect all global lookups through an emphemeron table indexed by the coroutine itself. This works well for situations where you just
254. Re: My wish list (score: 2)
Author: David Manura <dm.lua@...>
Date: Sat, 17 Mar 2012 17:38:58 -0400
Here's benchmarks of various implementations in Lua: http://lua-users.org/wiki/HammingWeight . or to clear an array or move slices between arrays, which can also be O(N). See http://lua-users.org/wik
255. Re: My wish list (score: 2)
Author: Steve Litt <slitt@...>
Date: Fri, 16 Mar 2012 20:58:35 -0400
I didn't read these all that carefully, but carefully enough to develop the opinion that these functions and changes belong as add-ons, not as part of the language. That way the extra code doesn't pr
256. Re: My wish list (score: 2)
Author: Rena <hyperhacker@...>
Date: Fri, 16 Mar 2012 18:03:58 -0600
1) How often is this needed? I don't even know what applications use this. 2) A nice idea, but maybe bad for performance, and having an operator return two values may be both difficult to implement a
257. My wish list (score: 2)
Author: Egor Skriptunoff <egor.skriptunoff@...>
Date: Fri, 16 Mar 2012 23:51:58 +0000 (GMT)
Hello, Lua people! I have some suggestions. Please, take a look. -- 1) This function will be useful: bit32.weight(n) == Hamming weight of n (also known as population count, binary digit sum, count of
258. Re: Wikipedia Chooses Lua As Its New Template Language (score: 3)
Author: Tim Starling <tstarling@...>
Date: Mon, 06 Feb 2012 09:55:42 +1100
On our servers, we won't shell out, we will probably use the Lua extension for PHP that I wrote for this purpose: http://svn.wikimedia.org/viewvc/mediawiki/trunk/php/luasandbox/ load() is not exposed
259. Re: Wikipedia Chooses Lua As Its New Template Language (score: 3)
Author: David Manura <dm.lua@...>
Date: Fri, 3 Feb 2012 19:43:28 -0500
2012/2/3 Mateusz Czaplinski <czapkofan@gmail.com>: Thanks, warnings have been expanded in [1]. [1] http://lua-users.org/wiki/SandBoxes
260. Re: Wikipedia Chooses Lua As Its New Template Language (score: 3)
Author: Mateusz Czaplinski <czapkofan@...>
Date: Fri, 3 Feb 2012 14:53:24 +0100
might need to take as the way it is with regards to Lua development. The drawbacks of breaking backwards compatibility are pretty obvious; it's worthy however to notice positive aspects of this appro

Search by Namazu v2.0.21