[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [glob2-devel] Embedded scripting language (again)
From: |
Matthew Marshall |
Subject: |
Re: [glob2-devel] Embedded scripting language (again) |
Date: |
Thu, 23 Feb 2006 16:01:48 -0300 |
User-agent: |
KMail/1.9.1 |
On Tue 21 Feb 2006 21:10, Bradley Arsenault wrote:
> 1) A full, version and operating system portable vm dump, if desired
IMHO, a far better solution would be to use Stackless Python[1]... a python
implementation that doesn't use the C stack. It supports microthreads[2],
along with serializing them in the middle of execution[3]. (This is really
all we need.)
One thing to note is that stackless does not yet support python2.4. However,
this is planned for a PyCon sprint[4].
> Cons:
> 1) Is a large dependancy
In the case of stackless, it would be worth considering including it in the
distribution, especially as it doesn't have a release. This is how Blender
and (I assume) EVE Online[5] do it. (Although, Blender uses standard
CPython.) This would also allow cutting out unneeded modules. (Who needs to
decode MIME email headers in a map script???)
> 2) Can allow a hacker access to the underlieing system if he/she
> is experienced enough and willing to work around all inplace security
> features (python does have them)
It might be better to say that python _had_ them. The restricted execution
framework was disabled in python2.3[6].
Perhaps omitting the 'os' and 'sys' modules and the 'file' type would be all
that is necessary. At any rate, Blender had a _browser pluggin_ that would
execute python code, so it's not like glob2 would be the first.
I think that from a technical standpoint, python would work. The question I
see now is, "is it overkill?" Although I would love to use my favorite
language in my favorite computer game, Lua or Tea might work just as well,
with far less overhead ... so ... I guess I'm not being much help here :D
MWM
[1] http://www.stackless.com/
[2] http://www.stackless.com/wiki/Tasklets
[3] http://www.stackless.com/wiki/Pickling
[4] http://www.stackless.com/Members/rmtew/pycon2006
[5] http://www.stackless.com/Members/rmtew/newsPyCon2006Pres
[6] http://python.org/doc/lib/restricted.html
- Re: [glob2-devel] Embedded scripting language (again), (continued)
- Re: [glob2-devel] Embedded scripting language (again), Stéphane Magnenat, 2006/02/21
- Re: [glob2-devel] Embedded scripting language (again), Martin Voelkle, 2006/02/22
- Re: [glob2-devel] Embedded scripting language (again), Bradley Arsenault, 2006/02/23
- Re: [glob2-devel] Embedded scripting language (again), Martin Voelkle, 2006/02/26
- Re: [glob2-devel] Embedded scripting language (again), Stéphane Magnenat, 2006/02/21
- Re: [glob2-devel] Embedded scripting language (again), Bradley Arsenault, 2006/02/21
- Re: [glob2-devel] Embedded scripting language (again), Martin Voelkle, 2006/02/22
- Re: [glob2-devel] Embedded scripting language (again), Bradley Arsenault, 2006/02/24
- Re: [glob2-devel] Embedded scripting language (again),
Matthew Marshall <=
- Re: [glob2-devel] Embedded scripting language (again), Stéphane Magnenat, 2006/02/25
- Re: [glob2-devel] Embedded scripting language (again), Bradley Arsenault, 2006/02/25
- Re: [glob2-devel] Embedded scripting language (again), Matthew Marshall, 2006/02/25
- Re: [glob2-devel] Embedded scripting language (again), Martin Voelkle, 2006/02/26
Re: [glob2-devel] Embedded scripting language (again), Martin Voelkle, 2006/02/20
Re: [glob2-devel] Embedded scripting language (again), Bradley Arsenault, 2006/02/20