Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Lua is new wikipedia scripting language

Name: Anonymous 2012-02-01 9:05

Reducing the inefficient complexity of complicated templates has long been on the wishlists of those who design and maintain them. It is a complexity that can put a significant drain on server resources, not to mention one that makes accurate duplication of templates between wikis incredibly time consuming and error prone. This complexity is caused by a number of factors, but it has long been recognised that the introduction of certain constructions found in full programming languages (among them loops, arrays and a full range of string functions) would drastically simplify matters.

Of course, the introduction of a programming language would bring with it a number of other problems, particularly with regards to privacy, security and memory footprint. As a result, the long term consensus was that the introduction of a programming language would be a major undertaking, including time for discussing which languages would work best in a heavily sanitised environment. The project as a whole has been discussed at regular intervals, but it was only this week that a consensus seemed to emerge in favour of Lua, a lightweight but relatively unheard-of language generally regarded as being "easy to learn" (wikitech-l mailing list).

The preferred implementation at this time is via a separate namespace for scripts, perhaps augmented by the overloading of the double-curly-brace notation to incorporate both Script and Template namespaces. Work is expected to start after the release of 1.19 and could well centre around the Berlin Hackathon, held annually in May.

Name: Anonymous 2012-02-01 9:10

Ridiculously poor decision to use Lua instead of Python.

Name: Anonymous 2012-02-01 9:14

>>2
nope.

Name: Anonymous 2012-02-01 9:15

>>3
Yes it is, Lua is a piece of shit, Python is as well, but at least Python has users.

Name: Anonymous 2012-02-01 9:22

Yes it is, Python is a piece of shit, Lua is as well, but Python has many retarded users.

Name: Anonymous 2012-02-01 9:26

>>5
With users comes retarded users, what makes Lua even worse is that the couple of users it has are all retarded.

Name: Anonymous 2012-02-01 9:42

>>6
Gaymprogrammers are not retarded! They are alternatively developed!

Name: Anonymous 2012-02-01 9:51

So why choose a language with no unicode support in the standard for something international? This is retarded.

Name: Anonymous 2012-02-01 9:52

ITT butthurt FIOC toy language factors being mad that wiki didn't pick their ahitty toy language

Name: Anonymous 2012-02-01 9:59

Lua
HUEHUEHUEHUEHUEHUEHUE BRBRBRBRBRBR

Name: Anonymous 2012-02-01 10:18

Blizzard use Lua
Python use only alternatively developed Gaymprogrammers

Name: translate it from russian 2012-02-01 10:18

в етом ИТТ треде мы выяснили что новомодные анальные игрушки для быдляков ПИСТОН и ХАЧКЕЛЬ
сосут у олдфажных мега языков на все времена C-шки и perl-а все время
---
лучий вариант на ПИСТОНЕ: http://ideone.com/udDJ9
(императивный понос)
2 варианта на ХАЧКЕЛЕ
1.ебаный пиздец во всех смыслах и имеперативное гавнище: http://ideone.com/M42su
(сосет у C-шки)
2. деклашотивное петушение http://ideone.com/0e3qE
(сосет у декларотивного петушения на perl)
---
для сравнения
perl: http://ideone.com/i0ob4 http://ideone.com/olq5B
C: http://ideone.com/ap43H
LUA: http://ideone.com/DVdhr http://ideone.com/Xkj4D
---
http://ideone.com/6cZYq лисп как и ожидалось сонул, ну и возможно ответ неправильный
(какието черезжопные варианты с 33 кратной вложеностю скобок быле побыстрее но натая хуйне никому не сдалась когда есть простое и самое быстрое решение на C-шке)

Name: Anonymous 2012-02-01 10:40

but... but... javascript!

Name: Anonymous 2012-02-01 10:42

>>12 is a retarded ukranian jew from 0chan.ru, who is frustrated because only his father was jewish and his mother was an ukranian shabbos-goy whore.

Name: Anonymous 2012-02-01 10:47

It'll lure you in.

Name: Anonymous 2012-02-01 11:15

Tcl.

Name: Anonymous 2012-02-01 14:01

Remind me again what's so bad about Lua?

Name: Anonymous 2012-02-01 14:25

>>17
a lot less powerful than, say, javascript

Name: Anonymous 2012-02-01 14:56

Javascript is shit

Name: Anonymous 2012-02-01 21:17

>>8
Why does the scripting for a wiki need more than ASCII?

Name: Anonymous 2012-02-01 22:22

>>20
http://www.youtube.com/watch?v=hMBramnCg_s
How are Jews supposed to manipulate the goyim with just dumb text?

Name: Anonymous 2012-02-01 22:26

>>18

provide justification with an example please. also lua is good for data entry, making it good for cases when there is more data than code in the file.

Name: Anonymous 2012-02-01 23:38

>>22

no OOP

Name: Anonymous 2012-02-02 0:30

>>23


function make_class(self, ...)
  local inheritance_array = {...}
  for _,parent_class in ipairs(inheritance_array) do
    for k,v in pairs(parent_class) do
      self[k] = v
    end
  end
  return self
end

function make_object(instance, class)
  setmetatable(instance, {__index = class})
  return instance
end


Ok, next example.

Name: Anonymous 2012-02-02 2:33

>>23
OOP in a wiki? Could you provide an example where OOP would have a benefit over standard imperative programming in a wiki.

Name: Anonymous 2012-02-02 3:44

>>25

hey, it could happen. Maybe complex templates inheriting from simpler, or abstract templates.

Name: Anonymous 2012-02-02 6:31

Name: Anonymous 2012-02-02 16:11

>>25
a wiki cannot be WEBSCALE without OOP

Don't change these.
Name: Email:
Entire Thread Thread List