Re: [Wikitech-l] [Wikitech-ambassadors] Lua rollout to en.wikipedia.org and a few others

2013-02-18 Thread Amir E. Aharoni
Thanks a lot! This work correctly in the deployed version. I made a
tiny test here:
writing a module: https://www.mediawiki.org/wiki/Module:StringLength
using a module: https://www.mediawiki.org/wiki/User:Amire80/Scribunto

--
Amir

2013/2/16 Chad innocentkil...@gmail.com:
 On Sat, Feb 16, 2013 at 12:06 AM, Amir E. Aharoni
 amir.ahar...@mail.huji.ac.il wrote:
 Is there any way to handle Unicode strings in the version that is
 going to be deployed? For example, things like getting the length of
 the string François as 8 rather than 9?

 If not, is there any plan to have this ability any time soon?


 Yes, a library has been written for Scribunto called ustring to
 handle unicode. We've actually got docs for this (and a couple
 of other libraries) available on mw.org[0].

 -Chad

 [0] https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual

 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] [Wikitech-ambassadors] Lua rollout to en.wikipedia.org and a few others

2013-02-16 Thread Bináris
2013/2/16 Matthew Flaschen mflasc...@wikimedia.org


 See https://www.mediawiki.org/wiki/Lua for more information.


 That's a surprise for me! I thought Scribunto would be deployed to much
more wikis in the first run. How did huwiki get in this batch? I am really
happy with this.

-- 
Bináris
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] [Wikitech-ambassadors] Lua rollout to en.wikipedia.org and a few others

2013-02-16 Thread Chad
On Sat, Feb 16, 2013 at 12:06 AM, Amir E. Aharoni
amir.ahar...@mail.huji.ac.il wrote:
 Is there any way to handle Unicode strings in the version that is
 going to be deployed? For example, things like getting the length of
 the string François as 8 rather than 9?

 If not, is there any plan to have this ability any time soon?


Yes, a library has been written for Scribunto called ustring to
handle unicode. We've actually got docs for this (and a couple
of other libraries) available on mw.org[0].

-Chad

[0] https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] [Wikitech-ambassadors] Lua rollout to en.wikipedia.org and a few others

2013-02-15 Thread Steven Walling
On Fri, Feb 15, 2013 at 12:33 PM, Rob Lanphier ro...@wikimedia.org wrote:

 Hi everyone,

 We're planning to deploy Lua to a long list of wikis on Monday,
 February 18, 23:00-01:00 UTC (stretching into Tuesday UTC), including
 English Wikipedia.

 Details here:
 http://meta.wikimedia.org/wiki/Lua

 Jan Kučera (User:Kozuch) has placed notifications on many of the
 wikis.  Those notifications and general communications listed here:
 http://en.wikipedia.org/wiki/User:Kozuch/Lua


I didn't see it in the docs above, so thought I'd ask... Is this going to
include rollout of the CodeEditor extension, or will that be done
separately?


 This is a really exciting deployment for the projects.  We're really
 looking forward to seeing the great things that people do with this,
 and looking forward to making editing and previewing more responsive
 for template-heavy pages.

 Rob


This is exciting! Do we have plans for further measurement when it comes to
Lua's impact on page load times/publishing any results so far? In addition
to the general benefit of not having to program using wikitext/parser
functions, I seem to remember the performance improvements being the big
selling point of Scribunto.

Best of luck on the launch,

-- 
Steven Walling
https://wikimediafoundation.org/
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] [Wikitech-ambassadors] Lua rollout to en.wikipedia.org and a few others

2013-02-15 Thread Rob Lanphier
Hi Steven,

Thanks for the encouragement!  Comments inline:

On Fri, Feb 15, 2013 at 12:55 PM, Steven Walling swall...@wikimedia.org wrote:
 I didn't see it in the docs above, so thought I'd ask... Is this going to
 include rollout of the CodeEditor extension, or will that be done
 separately?

That's a good question.  My initial instinct is to say just
Scribunto/Lua, but follow that closely with a CodeEditor deployment
very soon.  Tim may have something else in mind for this, though, so
he may correct me..  Is there any reason you're aware of not to deploy
CodeEditor as well?  Any reason why we should avoid deploying
Scribunto without CodeEditor?

 This is exciting! Do we have plans for further measurement when it comes to
 Lua's impact on page load times/publishing any results so far? In addition
 to the general benefit of not having to program using wikitext/parser
 functions, I seem to remember the performance improvements being the big
 selling point of Scribunto.

Tim did some initial benchmarks which showed a pretty marked
improvement with the Cite template:
http://www.mediawiki.org/wiki/Lua_scripting/Benchmarking

The cluster impact is going to be pretty modest (possibly unmeasurable
at this point) but will have a positive impact once templates are
converted to Lua.

Rob

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] [Wikitech-ambassadors] Lua rollout to en.wikipedia.org and a few others

2013-02-15 Thread Sîrbu Nicolae-Cezar
Hello,

What is Lua?

