Slashdot Mirror


Wikipedia Chooses Lua As Its New Template Language

bonch writes "In an attempt to tackle the inefficient complexity of its current template system, Wikipedia will be adopting the Lua scripting language. Known most for its use in videogame scripting, particularly World of Warcraft, Lua is lightweight and designed for easy integration into existing applications. The transition is expected to begin after the release of MediaWiki 1.19, possibly in May." Basically, the template system started turning into an ugly programming language. There was debate over using Javascript or Lua; Lua ultimately won due to implementation concerns. The mailing list threads announcing the decision and discussing the change have further details.

145 comments

  1. Re:Lua by Anonymous Coward · · Score: 2, Insightful

    As opposed to Javascript?

  2. Stop delaying the inevitable. by MadKeithV · · Score: 5, Funny

    "the template system started turning into an ugly programming language" - ah, any sufficiently complex system eventually evolves to contain a limited, broken version of Common Lisp.
    Stop delaying the inevitable!

    1. Re:Stop delaying the inevitable. by dkf · · Score: 4, Informative

      "the template system started turning into an ugly programming language" - ah, any sufficiently complex system eventually evolves to contain a limited, broken version of Common Lisp.

      This includes Common Lisp, which contains itself as a proper subset.

      --
      "Little does he know, but there is no 'I' in 'Idiot'!"
    2. Re:Stop delaying the inevitable. by goldaryn · · Score: 4, Funny

      "the template system started turning into an ugly programming language" - ah, any sufficiently complex system eventually evolves to contain a limited, broken version of Common Lisp. Stop delaying the inevitable!

      LEEEEEEEROOOY JEEEEEENKIIIIIIIIINNSSS

    3. Re:Stop delaying the inevitable. by David+Gerard · · Score: 4, Insightful

      The trouble with domain-specific languages is that they are Turing complete. This is a fatal trap: your hammer may be a great hammer, but if it's Turing-complete you will (this is a law of the universe) one day be forced to use it as a screwdriver, spanner, soda siphon, and nail. You will end up having to build a working full-scale replica of the Titanic from toothpicks and spit, complete with iceberg.

      Your rule is more like - any domain-specific language will eventually evolve into brainfuck. ParserFunctions certainly did.

      --
      http://rocknerd.co.uk
    4. Re:Stop delaying the inevitable. by jbolden · · Score: 1

      No... Norvig's variant: Any sufficiently complicated Common Lisp program contains an ad-hoc, informally-specified bug-ridden slow implementation of Prolog.

    5. Re:Stop delaying the inevitable. by jbolden · · Score: 2

      That's why DSL's in LISP are nice. They just admit the problem and include LISP underneath for when you want to do something different.

    6. Re:Stop delaying the inevitable. by K.+S.+Kyosuke · · Score: 1

      "the template system started turning into an ugly programming language" - ah, any sufficiently complex system eventually evolves to contain a limited, broken version of Common Lisp. Stop delaying the inevitable!

      Only in this case, it is a case of a system od evolving into a limited and broken version of Scheme. ;-)

      --
      Ezekiel 23:20
    7. Re:Stop delaying the inevitable. by Anonymous Coward · · Score: 0

      "the template system started turning into an ugly programming language" - ah, any sufficiently complex system eventually evolves to contain a limited, broken version of Common Lisp. Stop delaying the inevitable!

      LEEEEEEEROOOY JEEEEEENKIIIIIIIIINNTTTHHHHHHHH

      FTFY

    8. Re:Stop delaying the inevitable. by David+Gerard · · Score: 1

      What Lisp-type DSLs are there that people actually use much? The only one I can think of is Guile in GIMP, but it doesn't have a community. (And Emacs Lisp, of course, but Emacs is for goddamn geeks.) Most DSLs that even become popular enough in their area for many people to use them are not far above batch files, with Turing-completeness pretty much a bolt-on. This results in crawling horrors and a need to replace it with a real language, but the beginner user wants something very like batch files.

      --
      http://rocknerd.co.uk
    9. Re:Stop delaying the inevitable. by obsess5 · · Score: 1

      Guile is Scheme, not Lisp and not a DSL. According to the GIMP web site, their extension language was SIOD (Scheme In One Defun), but is now TinyScheme. TinyScheme is not itself a DSL, although GIMP has probably added some image-processing-specific extensions.

    10. Re:Stop delaying the inevitable. by David+Gerard · · Score: 1

      Scheme is a Lisp. It was specifically a reaction to Common Lisp's baroque excesses, but it's accepted by all as a Lisp. Assume I'm asking in the sense that Scheme is a Lisp.

      --
      http://rocknerd.co.uk
    11. Re:Stop delaying the inevitable. by JamesP · · Score: 1

      And any sufficiently complicated Prolog program contains an ad-hoc, informally-specified bug-ridden slow implementation of Minesweeper.

      --
      how long until /. fixes commenting on Chrome?
    12. Re:Stop delaying the inevitable. by jbolden · · Score: 1

      Autolisp (Autocad), ELisp (Emacs), Franz (became Mathematica), Nyquist (sound processing), MELT (internal programming language for writing compilers inside of GCC).

    13. Re:Stop delaying the inevitable. by Anonymous Coward · · Score: 0

      Most Lisp DSLs are written on the spot for each new application. It's called bottom-up programming.

    14. Re:Stop delaying the inevitable. by Anonymous Coward · · Score: 0

      Yes! thats the logic behind not turing complete template parsers like the codeguru java StringTemplate

    15. Re:Stop delaying the inevitable. by MadKeithV · · Score: 1

      The trouble with domain-specific languages is that they are Turing complete. This is a fatal trap: your hammer may be a great hammer, but if it's Turing-complete you will (this is a law of the universe) one day be forced to use it as a screwdriver, spanner, soda siphon, and nail.

      Just this weekend I was thinking of the following reformulation of that classic:
      "If all you have is a hammer, you might be really good at turning problems into nails."

    16. Re:Stop delaying the inevitable. by MadKeithV · · Score: 1

      And any sufficiently complicated Prolog program contains an ad-hoc, informally-specified bug-ridden slow implementation of Minesweeper.

      And minesweeper is really just an ad-hoc, broken implementation of some form of Conway's Game Of Life. And thus the circle is complete. Turing-complete.

  3. Let's Discuss having a Discussion about a Decision by Anonymous Coward · · Score: 0, Offtopic

    The funny thing about Wikipedia is that there's so many "Bicycle Sheds"(http://en.wikipedia.org/wiki/Bicycle_shed) that we can be ensured that no action ever takes place and there's plenty of people to opine on a point that the implementation of a decision never happens.

  4. Sounds exciting by YutakaFrog · · Score: 5, Interesting

    Lua has some notable differences from more prominent languages like Java, but as a World of Warcraft addon developer, I find it a surprisingly robust and fun language to program in. I look forward to this change to Wikipedia and hope it works well for all of their contributors.

    1. Re:Sounds exciting by Talderas · · Score: 4, Funny

      I want a DPS meter addon for wikipedia.

      --
      "Lack of speed can be overcome. In the worst case by patience." --Znork
    2. Re:Sounds exciting by Dotren · · Score: 1

      I want a DPS meter addon for wikipedia.

      I think you mean an EPS meter.. or "Edits Per Second". I think that would take all of those cross-editing arguments on there to a whole new level.

    3. Re:Sounds exciting by Anonymous Coward · · Score: 1

      DPS == Delete Per Second

      Of couse, only useful for admins.

    4. Re:Sounds exciting by Anonymous Coward · · Score: 1

      And a port of Omen to measure editor threat, too.

    5. Re:Sounds exciting by shutdown+-p+now · · Score: 2

      Lua is a language with neat syntax and clear semantics which tend towards minimalism without sacrificing usefulness, that seems to be designed by sane people for a change. Compared to some other *cough* JS *cough* it's practically a godsend.

  5. Re:Let's Discuss having a Discussion about a Decis by Trepidity · · Score: 4, Interesting

    This seems to be at least partial evidence that that's not really the case: it was discussed for a while, a decision was made, and implementation rather than further discussion is now happening.

  6. Re:Lua by kelemvor4 · · Score: 0, Troll

    As opposed to Javascript?

    Yes, that's a good example of a better choice.

  7. Oh great by Anonymous Coward · · Score: 0, Insightful

    Maybe they should take a step back and wonder why templates became so popular in the first place? Now every page looks the same, and sports fifty irrelevant warning messages that "this page is part of blah blah blah" and god help you if you decide not to use the template, or change something you don't like about it, because you will bring down the wrath of the anal-retentive neckbeards that run the place harder than the fist of an angry god.

  8. Re:Lua by Anonymous Coward · · Score: 0

    No, Lua is a good example of a better choice, which is why they chose it. Shut the fuck up if you won't back up your points (my post being an example just so you get it)

  9. Raw- or OOP-base Lua? by Phrogz · · Score: 4, Interesting

    I'll be interested to see if they go for WoW-style "raw", imperative Lua (gobs of functions) or a more OOP-style Lua (NB: my site).

    In designing the Lua interface for an old Game UI authoring product I originally went with OOP-style Lua. It was (IMHO) a rather elegant wrapper on our DOM. However, we soon found that the memory thrash of using Lua's lightweight userdata to go back and forth between C++ and Lua resulted in poor performance on consoles, and I ultimately had to redesign the interface to be more WoW-like for our next release.

    It was a shame, putting more onus on the scripter to manage objects (tables of properties in Lua) based on a 'pointer' passed around to uniquely identify each element in the DOM, and passing that pointer to all relevant functions. But the performance increase was dramatic.

    1. Re:Raw- or OOP-base Lua? by Phrogz · · Score: 4, Interesting

      BTW, my personal opinion on Lua:

      It's a fun language to learn, because at the core it is *so* simple. In less than a week a good scripter can fully wrap their head around everything that Lua has to offer from the scripting side (not the C++ side; that might be another week). It's rather elegant, really, with convenient syntax for integer-based for-loops that automatically create a new copy of the loop variable on each pass for simple closure creation.

      However, when you get down to actually typing in itwell, it's not as verbose as Java, but there's some real RSI danger there. With it's simple core come decisions like "not only will we not give you foo++, we won't even give you foo+=1". Try typing things like "frameCounter = frameCounter + 1" many times and you'll start to scream. Every day I scripted in Lua at work I would long for the times when I could use Ruby to actually get something done.

      For those who know JavaScript and want to get a glimpse of what Lua is like, I have a page on my site: Learning Lua from JavaScript.

    2. Re:Raw- or OOP-base Lua? by Short+Circuit · · Score: 2

      I hope they're going with a PHP extension, and not implementing LUA in PHP. I'd rather have the execution happen in C code than PHP, for execution speed reasons, and I imagine their server operators feel similarly. (Though there's the obvious counterpoint that you're adding a new chunk of less-tested code that has fewer barriers to cross to exploit some vulnerability...)

      In any case, I can't say I'm upset at the change--I'm actually a bit giddy. MW templates are a royal PITA.

    3. Re:Raw- or OOP-base Lua? by Anrego · · Score: 1

      To be honest, while that would be great for wikipedia itself, for users of wikimedia, having to install a PHP add-on would be a nightmare (especialyl those with shared hosting).

    4. Re:Raw- or OOP-base Lua? by speps · · Score: 1

      After integrating Ruby into the SciTE editor, I can say that Ruby's biggest drawback is it's complete lack (at least when I tried it, maybe not now with another VM) of simple C embedding like Lua does. It was pain to embed but it worked somehow, it was not as clean as SciTE's Lua integration though.

    5. Re:Raw- or OOP-base Lua? by lahvak · · Score: 1

      If that is really a problem, why don't you make an editor shortcut that will automatically expand frameCounter++ to frameCounter = frameCounter + 1? Who still types out every little piece of repetitive code these days?

      --
      AccountKiller
    6. Re:Raw- or OOP-base Lua? by Anonymous Coward · · Score: 1, Interesting

      And the previous two posts, just for starters, is exactly why Python continues to be so populuar. Well that and the fact that Ruby works hard to be the anti-culture programmer's language. Which means its unlikely to ever be more than an obscure language.

    7. Re:Raw- or OOP-base Lua? by bonch · · Score: 1

      I thought a light userdata was a pointer. I know one technique is to use a full userdata to represent a pointer and use the metatable capability of full userdata to register C functions as methods that interact with the properties of the real object.

    8. Re:Raw- or OOP-base Lua? by Short+Circuit · · Score: 1

      To an extent. Shared hosting providers are a dime a dozen, though, so finding a different one is pretty easy. Then there's Wikia and a number of other wiki farms ranging from free to an equivalent to managed hosting. And migrating a MW site isn't all that difficult, and not necessarily even time-consuming; the software is very good about that kind of thing, including cases where you need to upgrade.

      Server administration to add that kind of thing is easy, and where a shared hosting provider falls behind, migration to another won't be preventatively difficult for anyone who shouldn't have been using a wiki farm to begin with.

      Of course, for people like me who have to run our own server to run MediaWiki on, it's almost a nonissue; typically just a package install to get what we need. And I've been running a reasonably popular MediaWiki install for five years, so things may appear simpler to me than to other people. Point is, administering a website requires a minimum of knowledge, even if that minimum of knowledge is being able to migrate to a different service provider. If they can't do that, they weren't going to get around to upgrading in the future place.

    9. Re:Raw- or OOP-base Lua? by Anrego · · Score: 1

      True enough for people who run a website that mainly revolves around their wiki.

      However, lots of people just throw a mediawiki install to supplement the rest of their site, usually precisely because it's dead simple to get running and works on just about any host. Moving to another host just to preserve their little 10 page wiki is probably not sensible, and the content is probably in-appropriate for external wiki hosts (or isn't desirable for other reasons).

      Obviously for people with their own server (or in my case, a VPS) this is a non-issue .. but I figure there are probably enough people for which this would be an issue that I can't see them not at least providing a PHP only implementation as an option.

    10. Re:Raw- or OOP-base Lua? by nahdude812 · · Score: 4, Informative

      There is a LUA PHP PECL extension: http://pecl.php.net/package/lua

      It's relatively new, but this kind of attention could really skyrocket the extension forward. It's a great idea at large, there are a variety of situations where you want to defer decisions to your customer. Historically that meant creating a kind of pseudo DSL with a bunch of forms to fill out for the customer, with hopefully most major options covered, but usually failing to satisfy a variety of corner cases.

      Another alternative is the V8JS extension (JavaScript). The advantage of JS is that more people know it already, and in may ways, JS is surprisingly elegant (not that Lua isn't). It won't perform as well as LUA though, and requires more resources to maintain the VM.

    11. Re:Raw- or OOP-base Lua? by Short+Circuit · · Score: 1

      Those users will be able to stay on their pre-LUA version of MW for a major release or two (upstream doe security and bugfix releases for a while), which should give their vendor time to upgrade, if necessary.

      And, yes, I'm sure someone will come up with a MediaWiki extension to implement Lua in pure PHP, and patches will probably be accepted to allow selection of Lua providers in LocalSettings.php. Of course, the reverse is also plausible; upstream might choose to use a pure-PHP solution, and the existing PECL extension might be tied in via a subsequent MediaWiki extension.

    12. Re:Raw- or OOP-base Lua? by Short+Circuit · · Score: 1

      yeah, I saw that; I googled for it before finishing my original comment. :)

    13. Re:Raw- or OOP-base Lua? by mwvdlee · · Score: 1

      Lua is supposed to be embedded and extended with domain-specific functions.
      If you're developing RSI while using Lua, you're probably trying to do too much inside the Lua script that should be done in the application code.

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
    14. Re:Raw- or OOP-base Lua? by HarvardAce · · Score: 1

      True enough for people who run a website that mainly revolves around their wiki.

      However, lots of people just throw a mediawiki install to supplement the rest of their site, usually precisely because it's dead simple to get running and works on just about any host. Moving to another host just to preserve their little 10 page wiki is probably not sensible, and the content is probably in-appropriate for external wiki hosts (or isn't desirable for other reasons).

      Obviously for people with their own server (or in my case, a VPS) this is a non-issue .. but I figure there are probably enough people for which this would be an issue that I can't see them not at least providing a PHP only implementation as an option.

      In your simple case, is there any reason to upgrade to a version of MW that implements LUA for templates, especially if it means an incompatibility with your current provider?

      --
      Note to self: Stop putting jokes in my insightful comments so I can get something other than +1 Funny!
    15. Re:Raw- or OOP-base Lua? by David+Gerard · · Score: 1

      They'll probably end up writing brainfuck in it, like they did with the existing ParserFunctions language.

      --
      http://rocknerd.co.uk
    16. Re:Raw- or OOP-base Lua? by Darinbob · · Score: 2

      Look at how it's implemented though. Lua is small and efficient. Ruby looks like a committee has been working on it, and Python is even bulkier. That's why you see Lua in embedded systems so much more than other interpreted languages. It doesn't get in the way of the application like say Tcl does. Yes it comes with very little in the way of "standard library" which is also a benefit in many ways. I've seen some extremely elegant OOP systems for Lua that are short and do what is needed and no more, while simultaneously others re-created their favorite OOP style and end up writing more code to do that than their application code itself. Lua works because it keeps it simple.

    17. Re:Raw- or OOP-base Lua? by shutdown+-p+now · · Score: 1

      One thing about Lua is that its source code is also small and clean and easy to work with. So it's trivial to change things that you don't like, or add small things that seem to be missing.

    18. Re:Raw- or OOP-base Lua? by gnapster · · Score: 1

      I think that bug fixes and security patches might be one reason, but maybe they will be backported.

    19. Re:Raw- or OOP-base Lua? by pnot · · Score: 3, Insightful

      However, when you get down to actually typing in itwell, it's not as verbose as Java, but there's some real RSI danger there. With it's simple core come decisions like "not only will we not give you foo++, we won't even give you foo+=1". Try typing things like "frameCounter = frameCounter + 1" many times and you'll start to scream.

      Which, for me, immediately raises the question "Are there any good Lua IDEs?". I mainly code in Java, and it's true that it can often read like the Book of Deuteronomy -- but fortunately I don't have to type all that shit out, because NetBeans autocompletes a lot of it for me. Is there anything similar for Lua?

    20. Re:Raw- or OOP-base Lua? by Anonymous Coward · · Score: 0

      "not the C++ side" FYI, Lua was created in C, not C++.

    21. Re:Raw- or OOP-base Lua? by jerry.tk · · Score: 1

      As for IDE I was somewhat successful with IntelliJ Idea and its Lua plugin which seems to be mature enough. You can supply your own autocompletion scripts and docs as well.
      There's also Lua plugin for Eclipse but that was not versatile enough for my purposes.

    22. Re:Raw- or OOP-base Lua? by JasterBobaMereel · · Score: 1

      Roll on Apache 2.3 it has Lua scripting built in ....forget implementing Lua in PHP, if you really want to you could implement PHP in Lua ...

      --
      Puteulanus fenestra mortis
    23. Re:Raw- or OOP-base Lua? by Anonymous Coward · · Score: 0

      There's also Lua plugin for Eclipse but that was not versatile enough for my purposes.

      If you are thinking of LuaEclipse, you might like to have a try at its natural successor, which is under very active development: http://www.eclipse.org/koneki.ldt
      Since the actual code parsing is done in Lua itself (actually, Metalua), it is bringing versatility in that it can be tweaked, should you need to support tricky patterns...

      (Disclaimer: I am the project lead of Koneki ;-))

  10. Re:Lua by Anonymous Coward · · Score: 5, Funny

    Javascript is web scale. Lua is not web scale. Also: Lua comes from Brazil. You know what else comes from Brazil? Waxed balls. I wouldn't trust a programmer that waxes his balls. If he can't make good decisions involving his nutsack, can he make godo decisions involving language design? (Just look at PHP!)

  11. Re:Lua by james_van · · Score: 3, Funny

    That's a really valid argument. Im inclined to agree.

  12. Re:Lua by Anonymous Coward · · Score: 0

    What the fuck is web scale? Some kind of armor from fantasy RPG?

  13. Re:Yay! by Trepidity · · Score: 2

    You don't generally need to be an administrator to edit the scripts, with the exception of a few scripts that are used on so many pages that they're vandalism magnets. And even for those, you can propose changes on the talk page, which are usually made if they're reasonable. There is not really a whole lot of politicking around the content of scripts, although admittedly that's partly because the home-rolled language sucks so much that very few people care to figure out how to edit pages that look more like line-noise than classic Perl did.

    There's sometimes politicking about whether a particular one should exist or be used at all; some people find the proliferation of infoboxes, footer boxes, succession boxes, portal boxes, etc. too much clutter and not very useful. But the internals, afaik, aren't one of the hotbeds of debate.

  14. StringTemplate is designed for this by GodfatherofSoul · · Score: 1

    The author specifically modeled it on MVP to maintaining a strict separation of concerns. Presentation and model don't co-mingle. Might seem a bit unusual at first since the language will seem limited at first. But, it'll keep you from running into the "bloating script" problem.

    --
    I swear to God...I swear to God! That is NOT how you treat your human!
  15. Not a language problem by zarlino · · Score: 3, Insightful

    Wikipedia could stick to PHP or switch to any other language. But that's not their problem. Their problem is the messy markup language they slowly created. I know cause once I tried to render their markup inside another app. Basically, they have all sorts of tags that reference obscure server-side behaviour and everything is so entangled that creating a new renderer is basically impossible. This is sad because they are wasting the work of volunteers.

    --
    Check out my cross-platform apps
    1. Re:Not a language problem by JDG1980 · · Score: 2

      This actually is a serious problem that has been discussed on the Wikipedia development and foundation mailing lists. Because Wikicode is not rigorously defined like real HTML/XML, the only definition of correct output is "whatever the current parser generates." This not only makes it nearly impossible to independently implement Wikicode in other products besides MediaWiki, but it also makes it far more difficult to create a WYSIWYG editor that doesn't break things. And doing the latter has been a goal of many people high up in Wikipedia for some time.

    2. Re:Not a language problem by David+Gerard · · Score: 3, Informative

      That's the precise problem. 1. the language was never designed, it accreted, and is mathematlcally impossible to describe fully in most sensible formats. 2. we can't throw it away because there's billions of words of text in it accumulated over ten years. 3. we can't throw it away because the existing editor base demand it stay because they're used to it.

      So WMF is (a) throwing money as well as brilliance at the problem, and (b) has put Brion Vibber onto sorting out what is to be removed from wikitext, because he's one of two people (Tim Starling the other) that people will accept the opinion of on this matter. All proceeds well :-)

      So now the problems are with seriously complicated things like doing bidirectional text properly - a hard requirement for an international project, and one that is not done quite properly by anyone else. Something where mere dev brilliance has half a chance :-)

      --
      http://rocknerd.co.uk
    3. Re:Not a language problem by doom · · Score: 1

      That's the precise problem. 1. the language was never designed, it accreted, and is mathematlcally impossible to describe fully in most sensible formats.

      Ah. So they should re-implement it in perl.

      Perl hackers live for problems like that.

      So now the problems are with seriously complicated things like doing bidirectional text properly

      I would've thought that was more of a problem for the browser developers. Getting the right UTF-8 output shouldn't be that difficult.

    4. Re:Not a language problem by David+Gerard · · Score: 1

      Perl, or at least PCRE, is the basic problem: the parser is a series of processing steps, many of which are regular expressions. You could translate that directly into Perl without much work, but it's entirely unclear it would actually buy you anything.

      The bidi problem is not display - per the link I helpfully provided, it's editing. Wherever LTR (usually Latin) and RTL (usually Hebrew or Arabic) are mixed, which is everywhere Hebrew or Arabic are.

      --
      http://rocknerd.co.uk
    5. Re:Not a language problem by Aluvus · · Score: 1

      They are sticking to PHP. What they are changing is the language used by templates (the system that allows reuse of text, but has grown to provide all programmatic features available to editors). The current templating system is at least part of what you accurately describe as "obscure server-side behaviour".

      As it stands right now, "plain" templates that just insert some text or whatever are not too bad. But templates that do anything more complex, especially if they require the use of ParserFunctions, quickly become a nightmare to write and matinain. Hopefully Lua will be better. I can't imagine it being much worse.

      --
      Never mistake "can" for "should".
    6. Re:Not a language problem by dkf · · Score: 1

      The bidi problem is not display - per the link I helpfully provided, it's editing.

      But that's still a browser problem, not really a wiki problem (unless they're writing their own editor in Javascript or something equally boneheaded). You've got to delegate some problems to others, even if you know they're doing some stuff wrong, because there's just never enough time to do everything yourself.

      --
      "Little does he know, but there is no 'I' in 'Idiot'!"
    7. Re:Not a language problem by Haeleth · · Score: 1

      That's the precise problem. 1. the language was never designed, it accreted, and is mathematlcally impossible to describe fully in most sensible formats. 2. we can't throw it away because there's billions of words of text in it accumulated over ten years. 3. we can't throw it away because the existing editor base demand it stay because they're used to it.

      Wait, are you talking about MediaWiki templating or PHP?

    8. Re:Not a language problem by David+Gerard · · Score: 1

      Per the page, they considered delegating it to the browsers, but the browser versions suck too badly. Read the link, it's informative.

      --
      http://rocknerd.co.uk
    9. Re:Not a language problem by David+Gerard · · Score: 1

      Arharhar. PHP, of course, approaches Intercal rather than Brainfuck.

      --
      http://rocknerd.co.uk
  16. Re:Lua by Hognoxious · · Score: 4, Funny

    Lua is a terrible language. It is also an excellent language.

    FTFY (see WP:NPOV)

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  17. Lua is Great for Configuration by alexbirk · · Score: 4, Interesting

    Embedding Lua for configuration or building templates is it's real strength. I've used it many times in programs that require pretty extensive configuration and it's a joy in that environment. I think it's a great choice for this.

    1. Re:Lua is Great for Configuration by Anonymous Coward · · Score: 0

      But will I still be able to have a clique of editors to revert edits of newbies?

  18. Re:Lua by Anonymous Coward · · Score: 2, Informative

    I've never been able to get into Lua, whereas Python and Javascript I have. I prefer C/C++, Java, C# however. Though, if I had to pick a scripting language to use I'd use Python. Ruby is unbearable for me, I've tried to like it just can't. Lua isn't unbearable so much as I'm generally too bored with it to try it.

    Things I generally don't like about Lua:
    1) Lua replaced the ! symbol with ~ for Not. This doesn't make any sense. Not that ! made much sense either. I do like that they added a "not" keyword. That at least makes sense.
    2) It feels very BASIC with its do, end, then, end etc. That's not a good thing. We should be moving away from that garbage.
    3) I'm not a particular fan of any language that wants me to type one of; local, let, or var. The parser should be able to figure out when I'm assigning at all times. And, they still use == in this language which is silly since the whole point of using local, let, or var is so you can distinguish = from assignment or condition. It's annoying when languages that do this. Having said that, you could just pull a Pascal instead := or something if you absolutely must avoid ==, I'd complain a lot less. At least it's a clever and convenient way of addressing the problem. Let's face it, == only makes sense to a programmer, a mathematician would look at you weird. Then again they'd look sideways at := too, whereas Let in math has a meaning. Really I think math should teach := and drop the let, it'll save room on whiteboards.
    4) Why should you have to prepend = to evaluate something? Like: = 2+3, or even = 3 == 3. Why can't I just type 2+3, or even 3 == 3? It's weird.
    5) They went so different with everything, but they kept % for modulo? Doesn't make sense, why not just type mod? The symbol never made much sense. If they were being really adventurous they would have tried harder IMHO. Having said that, I respect that they switched ^ to power instead of xor.
    6) I'm not a fan of using .. to concatenate strings either. "a".."bc" looks godawful goofy. I much prefer "a" + "bc". I get that it can cause problems when you need to mix in math, but that's what parenthesis are for. I see why they didn't use + though, they support "coercion", like 100 + "7" becomes a 107 integer. Which is a pretty cool concept I guess. But, it forces you do something weird like .. for concatenation which is a minus against it. Maybe they could have done just "a" "bc" becomes "abc". Then it'd be as simple as two strings like str1, str2 just being placed like... str1 str2 in order to concatenate them. Then they could still use + for coercion.
    7) I don't mind nil for NULL. It's better than Python's Nothing IMO because it's shorter. Though, I see where Python was going, they were trying to make it obvious when read by a user who doesn't know programming. However, the rest of Python isn't obvious to a non-programmer anyways, so that defeats the purpose. Whereas, nil is at least is less typing, doesn't require an uppercase, and it has an English and Latin definition so as far as being a real word it's wins against Nothing in at least simplicity. I give them props for using this.
    8) tonumber("10") is goofy, they're going for English I guess. Python's int("10") is less typing so I'd prefer that. I think when it comes to English vs typing less, as long as it isn't a weird symbol that makes no sense, I lean towards typing less. However, I could live with tonumber, it's not one of the worst things in this language.
    9) Having to type function or def in a language to declare a method is annoying. If I was forced at gunpoint to choose, I'd probably go with function because at least it's obvious, less typing didn't win out here, def is weird looking and doesn't make sense at all. The def keyword reminds me of Sub from BASIC, in a bad way. I realize it's a bastardization of defmethod from Lisp. If we absolutely have to have some way of parsing methods (I think there should be a way around it IMO) startin

  19. Re:Let's Discuss having a Discussion about a Decis by Anonymous Coward · · Score: 1

    Exactly what I was thinking. We have a problem: not enough people understand how to edit Wikipedia because of it's complexity. Rather than analyze what makes it complex and how it could be simplified (which is boring), we'll focus on implementing something technically whizzy in some language that's cool, and that will solve the problem.

  20. It's called "the inner-platform anti-pattern" by Anonymous Coward · · Score: 1

    Wiki syntax did always strike me as stunningly stupid. It has essentially become just another markup language. Except that it's much more unclear, shitty and limited than original XML. Which is a textbook example of the inner-platform anti-pattern.

    Another horrible example is TypoScript. Which is a template language, written in another template language (PHP)!! Again becoming a shitty clone of PHP. Which itself already is a shitty clone of a proper scripting language. (I've had to use it in my day job, every day, for five years. I know. [And yes, I still keep up-to-date. And if anything, with the new tacked-on over-blown object system it has only gotten worse.])

    XHTML already IS a n00b markup language that your grandma can use.
    PHP already IS a n00b template language that every "web designer" (read: wannabe amateur) can use.

    And for that purpose, they are perfectly fine!

    1. Re:It's called "the inner-platform anti-pattern" by Lennie · · Score: 2

      As I understand it:

      MediaWiki is written in PHP and they wanted to create a sandbox for the templates scripts, so they choose to use Lua as a PHP extension.

      Because Lua is very suitable for embedding, as that is what it's general purpose in life is.

      There is no PHP in a sandboxing inside PHP as far as I'm aware of.

      --
      New things are always on the horizon
    2. Re:It's called "the inner-platform anti-pattern" by Anonymous Coward · · Score: 0

      Sorry, but any time I read a post whose main point seems to be that "real" programmers use PHP only under duress, I stop paying attention. I'm going to go out on a limb and guess you're a Ruby developer?

    3. Re:It's called "the inner-platform anti-pattern" by dkf · · Score: 1

      Except that [wiki syntax is] much more unclear, shitty and limited than original XML.

      Yes, but it's far simpler to write in wiki syntax. I know you don't necessarily agree, but my experience is that hardly anyone is able to write correct XML; they just don't bother to create well-formed documents (never mind validity). With wiki syntax, you can do a pretty good job of recovering something sensible out of virtually any character sequence.

      Well, unless you have a complicated templating system like mediawiki's one. Writing good templates for anything other than the very simplest of substitutions is remarkably difficult; it's programming, not normal editing.

      --
      "Little does he know, but there is no 'I' in 'Idiot'!"
  21. As opposed to a Wordpress style engine? by PortHaven · · Score: 4, Insightful

    Seriously, Wikipedia's #1 fault and the reason I ceased actively contributing is that it requires humans to use a mark-up language for what is essentially a simple text based document.

    And all such edits would be handled much easier via a WYSWIG editor. Yes, elitist monkeys with far too much time on their hands love that feel of doing something complicated for the sake of it.

    Those more intelligent and or beings who have furthered the race through reproduction tend not to want to waste time.

    Implement a simple editor that facilitates editing. And let computers do what they do best, process. And humans do what they do best collate ideas and knowledge.

    First rule of computers. Don't waste time doing what a computer can do better than you.

    1. Re:As opposed to a Wordpress style engine? by TheSunborn · · Score: 1

      Implementing a "Simple editor" which allows the user to use all of wikipedias features is not a simple task. It is a very very very tough task, for the same reason that making a general html editor is very difficult. There is a reason that so much html/css is still written "by hand" and it is not because we like it.

    2. Re:As opposed to a Wordpress style engine? by lahvak · · Score: 1

      And all such edits would be handled much easier via a WYSWIG editor.

      YMMV, but I find that editing structured documents is much faster using plain text, than a WYSIWYG editor. That is if the mark up language is not idiotically verbose, like XML.

      Don't waste time doing what a computer can do better than you.

      Exactly! Why should I waste time formatting the document, when the computer will easily do it for me. I just type what I want to say, and let the computer place it on the screen.

      --
      AccountKiller
    3. Re:As opposed to a Wordpress style engine? by bananaquackmoo · · Score: 1

      Huh? You're comparing apples to oranges here. Editing the content in a wiki entry has nothing to do with this Slashdot article.

    4. Re:As opposed to a Wordpress style engine? by Maury+Markowitz · · Score: 0

      " I find that editing structured documents is much faster using plain text, than a WYSIWYG editor"

      I assume you mean something like HTML or such. But I also suspect this does not apply to something like a word processor document, where you likely use Word or something similar?

      Wikipedia documents are supposed to be word processor documents. Unfortunately, they've been implemented in code. *THAT* is the problem here.

      And as one of the Wiki's more prolific authors, I state this from more than a little experience. I currently do my editing offline in Smultron, but I would kill for a GUI editor that let me drag references around, to start with.

      Here's what I imagine

      I start a new document. It opens a window on the left with a sidebar on the right.
      I start my research, finding references and images I want to use. I drop them in the sidebar.
      I start writing. I drag items from the sidebar into the document where I want it.
      When I save, it asks me to format the sidebar info, adding things that it can't get from the URL (say the publisher for a book).

      That would save me hours a document. Right now I use a lash-up in Smultron which is far from ideal.

    5. Re:As opposed to a Wordpress style engine? by Hatta · · Score: 2

      I assume you mean something like HTML or such. But I also suspect this does not apply to something like a word processor document, where you likely use Word or something similar?

      He's talking about LaTeX. It's both a word processor document AND code. And it's better than Word in every way except the steepness of the learning curve.

      --
      Give me Classic Slashdot or give me death!
    6. Re:As opposed to a Wordpress style engine? by epine · · Score: 2

      Wikipedia documents are supposed to be word processor documents.

      Huh, I never got that memo. I thought it was a system for collaborative editing and mass distribution. In my own experience, I've always found WYSIWYG turns far too quickly into WYGIWYSW (what you get is what you're stuck with). And besides, the collaboration system depends on a diff tool with a human-accessible interpretation. It's not as if authoring is the only mission-critical task.

      I started writing some WordPress posts recently in the visual editor, and man does that suck. A simple paste carries all kinds of format from the source document I usually don't want. When I press "undo" to use the clunky "text paste only" widget, the undo scrambles my window scroll position, and sometimes takes out a piece of my previous edit as well. It's a PITA to add text to a paragraph that ends with link text. CR SPACE BACK-ARROW BS FORWARD-ARROW seems to work to get me out of the link text format zone. This is better than raw markup? How, exactly?

      Different strokes for different folks, I guess.

      I've been following LuaTeX for some while. It's a lot of things, but compared to base LaTeX being a speed daemon is not one of these. Should be plenty fast enough for Wikipedia, though.

      One thing that turned me off Wikipedia was the asymmetry of the quantification system: there's no way to add the statement "it has never been said that ..." to a valid article. Of course, this is not a problem if someone notable has bothered to make a trivial observation in that mode on the record, but surprise ... it turns out that notable sources often have better things to do than state the obvious. Kind of like Godel's theorem: in any attestational system, there is something blindingly obvious no-one has ever bothered to note for the record because it's too trivial to bother with. The same thing bugs me with peer review: positive results circulate, negative results vanish without a trace. I find it a burden to create balance working in a half a predicate logic, but I'm weird that way, let me be the first to admit it. In a way, a person of my temperament never really belonged there in the first place. I graciously retired when I discovered the fault was on my side, though I do still fix howlers whenever they cross my path.

      I was also frustrated with how Wikipedia lost traction on leverage. (I don't want to belabour that just now.) Hopefully this is the beginning of reversing the tide.

    7. Re:As opposed to a Wordpress style engine? by lahvak · · Score: 1

      But I also suspect this does not apply to something like a word processor document, where you likely use Word or something similar?

      Actually, I use Vim editor to enter LaTeX or ConTeXt code for all my documents. I find Word clunky and hard to use, OpenOffice and LibreOffice are even worse.

      A good references and media manager that would work with a variety of mark up languages would be a nice thing to have, though. I personally would prefer something keyboard driven over dragging things with mouse, but so far I have not find either.

      --
      AccountKiller
    8. Re:As opposed to a Wordpress style engine? by UpnAtom · · Score: 1

      Would have thought /. to be the last place people would complain about having to embed their own codes.

      However, I agree totally -- especially when it's using nonstandard tags.

      Not sure if this is the biggest problem with Wikipedia. Any subjects where the zealotry is one-sided end up incredibly biased. This is because Wikipedia policy assigns too much scope to consensus, which in turn is decided by how unfriendly the zealots can be to new editors.

      I also cheered the other week when I discovered /. had started auto-detecting URLs.

    9. Re:As opposed to a Wordpress style engine? by Anonymous Coward · · Score: 0

      The latent idea in your post that it would at some point in the future be possible to create a layer on top of Wikipedia that lets you edit it as it looks is so obvoiusly impossible that not a thousand man-years of systems analysis could do it. Though given twenty minutes and a couple of libraries I might be able to.

  22. Re:I'm not really interested by Anonymous Coward · · Score: 0

    1) Then why bother even reading the article?
    2) Wikipedia is a visible site seen by a great number of people, so it's still relevant.
    3) The engine that WP uses, MediaWiki, is used by other wikis besides Wikipedia, some of them even actively anti-Wikipedia.

  23. Re:I'm not really interested by Anonymous Coward · · Score: 0

    Cool story, bro.

  24. Re:I'm not really interested by sourcerror · · Score: 1

    Sorry, your comment is NPOV. I marked it for speedy deletion. Also see WP:Shit_that_no_one_cares_about
    -- SparklyRainbowLetters

  25. Yay lua by Osgeld · · Score: 2

    the only language that would use more words to describe the article than what's in the article

  26. Re:Let's Discuss having a Discussion about a Decis by Anonymous Coward · · Score: 0

    Just because the decision has been officially put to rest does not mean that it won't be unofficially/covertly trifled to death. The original posts subject "Let's discuss having a discussion about a decision" may very well still apply.

  27. Re:Lua by mwvdlee · · Score: 1

    As opposed to whatever scripting language(s) MediaWiki was already using for the rest of it's code.

    --
    Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
  28. Re:Lua by lahvak · · Score: 1

    This is probably the stupidest rant I have read in a long time.

    --
    AccountKiller
  29. Re:Lua by Anonymous Coward · · Score: 2, Interesting

    1) In standard logic, ~ means NOT. Since LUA uses functions for it's bit-wise operations, I see no issue with using this.
    2) Why? People don't consider C to be BASIC and it allows pre and post-test WHILE loops.
    3,4) I got nothing
    5) You should really make up your mind here. They use the normal % for modulo and you complain? Come on now.
    6) PHP uses . to concatenate strings, seems like you're splitting hairs here for no particular reason other than to complain.
    7) Wow, you found something good?
    8) LUA is dynamically typed, why would they have an int()?
    9,10) You really shouldn't be using LUA... go with a language that you like. It sounds like you prefer Python anyways.

    Just as a note, I haven't programmed anything in LUA before but I've looked at the code and looked over the reference manual. Looks like a fine language; I just have no use for it as of yet.

  30. Re:Lua by Anonymous Coward · · Score: 0

    Wait wait, do waxed balls support sharding?

  31. Re:Lua by Anonymous Coward · · Score: 0

    What's with the caps? Lua is not an acronym.

  32. Another use of Lua by madison_hotel · · Score: 1

    The nmap guys seem to have considered a few scripting languages too for a while, and stuck to Lua because of a couple of reasons addressed in this conference (and probably in some other place in the NSE docs). While I know nothing of the people behind the scenes of Wikipedia, I do kind of trust the decisions made by the nmap team, so my guess is it's not a clueless decision.

  33. Re:Let's Discuss having a Discussion about a Decis by David+Gerard · · Score: 1

    That's because it's the devs. They tend to solve stuff in relatively short order.

    (The reason a visual editor has taken so long is that it involved not merely an impossibly difficult problem - analysing wikitext - but politics as well - ten years' existing data and a requirement to keep the shitty, shitty format. Wikimedia has lots of sheer brilliance on tap, but this problem also required money and politics.)

    --
    http://rocknerd.co.uk
  34. LuaTeX by Anonymous Coward · · Score: 0

    Knowing nothing about Lua(La)TeX, I wonder if this could be helpful in any way. Perhaps, at least in *TeX -> HTML conversion?

  35. The reason by Tei · · Score: 1

    I don't have the bookmark here, but I followed the discussion ( I am on that mail list, and I am a huge fan of javascript ) is that with Lua, is possible to have "quotas". You can limit what LUA do in cpu and ram useage, while a javascript vm maybe will end stressing the server. This was the ultimate motive. This and that some features we easy to implement (where already implemented in the discussion). I think this mean that Javascript must add these things, and make easy for "language embeders" to control how much memory javascript take. I don't know how feasible is that.

    --

    -Woof woof woof!

    1. Re:The reason by JasterBobaMereel · · Score: 1

      Javascript is a well known scripting language and has been made into a reasonable one because it is used a lot ...but it is not a good language

      Lua was designed as an embedded scripting language, and is very good at it, but is not a general purpose scripting language

      Now look at the the scripting languages people use outside Web sites and JavaScript is almost unheard of ...there is a reason for this

      --
      Puteulanus fenestra mortis
  36. Re:Lua by Xtifr · · Score: 2

    Disclaimer: I mostly like Lua, though I wouldn't say I love it. Like all languages, it has advantages and disadvantages. Lua's strength is embedding, though, and that's where it shines--the only other language that comes close is Tcl, and Lua is cleaner, IMO.

    1. I mostly agree with you that ~= for not equals was a mistake. As another poster pointed out, it's a somewhat justifiable mistake, but we had nearly managed to standardize !=. Lua is the first recent language to ignore this near-standard. After 11, below, this is probably my biggest complaint about Lua.
    2. BASIC? Really? Dude! Those keywords don't come from BASIC! (In fact, I've never used a version of BASIC that supported any of them--oh, and get off my lawn!) Those come from Algol, probably by way of Pascal or Modula, and they're great, which is why BASIC ripped them off--they're probably the only good part of any flavor of BASIC, because they're not BASIC features. :)
    3. I'm not sure what you're on about with "local, let and var" (though I think I disagree), but the rest of your rant (about "==") is inconsistent with your earlier complaint about "~=". Like "!=", "==" has become more-or-less standard, and I'm glad Lua didn't decide to innovate here.
    4. What are you on about? "print(2+3)" works just fine, as does "a = {1, 2+3}".
    5. Man you're stretching! And again, inconsistent with your point 1.
    6. Matter of taste. I think I actually prefer "..", but it's not something I feel strongly about either way. Using "+" for concatenation tends to work better in an OO language with operator overriding. Lua's more of a low-level embedded language.
    7. Like, whatever. Is this really worth even discussing? 47 different languages do this 47 different ways, and all of them are fine.
    8. tonumber() is consistent with the other coercion functions, and if you really hate typing that much, you should probably find another line of work. I certainly wouldn't want to hire you. People who complain about extra typing are generally the ones who write opaque, cryptic, incomprehensible code with no comments.
    9. Oh. My. God! If you ever design a language, I will pray that I am never, ever forced to use it! :) Oh, and "def" doesn't come from Lisp--it's simply short for "define". P.s. if you really want to use just one delimiter everywhere, try Tcl. It's not a bad alternative to Lua if you're looking for an embedded language, and it uses curly braces for everything--even function arguments. P.p.s. those aren't methods, because Lua's not an OO language. Those are functions. (Or procedures, though Lua, like most modern languages, doesn't distinguish between the two.)
    10. I don't think I've ever encountered this quirk, so I won't comment, except to say, if you don't like that, don't do it!
    11. You only had 10 points on your list, and I'm truly amazed you left out the one biggest issue most people (especially those familiar with C, C++, Java, Perl, Python, Ruby, etc.) will trip over--one-based arrays! If you're going to rant about Lua, how can you possibly ignore the exasperating one-based arrays? Are you even a programmer? :)

    Anyway, Lua's not really competing directly with perl/python/ruby. Its strength is that it's small, fast, and easily embeddable. The ease with which you can call back and forth between Lua and C is what really makes it shine. Some of its quirks seem to be choices made for performance reasons, and I'm willing to live with that. Overall, I like its style and flavor better than tcl, which seems to be its main competition.

  37. Why procedural? by Anonymous Coward · · Score: 0

    Is there any reason why a templating language shouldn't be declarative? I can think of one reason: they were looking for something to translate their old spaghetti code into. If that's it, they're doing it wrong.

  38. Re:Lua by K.+S.+Kyosuke · · Score: 1

    3) I'm not a particular fan of any language that wants me to type one of; local, let, or var. The parser should be able to figure out when I'm assigning at all times. And, they still use == in this language which is silly since the whole point of using local, let, or var is so you can distinguish = from assignment or condition.

    No, the point of local, let or var is to establish a new lexical scope in a clean manner, so that the implementation does not have to guess the actual scope from the place of the first assignment. Lua assigns with =, but it does not establish new lexical bindings with it.

    --
    Ezekiel 23:20
  39. Re:Lua by Anonymous Coward · · Score: 1

    MongoDB is web scale. It's got what plants crave.

  40. Lua is fine, but has some small problems by roguegramma · · Score: 1

    For example, the lua table object is used by the standard library (table functions) to represent C arrays with integer indexes or more accurately C++ vectors. However, in general you should not attempt to use the resulting table object in any other way than provided for by the table functions. It would have been more user-friendly to have an own vector type for this.

    Although it isn't a problem most of the time, sometimes you want to preserve the order in an associative array with non-numerical indexes like you are used to for example in PHP. As far as I know this can only be achieved by having a second table defining the order.

    I really like using "or" to express default initialization anywhere though, this will assign "die" if funny is null (or false):
    function be(funny)
    funny = funny or "die" ..
    end

    --
    Hey don't blame me, IANAB
    1. Re:Lua is fine, but has some small problems by Anonymous Coward · · Score: 0

      IIRC, Lua seems to generate large nests. Something about break (last) and continue (next) not being present.

  41. Re:Let's Discuss having a Discussion about a Decis by svick · · Score: 3, Interesting

    Using Lua instead of the current template syntax will not mean much for editors of articles and nobody claimed it would. It will only make (huge) difference for those who currently write templates.

    On the other hand, there is also some work going on to make editing of articles easier using a WYSIWYG editor.

  42. standard picked at the wrong level of abstraction by PJ6 · · Score: 1

    User-generated anything (code, data, content, etc) is best supported when you allow many modes of expression, and freedom to change without a standards committee getting in the way.

    On the other hand, machines require a fixed standard, or something that changes relatively infrequently.

    For this reason, I think the choice of any scripting language here is as ill-conceived as the web itself being standardized on HTML/JavaScript.

  43. Re:Lua by glwtta · · Score: 3, Funny

    I wouldn't trust a programmer that waxes his balls. If he can't make good decisions involving his nutsack, can he make godo decisions involving language design?

    Seems like a perfectly good decision to me. There really is nothing like a shorn scrotum, it's breathtaking; I suggest you try it.

    --
    sic transit gloria mundi
  44. Re:Lua by Ihmhi · · Score: 1

    For some strange reason, so am I...

  45. Re:Let's Discuss having a Discussion about a Decis by Ihmhi · · Score: 1

    Great. Now if they actually handle the problem of people tapping the proverbial delete button like it dispenses morphine, then myself and a lot of editors will actually have a reason to return to that hellhole.

    There is no justification (outside of highly illegal content) for articles being deleted as rapidly as they are. Not in the era of cheap bandwidth, cheap disk space, and crowdsourcing.

  46. Wrong problem by Maury+Markowitz · · Score: 0

    Gebus, we're spending developer cycles on THIS?

    How about the ability to drag an URL into the body of an article to automatically create a reference?

    Which is more important?

    1. Re:Wrong problem by JasterBobaMereel · · Score: 2

      The problem you are seeing is with the editor you are using ....not with MediaWiki..

      Try dragging a URL into a text editor and it will fail ...what a surprise ?

      --
      Puteulanus fenestra mortis
  47. Re:Lua by Anonymous Coward · · Score: 0

    Hey!
    Careful with what you say.
    I wax my balls too and I'm not from Brazil... (I wonder if maybe that's the reason I'm not a programmer nut a marketing analyst instead)

  48. Re:Lua by geminidomino · · Score: 1

    I wax my balls too and I'm not from Brazil... (I wonder if maybe that's the reason I'm not a programmer nut a marketing analyst instead)

    I see what you did there...

  49. Re:Lua by empty+mind · · Score: 1

    I know it's not a big problem but... Not all keyboard layouts have a "~".

    --
    "I'm selling these fine leather jackets"
  50. Re:Lua by Anonymous Coward · · Score: 0

    MongoDB is web scale.

    Disclaimer: I like MongoDB (for specific uses!)

  51. Re:standard picked at the wrong level of abstracti by Anonymous Coward · · Score: 0

    You can't use JavaScript/HTML to write the backend. Concurrency in Javascript sucks. Look at Node.js. By any objective measure it's extremely grotesque, not withstanding its familiarity. There are easier ways to do I/O than by creating a gazillion closures at run-time around a single event loop.

    Lua has real coroutines and is extremely easy to integrate and extend without necessarily having to refactor your existing base. 'nuff said.

  52. Re:Lua by Spacelem · · Score: 1

    I'm a mathematical modeller, and I like 1-based arrays. I program in both C and GNU Octave (a Matlab clone), and I find Octave considerably easier to use (although to be fair, that's because it's designed to be easy to do maths with). Stuff like "for i=1:50", or "X = rande(2,3,4)", "any(A==[1 2 3])" are things that are so trivial (or the wonder that is eval(), allowing me to generate code with my code). Sadly Octave is not fast enough to do all my work, but I can get things working in much less time (so it's excellent for short jobs).

    Generally there are two things I'm going to want to do with arrays: order things, and count things. When counting integers, great, start from 0. When counting decimals (e.g. times), well the array numbering is of no help to me (except that 0 tends to line up with 0). I do a lot more ordering though, choosing the nth item from an array, or the (i,j,k)th item from a 3 dimensional array (which C doesn't like if you don't know the dimensions at compile time, which I usually don't). For ordering, I really struggle with how when selecting the nth thing, I have to pick the n-1th array slot. If I want to pick elements 5 through 10, then it's indices 4 through 9, and that just feels wrong. I get why it was done, but should we really be troubling ourselves over pointer arithmetic in this day and age?

    You could say "if you're a modeller, and you like 1-based indexing and multidimensional variable length arrays, why don't you use Fortran?" Well... my supervisor uses it, I suppose I could learn it, and it would probably be worth while, but it's certainly got a steep learning curve, and there don't seem to be the tutorials out there that there are for C. For the moment I've stuck with C, but once you get used to 1-based indexing, it's hard to go back to 0-based.

  53. Re:Lua by lattyware · · Score: 1

    7) I don't mind nil for NULL. It's better than Python's Nothing IMO because it's shorter.

    Python uses 'None'.

    --
    -- Lattyware (www.lattyware.co.uk)
  54. Re:Lua by Anonymous Coward · · Score: 0

    Sorry to correct you : Plants crave Brawndo because it has electrolytes!

  55. Re:Lua by Anonymous Coward · · Score: 0

    yeah but it's not like anyone programs on a piano

  56. Finally by Anonymous Coward · · Score: 0

    A way to make use of the skillz I acquired writing scripts for the PtokaX DC Hub.

  57. Re:Lua by Billlagr · · Score: 1

    This is true. But also remember, the Brazilian wax can also be applied to females. Those other kind of people without nutsacks. This is a good thing.

  58. Dynamic typing != Weak typing by Anonymous Coward · · Score: 0

    Learn the difference.

    (Not that the OP knows any better, but if you're going to argue you should at least have a basic knowledge of what you're talking about. I know, I know, "are you new here?", etc.)

  59. Re:Lua by Anonymous Coward · · Score: 0

    Eat shit you little faggot. Lua is a shitty language for stupid motherfuckers like you.

  60. Was there any discussion? by Anonymous Coward · · Score: 0

    Looking at the discussion on Lua vs JavaScript, it seems to me that Tim Starling already had made up his mind, and basically even with 3 people asking and pushing for JavaScript, and none except Tim for Lua, Tim just didn't listen to their comments.

  61. Re:Lua by MadKeithV · · Score: 1

    7) I don't mind nil for NULL. It's better than Python's Nothing IMO because it's shorter.

    Python uses 'None'.

    Typical for slashdot. A whole thread arguing about nothing.

  62. Re:Lua by Anonymous Coward · · Score: 0

    Your points 1 and 5: "Lua sucks because it uses symbols instead of nice intuitive words."
    Your points 3 and 9: "Lua sucks because it uses words instead of nice concise symbols."

    Make up your mind!

    Also it's weird how you spend an entire post saying "I don't like Lua - I prefer Python", and yet your point 9 complains about something that is identical in Python and your point 7 demonstrates that your ignorance of Python is startling.

    In fact I might almost suspect you of trolling, but this is a Wikipedia-related discussion so I must assume good faith!

  63. Re:Lua by EricTetz · · Score: 1

    Profoundly clueless rant. Most of it superficial nonsense about cosmetics, not even worth responding to. In the few places you discuss something semantically meaningful, you get it utterly wrong. For instance, #4, you're apparently unaware that local denotes *scope*, and has nothing whatsoever to do with helping the parser distinguish comparison from assignment.

    The bottom line is that Lua is a much better language than JavaScript. It has proper lexical scoping, proper tail calls, a powerful metaprogramming facility, coroutines, and much more.

    That you didn't get this from your 10-minute evaluation in the interactive interpreter is no surprise. Nor, I guess, is your resulting overconfidence in your understanding (see: Dunning-Kruger).

  64. What? by warrax_666 · · Score: 1

    Since when is the indexing offset important? You should be using "zip", "map" (or even "parallel-prefix") and the like.

    That's the thing that irks me most about Lua. It pretends to be "high-level", but it isn't really. (Well, that and weak typing. There really is not excuse for that -- other than ignorance.)

    --
    HAND.
    1. Re:What? by Spacelem · · Score: 1

      I'll have to admit that I don't know what you mean by "zip", "map" or "parallel-prefix" (although I'd love to know more). The offset is the only thing I've come across so far, which is why I was commenting on it.

    2. Re:What? by warrax_666 · · Score: 1

      Investigate functional languages (O'Caml, F# or Haskell) and my comment may make sense :).

      The larger point is that such details as indexes shouldn't matter -- you just want to solve your problem and shouldn't have to worry about irrelevant detail.

      --
      HAND.
  65. Re:Let's Discuss having a Discussion about a Decis by Anonymous Coward · · Score: 0

    Stop your bitching and unjustified mongering. If your articles weren't speedily deleted, Wikipedia would be obligated to keep your content there for at least a week (if someone proposed deletion as soon as you created), or longer if you dispute the proposed deletion and someone moves to initiate a deletion debate.

    On the other hand, if it *were* speedily deleted, then it's your problem and your problem alone. The criteria are designed to be as narrow as possible, and you really have to have created a really inappropriate article in order for it to be rapidly deleted, buddy.

  66. Lua is great by Anonymous Coward · · Score: 0

    I use it as a plugin language for a high speed C++ HTTP server. Its easy for the rest of the company to write custom handlers to fit their specific needs.

    Next up, the logic used to decide which plugins to run, and in what order, is so convoluted in C++ I am embedding a Prolog engine in the system.

    Stand back! I'm going to try Predicate Logic!