Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2012-01-09 Thread Trevor Parscal
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

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-25 Thread Keisial
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

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-25 Thread Dmitriy Sintsov
* Keisial keis...@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

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-23 Thread Jay Ashworth
- Original Message - From: Victor Vasiliev vasi...@gmail.com 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. Not really. Lua was

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-23 Thread Gabriel Wicke
I do have some spare time over the holiday and I can take a shot at hacking together a node.js equivalent of the Lua extension. Is that really the highest priority though? I'm willing to do it, but it seems like there are also a lot of other questions to be answered besides just the

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-23 Thread Dmitriy Sintsov
On 23.12.2011 18:30, Jay Ashworth wrote: This is a really critical point: if you're going to provide an interpreted language to end-users from within a program that is, itself, written in an interpreted language, *you cannot use the underlying interpreter* to run the end-users' programs,

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-22 Thread Jay Ashworth
- Original Message - From: Peter Kaminski kamin...@istori.com I don't have anything particular against Lua and no particular love for JavaScript, but JS seems more web-native; plus code and skills developed can accrue to both client- and server-side of the web. Just so I'm clear:

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-22 Thread Owen Davis
Yep, this is for server side code, giving users a better template programming language. On Dec 22, 2011, at 7:17 AM, Jay Ashworth wrote: - Original Message - From: Peter Kaminski kamin...@istori.com I don't have anything particular against Lua and no particular love for

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-22 Thread Owen Davis
I think that would be a nice feature to have. Amazingly enough, WikiScripts is not of the extensions that we have in our codebase at wikia (I think we're over 800+), but I will take a look at the implementation. The lua parser hook allows for parameters, but that's not the same. Having

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-22 Thread Dmitriy Sintsov
* Owen Davis o...@wikia-inc.com [Thu, 22 Dec 2011 11:50:48 -0800]: I think that would be a nice feature to have. Amazingly enough, WikiScripts is not of the extensions that we have in our codebase at wikia (I think we're over 800+), but I will take a look at the implementation. The lua

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-22 Thread Victor Vasiliev
On Fri, Dec 23, 2011 at 9:26 AM, Dmitriy Sintsov ques...@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

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-22 Thread Dmitriy Sintsov
* Victor Vasiliev vasi...@gmail.com [Fri, 23 Dec 2011 09:46:46 +0400]: On Fri, Dec 23, 2011 at 9:26 AM, Dmitriy Sintsov ques...@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

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-22 Thread Victor Vasiliev
On Fri, Dec 23, 2011 at 9:54 AM, Dmitriy Sintsov ques...@rambler.ru wrote: 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? It is already almost a JavaScript subset What's about

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-21 Thread Owen Davis
Rob Lanphier robla at wikimedia.org writes: Tim Starling tstarling at wikimedia.org wrote: We still want to do something about parser performance in the first half of 2012, so we're going to bring forward our other performance project, i.e. server-side scripting embedded in wikitext.

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-21 Thread Peter Kaminski
On 12/21/11 11:18 AM, Owen Davis wrote: I'm going to look at something simple like Moustache (which has both JS and Lua implementations already) as a proof of concept. I really like the idea of using JavaScript+Mustache+Node.js. Plus there's a Mustache compiler for Node:

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-21 Thread Dmitriy Sintsov
* Owen Davis o...@wikia-inc.com [Wed, 21 Dec 2011 19:18:46 + (UTC)]: It is littered with embedded HTML and string.format statements. Ugh. I'm going to look at something simple like Moustache (which has both JS and Lua implementations already) as a proof of concept. Does anybody have a

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-21 Thread Dmitriy Sintsov
* Owen Davis o...@wikia-inc.com [Wed, 21 Dec 2011 19:18:46 + (UTC)]: It is littered with embedded HTML and string.format statements. Ugh. I'm going to look at something simple like Moustache (which has both JS and Lua implementations already) as a proof of concept. Does anybody have a

[Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-20 Thread Rob Lanphier
On Wed, Dec 14, 2011 at 9:00 PM, Tim Starling tstarl...@wikimedia.org wrote: We still want to do something about parser performance in the first half of 2012, so we're going to bring forward our other performance project, i.e. server-side scripting embedded in wikitext. That's a project which