Thanks,
Sirbu Nicolae-Cezar


On Sat, Feb 16, 2013 at 12:42 AM, Rob Lanphier ro...@wikimedia.org wrote:

 Hi Steven,

 Thanks for the encouragement!  Comments inline:

 On Fri, Feb 15, 2013 at 12:55 PM, Steven Walling swall...@wikimedia.org
 wrote:
  I didn't see it in the docs above, so thought I'd ask... Is this going to
  include rollout of the CodeEditor extension, or will that be done
  separately?

 That's a good question.  My initial instinct is to say just
 Scribunto/Lua, but follow that closely with a CodeEditor deployment
 very soon.  Tim may have something else in mind for this, though, so
 he may correct me..  Is there any reason you're aware of not to deploy
 CodeEditor as well?  Any reason why we should avoid deploying
 Scribunto without CodeEditor?

  This is exciting! Do we have plans for further measurement when it comes
 to
  Lua's impact on page load times/publishing any results so far? In
 addition
  to the general benefit of not having to program using wikitext/parser
  functions, I seem to remember the performance improvements being the big
  selling point of Scribunto.

 Tim did some initial benchmarks which showed a pretty marked
 improvement with the Cite template:
 http://www.mediawiki.org/wiki/Lua_scripting/Benchmarking

 The cluster impact is going to be pretty modest (possibly unmeasurable
 at this point) but will have a positive impact once templates are
 converted to Lua.

 Rob

 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] [Wikitech-ambassadors] Lua rollout to en.wikipedia.org and a few others

2013-02-15 Thread Matthew Flaschen
On 02/15/2013 06:03 PM, Sîrbu Nicolae-Cezar wrote:
 Hello,
 
 What is Lua?
 
 Thanks,
 Sirbu Nicolae-Cezar

It is a programming language used for embedded scripting.  Scribunto is
a MediaWiki extension that allows you to write templates in Lua (other
languages possibly coming later).  Done right, this can be clearer, more
powerful, and more efficient than the current ParserFunction templates.

See https://www.mediawiki.org/wiki/Lua for more information.

Matt Flaschen

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] [Wikitech-ambassadors] Lua rollout to en.wikipedia.org and a few others

2013-02-15 Thread Amir E. Aharoni
Is there any way to handle Unicode strings in the version that is
going to be deployed? For example, things like getting the length of
the string François as 8 rather than 9?

If not, is there any plan to have this ability any time soon?

--
Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
http://aharoni.wordpress.com
‪“We're living in pieces,
I want to live in peace.” – T. Moore‬


2013/2/16 Rob Lanphier ro...@wikimedia.org:
 Hi everyone,

 We're planning to deploy Lua to a long list of wikis on Monday,
 February 18, 23:00-01:00 UTC (stretching into Tuesday UTC), including
 English Wikipedia.

 Details here:
 http://meta.wikimedia.org/wiki/Lua

 Jan Kučera (User:Kozuch) has placed notifications on many of the
 wikis.  Those notifications and general communications listed here:
 http://en.wikipedia.org/wiki/User:Kozuch/Lua

 This is a really exciting deployment for the projects.  We're really
 looking forward to seeing the great things that people do with this,
 and looking forward to making editing and previewing more responsive
 for template-heavy pages.

 Rob

 ___
 Wikitech-ambassadors mailing list
 wikitech-ambassad...@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-ambassadors

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] [Wikitech-ambassadors] Lua rollout to en.wikipedia.org and a few others

2013-02-15 Thread Thomas PT
+1 with Amir. The unicode support is very important.

About list of firsts wikis, why fr.wikisource isn't in the list? We have 
requested some months ago to be one of the first wikis to test the extension 
and the answer seems positive. 
https://bugzilla.wikimedia.org/show_bug.cgi?id=39744

Thomas

Amir E. Aharoni amir.ahar...@mail.huji.ac.il a écrit :

Is there any way to handle Unicode strings in the version that is
going to be deployed? For example, things like getting the length of
the string François as 8 rather than 9?

If not, is there any plan to have this ability any time soon?

--
Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
http://aharoni.wordpress.com
‪“We're living in pieces,
I want to live in peace.” – T. Moore‬


2013/2/16 Rob Lanphier ro...@wikimedia.org:
 Hi everyone,

 We're planning to deploy Lua to a long list of wikis on Monday,
 February 18, 23:00-01:00 UTC (stretching into Tuesday UTC), including
 English Wikipedia.

 Details here:
 http://meta.wikimedia.org/wiki/Lua

 Jan Kučera (User:Kozuch) has placed notifications on many of the
 wikis.  Those notifications and general communications listed here:
 http://en.wikipedia.org/wiki/User:Kozuch/Lua

 This is a really exciting deployment for the projects.  We're really
 looking forward to seeing the great things that people do with this,
 and looking forward to making editing and previewing more responsive
 for template-heavy pages.

 Rob

 ___
 Wikitech-ambassadors mailing list
 wikitech-ambassad...@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-ambassadors

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l