Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Dmitriy Sintsov
* Gregory Maxwell [Wed, 1 Jul 2009 02:17:24 -0400]: > > Juniper Networks (my day job) uses XSLT as the primary scripting > language on their routing devices, and chose to do so primarily > because of sandboxing and the ease of XML tree manipulation with xpath > (JunOS configuration has a complete

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Gregory Maxwell
On Wed, Jul 1, 2009 at 1:42 AM, Dmitriy Sintsov wrote: > XSLT itself is a way too much locked down - even simple things like > substrings manipulation and loops aren't so easy to perform. Well, maybe > I am too stupid for XSLT but from my experience bringing tag syntax in > programming language mak

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Dmitriy Sintsov
> 1 - XSLT > > Since the syntax is XML (like the extensions tags) and XPath (vaguely > similar to template syntax, although it's XML that calls XPath, the > opposite of what we have) It would be reasonably consistent with > current > syntax. It also should also already be fairly well lock

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Gregory Maxwell
On Tue, Jun 30, 2009 at 11:46 PM, Tim Starling wrote: [snip] > SpiderMonkey and Python both lack control over memory usage. Python > lacks a sandbox mode, the rexec module has been removed. SpiderMonkey > isn't embedded in any useful kind of standalone, so you'd have to > start with a C development

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Gregory Maxwell
On Tue, Jun 30, 2009 at 12:16 PM, Brion Vibber wrote: > As many folks have noted, our current templating system works ok for > simple things, but doesn't scale well -- even moderately complex > conditionals or text-munging will quickly turn your template source into > what appears to be line noise.

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Thomas Dalton
2009/7/1 Michael Daly : > Why not switch the template syntax for articles to match the syntax for > tags (which in turn is based on XML or whatever syntax that comes from > ultimately)? What is wrong with the current syntax for calling templates? At least, what is wrong with it that would be impro

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Michael Daly
Robert Rohde wrote: > Makes it awfully ugly to pass the result of one template to another > template if your syntax is: > > " var2="bar"/> Eww! - hadn't thought of that one. Back to the other style: var1= val="May 24";; var2=bar; or unnamed: val="May 24";; bar; Recursive template proce

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Tim Starling
Brion Vibber wrote: > There's been talk of Lua as an embedded templating language for a while, > and there's even an extension implementation. > > One advantage of Lua over other languages is that its implementation is > optimized for use as an embedded language, and it looks kind of pretty. >

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Aryeh Gregor
On Tue, Jun 30, 2009 at 10:45 PM, Sergey Chernyshev wrote: > I don't know about scripting languages for the templating, it might be an > overkill. People are using ParserFunctions as a scripting language already. That's not feasibly going to be removed at this point. So the only way to go is to r

[Wikitech-l] can't comment on techblog from TW

2009-06-30 Thread jidanni
http://techblog.wikimedia.org/wp-comments-post.php says: Your location has been identified as part of a reported spam network. Comments have been disabled to prevent spam. $ whois 122.127.35.74 ...country: TW What should I do, upgrade my country? ___

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Sergey Chernyshev
I don't know about scripting languages for the templating, it might be an overkill. When I was picking lower language for MediaWiki Widgets extension, I looked at popular PHP templating systems and ended up picking Smarty ( http://smarty.net/) - it can be security locked, it has a few useful featu

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Robert Rohde
On Tue, Jun 30, 2009 at 7:27 PM, Michael Daly wrote: > Chad wrote: > >> Unless we plan on trying to mass-convert not only years of old revisions >> but change years-old behavior that millions of users have come to expect? >> I would expect _any_ change to keep {{sometemplate}} always working, >> ev

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Michael Daly
Chad wrote: > Unless we plan on trying to mass-convert not only years of old revisions > but change years-old behavior that millions of users have come to expect? > I would expect _any_ change to keep {{sometemplate}} always working, > even if the mechanics behind it change. Why not switch the te

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Michael Daly
Thomas Dalton wrote: >> Thus the first line of a template would >> be the example of its use: >> >> Template:foobar >> -- >> {{Foobar|$var1|$var2|$andAnotherVar}} >> ...(implementation)... >> ---

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Aryeh Gregor
On Tue, Jun 30, 2009 at 6:08 PM, Robert Rohde wrote: > In addition to resource limits, any scheme better make sure what's > passed into the programming language and what's passed out makes > sense.  For example, you shouldn't have it generating raw HTML and > probably shouldn't let it mess with str

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread randomcoder1
http://jtemplates.tpython.com/ ? :) Trevor Parscal wrote: > Seems like JSON syntax is pretty simple and could be a big improvement > to how templates are currently invoked. > > Bottom line, a well defined syntax like JavaScript is going to be more > user friendly than a syntax which is only de

Re: [Wikitech-l] zh.wikipedia.org says "you are now logged in as $1"

2009-06-30 Thread jidanni
> I logged in to zh.wikipedia.org and it says I am $1. > 您現在以「$1」的身分登入維基百科。 Not bad. It's me "Dollar One". MC Dollar One. OK, filed https://bugzilla.wikimedia.org/show_bug.cgi?id=19454 ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://li

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Trevor Parscal
Seems like JSON syntax is pretty simple and could be a big improvement to how templates are currently invoked. Bottom line, a well defined syntax like JavaScript is going to be more user friendly than a syntax which is only defined by the behavior of a parser with standardization at all. -

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brian
On Tue, Jun 30, 2009 at 6:43 PM, Thomas Dalton wrote: > There is no proposal to replace wikitext with PHP (it wouldn't even > work, PHP isn't a markup language, ditto Javascript, Python, etc.), > the proposal is to replace the template code, ie. the code on the > template pages. The OP does not sa

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Thomas Dalton
2009/7/1 Brian : > On Tue, Jun 30, 2009 at 6:34 PM, Thomas Dalton wrote: >> What would you replace them with? The wikitext used by regular editors >> should be as simple as possible, we don't want to require PHP or >> Javascript to be used by anyone wanting to add an infobox to an >> article. > > T

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brian
On Tue, Jun 30, 2009 at 6:34 PM, Thomas Dalton wrote: > What would you replace them with? The wikitext used by regular editors > should be as simple as possible, we don't want to require PHP or > Javascript to be used by anyone wanting to add an infobox to an > article. There is nothing in the OP

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brion Vibber
Andrew Garrett wrote: > On 30/06/2009, at 9:42 PM, Aryeh Gregor wrote: > >> On Tue, Jun 30, 2009 at 4:25 PM, Brion Vibber >> wrote: >>> IMO by the time you've implemented your whitelisting parser you >>> might as >>> well just interpret it rather than eval()ing. >> I don't think so. You'd onl

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Chad
On Tue, Jun 30, 2009 at 8:28 PM, Brian wrote: > On Tue, Jun 30, 2009 at 6:09 PM, Robert Rohde wrote: >> In other words, I assume things like "{{fact}}" and "{{msg | foo is >> bar }}" will be be basically unchanged on the article side but >> rewritten on the implementation side in Template: space.  

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Thomas Dalton
2009/7/1 Brian : > On Tue, Jun 30, 2009 at 6:09 PM, Robert Rohde wrote: >> In other words, I assume things like "{{fact}}" and "{{msg | foo is >> bar }}" will be be basically unchanged on the article side but >> rewritten on the implementation side in Template: space.  If that is >> correct, it wou

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brion Vibber
Aryeh Gregor wrote: > On Tue, Jun 30, 2009 at 4:25 PM, Brion Vibber wrote: >> It's not about "Wikipedia content", but about being able to grab things >> you see on another wiki and use or adapt them to your own needs. We get >> lots of questions from people trying to grab some particular template >

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brian
On Tue, Jun 30, 2009 at 6:09 PM, Robert Rohde wrote: > In other words, I assume things like "{{fact}}" and "{{msg | foo is > bar }}" will be be basically unchanged on the article side but > rewritten on the implementation side in Template: space.  If that is > correct, it would be more useful to si

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Robert Rohde
On Tue, Jun 30, 2009 at 4:01 PM, Brian wrote: > On Tue, Jun 30, 2009 at 11:20 AM, Robert Rohde wrote: >> >> However, >> given the nastiness of template syntax, I would expect no end of wiki >> authors willing to help convert the commonly used stuff. >> >> -Robert Rohde > > I was curious just how t

Re: [Wikitech-l] Wikipedia downtime?

2009-06-30 Thread Brion Vibber
Dan Collins wrote: > Apparently, for whatever reason, the master database server for enwiki > got overloaded. This was following a few updates, which may have (I > don't think they're sure yet) caused the problem. What actually > happened was the database server had a large number of queries stuck

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Trevor Parscal
I personally agree entirely. Now we just need to revive J4P5 (http://j4p5.sourceforge.net) :) - Trevor On 6/30/09 4:24 PM, Hay (Husky) wrote: > I would opt for Javascript. > > PHP and Python are intended for large and complex applications and > come with a huge standard library people probably e

Re: [Wikitech-l] Wikipedia downtime?

2009-06-30 Thread Dan Collins
On Tue, Jun 30, 2009 at 7:17 PM, The Cunctator wrote: > Was that planned downtime? > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > No. Apparently, for whatever reason, the mast

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Hay (Husky)
I would opt for Javascript. PHP and Python are intended for large and complex applications and come with a huge standard library people probably expect to be available. Security concerns are a problem too, so a subset would probably be necessary So, in essence you get a crippled-down language that

[Wikitech-l] zh.wikipedia.org says "you are now logged in as $1"

2009-06-30 Thread jidanni
I logged in to zh.wikipedia.org and it says I am $1. en.wikipedia.org didn't have that problem. 您現在以「$1」的身分登入維基百科。 如果您對維基百科有任何問題的話,請參看幫助頁。 您已登入其他的維基媒體計劃: ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/li

[Wikitech-l] Wikipedia downtime?

2009-06-30 Thread The Cunctator
Was that planned downtime? ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Andrew Garrett
On 30/06/2009, at 9:42 PM, Aryeh Gregor wrote: > On Tue, Jun 30, 2009 at 4:25 PM, Brion Vibber > wrote: >> IMO by the time you've implemented your whitelisting parser you >> might as >> well just interpret it rather than eval()ing. > > I don't think so. You'd only have to do the whitelisting

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brian
On Tue, Jun 30, 2009 at 11:20 AM, Robert Rohde wrote: > > However, > given the nastiness of template syntax, I would expect no end of wiki > authors willing to help convert the commonly used stuff. > > -Robert Rohde I was curious just how terrible of a task conversion can be expected to be. This

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Jared Williams
> -Original Message- > From: wikitech-l-boun...@lists.wikimedia.org > [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of > Aryeh Gregor > Sent: 30 June 2009 22:16 > To: Wikimedia developers > Subject: Re: [Wikitech-l] On templates and programming languages > > On Tue, Jun 30

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Robert Rohde
On Tue, Jun 30, 2009 at 12:56 PM, Aryeh Gregor wrote: > On Tue, Jun 30, 2009 at 12:16 PM, Brion Vibber wrote: >> * PHP >> >> Advantage: Lots of webbish people have some experience with PHP or can >> easily find references. >> >> Advantage: we're pretty much guaranteed to have a PHP interpreter >> a

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Thomas Dalton
2009/6/30 Steve Sanbeg : > On Tue, 30 Jun 2009 21:38:07 +0100, Thomas Dalton wrote: > >> 2009/6/30 Michael Daly : > >> How does that work with anonymous variables? Are all $[NUMBER] style >> names count as auto-declared? >> > > They're not anonymous, they're just named sequentially. They are anony

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Steve Sanbeg
On Tue, 30 Jun 2009 21:38:07 +0100, Thomas Dalton wrote: > 2009/6/30 Michael Daly : > How does that work with anonymous variables? Are all $[NUMBER] style > names count as auto-declared? > They're not anonymous, they're just named sequentially. Most languages should have some method of accessi

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Aryeh Gregor
On Tue, Jun 30, 2009 at 5:11 PM, Marco Schuster wrote: > How do statically compiled programs for x86 platforms behave on x64, btw? I'm pretty sure they work fine. Someone with more knowledge of Linux binaries needs to comment on how we could best do this, though. > And what about more "exotic" p

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Aryeh Gregor
On Tue, Jun 30, 2009 at 4:52 PM, Jared Williams wrote: > Pity there is not a method of locking down code execution to a single > namespace, (think ahead with php5.3) This is implausible, but even if it happened it wouldn't stop trivial DOSes like while (true);. We'd still need to validate the cod

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Marco Schuster
On Tue, Jun 30, 2009 at 10:45 PM, Aryeh Gregor < simetrical+wikil...@gmail.com > wrote: > Alternatively, is the libc ABI stable enough that we could dynamically > link libc, and statically link everything else? The other libraries > required are very small. I wouldn't count on this... at least w

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Jared Williams
> -Original Message- > From: wikitech-l-boun...@lists.wikimedia.org > [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of > Aryeh Gregor > Sent: 30 June 2009 20:56 > To: Wikimedia developers > Subject: Re: [Wikitech-l] On templates and programming languages > > On Tue, Jun 30

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Aryeh Gregor
On Tue, Jun 30, 2009 at 4:33 PM, Marco Schuster wrote: > Static compiling the stuff? How would this affect the binary size? Hopefully not too badly if you use the right options. libc is huge, but the linker should be able to throw out most of it if statically linking, since Lua likely doesn't use

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Aryeh Gregor
On Tue, Jun 30, 2009 at 4:25 PM, Brion Vibber wrote: > IMO by the time you've implemented your whitelisting parser you might as > well just interpret it rather than eval()ing. I don't think so. You'd only have to do the whitelisting once, on page save. After that you could just execute with no e

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Thomas Dalton
2009/6/30 Michael Daly : > Brion Vibber wrote: >  > Any thoughts? Does anybody happen to have a PHP implementation of a >  > Lua or JavaScript interpreter? > > Rather than reinventing the wheel, why not look at fixing the existing > template syntax? I would support that. We really don't need a Tur

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Marco Schuster
On Tue, Jun 30, 2009 at 10:25 PM, Brion Vibber wrote: > Aryeh Gregor wrote: > > Our > > current tarballs are 10 MB; we could easily just chuck in Lua binaries > > for Linux x86-32 and Windows without even noticing the size increase, > > and allow users to enable it with one line in LocalSettings.

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brion Vibber
Aryeh Gregor wrote: > On Tue, Jun 30, 2009 at 12:16 PM, Brion Vibber wrote: >> * PHP >> >> Advantage: Lots of webbish people have some experience with PHP or can >> easily find references. >> >> Advantage: we're pretty much guaranteed to have a PHP interpreter >> available. :) >> >> Disadvantage: P

Re: [Wikitech-l] Support for "internal images" in wikitext?

2009-06-30 Thread Niklas Laxström
2009/6/30 Brion Vibber : > Skins might want/need to be able to override certain names, too... and > we might consider about needs for localized images -- whether RTL/LTR > only or actually making translations available. Like http://laxstrom.name/blag/2008/07/05/localisation-of-images/ ? Or was the

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Michael Daly
Brion Vibber wrote: > Any thoughts? Does anybody happen to have a PHP implementation of a > Lua or JavaScript interpreter? Rather than reinventing the wheel, why not look at fixing the existing template syntax? The biggest problem that I see is the excessive dependence on the parentheses { an

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Aryeh Gregor
On Tue, Jun 30, 2009 at 12:16 PM, Brion Vibber wrote: > * PHP > > Advantage: Lots of webbish people have some experience with PHP or can > easily find references. > > Advantage: we're pretty much guaranteed to have a PHP interpreter > available. :) > > Disadvantage: PHP is difficult to lock down fo

Re: [Wikitech-l] Support for "internal images" in wikitext?

2009-06-30 Thread Chad
On Tue, Jun 30, 2009 at 2:36 PM, Gerard Meijssen wrote: > Hoi, > The operational word is replace not remove. > Thanks, >      Gerard > > 2009/6/30 Gerard Meijssen > >> Hoi. >> At the Open Translation Tools conference last week we talked about pictures >> and icons in a user interface. I learned th

Re: [Wikitech-l] Support for "internal images" in wikitext?

2009-06-30 Thread Gerard Meijssen
Hoi, The operational word is replace not remove. Thanks, Gerard 2009/6/30 Gerard Meijssen > Hoi. > At the Open Translation Tools conference last week we talked about pictures > and icons in a user interface. I learned that some of the "obvious" symbols > like a magnifying glass are not app

Re: [Wikitech-l] Support for "internal images" in wikitext?

2009-06-30 Thread Gerard Meijssen
Hoi. At the Open Translation Tools conference last week we talked about pictures and icons in a user interface. I learned that some of the "obvious" symbols like a magnifying glass are not appropriate in other cultures. So I am completely in favour of integrating images in the UI but PLEASE allow f

Re: [Wikitech-l] Support for "internal images" in wikitext?

2009-06-30 Thread Chad
On Tue, Jun 30, 2009 at 2:09 PM, Brion Vibber wrote: > Just shooting out a quick thought before I forget again -- it would be > helpful in a number of places to be able to reference "internal" > software-provided images from wikitext. > > A primary example is for help pages and inline explanatory t

[Wikitech-l] Support for "internal images" in wikitext?

2009-06-30 Thread Brion Vibber
Just shooting out a quick thought before I forget again -- it would be helpful in a number of places to be able to reference "internal" software-provided images from wikitext. A primary example is for help pages and inline explanatory text in parts of the UI which we want to be able to customiz

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Steve Sanbeg
On Tue, 30 Jun 2009 09:16:41 -0700, Brion Vibber wrote: > As many folks have noted, our current templating system works ok for > simple things, but doesn't scale well -- even moderately complex > conditionals or text-munging will quickly turn your template source into > what appears to be line

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Robert Rohde
On Tue, Jun 30, 2009 at 10:45 AM, Amir E. Aharoni wrote: > On Tue, Jun 30, 2009 at 20:42, Robert Rohde wrote: >> On Tue, Jun 30, 2009 at 10:22 AM, Bryan Tong >>> Also for Python you really will want an editor that supports >>> indenting. Web browsers are not suitable for programming Python. >> >> T

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Amir E. Aharoni
On Tue, Jun 30, 2009 at 20:42, Robert Rohde wrote: > On Tue, Jun 30, 2009 at 10:22 AM, Bryan Tong >> Also for Python you really will want an editor that supports >> indenting. Web browsers are not suitable for programming Python. > > Though indenting is mandatory for Python, the use or reasonable >

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Robert Rohde
On Tue, Jun 30, 2009 at 10:22 AM, Bryan Tong Minh wrote: > On Tue, Jun 30, 2009 at 6:16 PM, Brion Vibber wrote: > >> * Python >> >> Advantage: A Python interpreter will be present on most web servers, >> though not necessarily all. (Windows-based servers especially.) >> >> Wash: Python is probably

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brian
On Tue, Jun 30, 2009 at 11:20 AM, Robert Rohde wrote: > You couldn't ever turn template syntax off without making old > revisions unrenderable. The best one could likely do is encourage > people to upgrade and provide tools to make that easier. However, > given the nastiness of template syntax,

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Bryan Tong Minh
On Tue, Jun 30, 2009 at 6:16 PM, Brion Vibber wrote: > * Python > > Advantage: A Python interpreter will be present on most web servers, > though not necessarily all. (Windows-based servers especially.) > > Wash: Python is probably better known than Lua, but not as well as PHP > or JS. > > Disadva

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Robert Rohde
On Tue, Jun 30, 2009 at 10:15 AM, Brian wrote: > So far my favorite idea is to use a restricted subset of PHP. > > I would like to broach an important topic however: How can we convert all of > the existing ParserFunctions and difficult-to-read template code to this new > language automatically? Ar

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brian
So far my favorite idea is to use a restricted subset of PHP. I would like to broach an important topic however: How can we convert all of the existing ParserFunctions and difficult-to-read template code to this new language automatically? Are we really talking about the dream of getting rid of te

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Victor Vasiliev
Brion Vibber wrote: > Victor Vasiliev wrote: > >> I'm working on rewriting abuse filter parser so it's suitable for >> embedding in wikitext. It's half-done and will be ready soon. >> > > Eh, I'd rather replace the AbuseFilter scripting with > JS/Lua/Python/whatever too. :) > > -- brion >

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Robert Rohde
On Tue, Jun 30, 2009 at 10:03 AM, Trevor Parscal wrote: > On 6/30/09 9:16 AM, Brion Vibber wrote: >> Any thoughts? Does anybody happen to have a PHP implementation of a Lua >> or JavaScript interpreter? ;) >> >> -- brion >> >> > GPL, Alpha software, seems to be abandoned in 2005 > http://j4p5.sourc

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Trevor Parscal
On 6/30/09 9:16 AM, Brion Vibber wrote: > Any thoughts? Does anybody happen to have a PHP implementation of a Lua > or JavaScript interpreter? ;) > > -- brion > > GPL, Alpha software, seems to be abandoned in 2005 http://j4p5.sourceforge.net/ Perhaps this could be tested, considered, brought b

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brion Vibber
Robert Rohde wrote: > In the Lua Bugzilla thread (#19298), there was some extended > discussion about using the AbuseFilter parser as the basis for a > Mediawiki scripting language. From your comment should I assume we > are taking that option off the table? > > There are advantages to that appro

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brion Vibber
Robert Rohde wrote: > On Tue, Jun 30, 2009 at 9:27 AM, Chad wrote: >> I haven't tried it, but there seems to be a Lua Pecl extension. > > The Lua Pecl says: > > "We should emphasize that is still under development and is completely > experimental." > > That was nearly two years ago and there doe

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Brion Vibber
Victor Vasiliev wrote: > I'm working on rewriting abuse filter parser so it's suitable for > embedding in wikitext. It's half-done and will be ready soon. Eh, I'd rather replace the AbuseFilter scripting with JS/Lua/Python/whatever too. :) -- brion _

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Robert Rohde
On Tue, Jun 30, 2009 at 9:16 AM, Brion Vibber wrote: > There are perhaps three primary alternative contenders that don't > involve making up our own scripting language (something I'd dearly like > to avoid): In the Lua Bugzilla thread (#19298), there was some extended discussion about using th

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Victor Vasiliev
Brion Vibber wrote: > As many folks have noted, our current templating system works ok for > simple things, but doesn't scale well -- even moderately complex > conditionals or text-munging will quickly turn your template source into > what appears to be line noise. > > And we all thought Perl wa

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Robert Rohde
On Tue, Jun 30, 2009 at 9:27 AM, Chad wrote: > I haven't tried it, but there seems to be a Lua Pecl extension. The Lua Pecl says: "We should emphasize that is still under development and is completely experimental." That was nearly two years ago and there doesn't appear to have been any real wor

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Amir E. Aharoni
On Tue, Jun 30, 2009 at 19:16, Brion Vibber wrote: > As many folks have noted, our current templating system works ok for > simple things, but doesn't scale well -- even moderately complex > conditionals or text-munging will quickly turn your template source into > what appears to be line noise. >

Re: [Wikitech-l] On templates and programming languages

2009-06-30 Thread Chad
On Tue, Jun 30, 2009 at 12:16 PM, Brion Vibber wrote: > As many folks have noted, our current templating system works ok for > simple things, but doesn't scale well -- even moderately complex > conditionals or text-munging will quickly turn your template source into > what appears to be line noise.

[Wikitech-l] On templates and programming languages

2009-06-30 Thread Brion Vibber
As many folks have noted, our current templating system works ok for simple things, but doesn't scale well -- even moderately complex conditionals or text-munging will quickly turn your template source into what appears to be line noise. And we all thought Perl was bad! ;) There's been talk of

Re: [Wikitech-l] Content Security Policy

2009-06-30 Thread Magnus Manske
On Tue, Jun 30, 2009 at 11:20 AM, Roan Kattouw wrote: > 2009/6/30 Magnus Manske : >> The good folks at Mozilla are working on what they call "Content >> Security Policy" [1], basically a whitelist for JavaScript >> cross-domain access. >> >> I'm just flagging this up here because of the potential b

Re: [Wikitech-l] Content Security Policy

2009-06-30 Thread Roan Kattouw
2009/6/30 Magnus Manske : > The good folks at Mozilla are working on what they call "Content > Security Policy" [1], basically a whitelist for JavaScript > cross-domain access. > > I'm just flagging this up here because of the potential benefits from > querying toolserver tools from wiki(p|m)edia s

[Wikitech-l] Content Security Policy

2009-06-30 Thread Magnus Manske
The good folks at Mozilla are working on what they call "Content Security Policy" [1], basically a whitelist for JavaScript cross-domain access. I'm just flagging this up here because of the potential benefits from querying toolserver tools from wiki(p|m)edia sites. (and yes, there's JSON, but it'