I was working with Victor a bit to see how close to JS we could get WikiScripts syntax to be, and it seemed like it was possible but some things (like objects) would either be a hack to "fake" in some ways or a larger job to get working. Not sure if he's got more progress in that way to show, but subsets are good because you can always add more later. As long as we don't add support for something that's not standard javascript (super-set) we have a lot of options in the future. Web standards are important - we should strive to use them as much as possible.
- Trevor
On Sun, Dec 25, 2011 at 10:08 PM, Dmitriy Sintsov questpc@rambler.ruwrote:
- Keisial keisial@gmail.com [Sun, 25 Dec 2011 23:16:46 +0100]:
On 23.12.2011 18:21, Dmitriy Sintsov wrote:
I remember that PHP had some outdated and unmaintained sandboxing
PECL
module, however it's unmaintained for a long time. http://php.net/manual/en/runkit.sandbox.php Dmitriy
Dmitry Zenovich applied for maintaining it last year, although little seems to have been done in the official repo. He seems to have been working on https://github.com/zenovich/runkit/ I worked with runkit some years ago and it wasn't hard to make it run. The downside is that you need a threaded php.
Wikimedia has experienced PHP/C developers who probably can maintain and update such module. Maybe even cross-translation from subset of JS into PHP (with caching) then executing via runkit could be possible. But threading is not something that is desirable in current environment. So maybe it was a bad idea. Dmitriy
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l