Speaking of which, Lua looks like a wonderful solutin. We just need a more
native integration into MediaWiki that hides the fact that you're actually
using Lua.
It doesn't look like Extension:Lua even works right now (per the talk page -
not my actual testing). What do you think Tim?

On Thu, Jun 25, 2009 at 9:33 PM, Tim Starling <tstarl...@wikimedia.org>wrote:

> Aryeh Gregor wrote:
> > * #len is implemented by [[Template:Str len]].  Running {{str len}} it
> > on a string of 250 a's gives preprocessor node count 152, post-expand
> > include size 4597 bytes, template argument size 7430 bytes.
> > * #pos is implemented by [[Template:Str find]].  Trying to find b in a
> > string of 250 a's gives preprocessor node count 1354, post-expand
> > include size 5740 bytes, template argument size 50320 bytes.
> > * #substr is implemented by [[Template:Str sub]].  Using the same
> > string of a's, with start 30 and length 20, gives preprocessor node
> > count 1534, post-expand include size 13400 bytes, template argument
> > size 44578 bytes.
> >
> > Is there any good reason not to enable these three string functions, at
> least?
>
> Those templates can be defeated by reducing the functionality of
> padleft/padright, and I think that would be a better course of action
> than enabling the string functions.
>
> The set of string functions you describe are not the most innocuous
> ones, they're the ones I most want to keep out of Wikipedia, at least
> until we have a decent server-side scripting language in parallel.
>
> -- Tim Starling
>
>
> _______________________________________________
> 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

Reply via email to