* Victor Vasiliev <vasilvv(a)gmail.com> [Fri, 23 Dec 2011 09:46:46 +0400]:
On Fri, Dec 23, 2011 at 9:26 AM, Dmitriy Sintsov
<questpc(a)rambler.ru>
wrote:
Also it would be great if WikiScripts or Lua
extension allowed to
easily
> bind functions / class wrappers for another MediaWiki extensions.
The
> extension I develop uses PHP eval for
interpretation of the scripts,
I
am looking for
adaption of WikiScripts to use it in conjunction with
my
extension.
Dmitriy
Well, WikiScripts, if we decide to develop it seriously, will
certainly have extension interface (it is on my large TODO list for
that). Something tells me it would be possible to do in Lua as well.
All we have to do now is to settle down on what way we choose.
Victor, what do you think about making WikiScripts syntax more similar
to the subset of Lua or JavaScript syntax? That probably should not be
too hard? What's about cross-translating to PHP then eval()?
Lua is great, however, it's a bit strange to use two interpreters
(PHP+Lua) together. That limits hosting possibilities and it's something
like using two similar screwdrivers for the same screw. It is a shame
PHP itself does not have stable good VM extension for execution of
scripts.
Dmitriy