Jump to content

Talk:Lua (programming language)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 96.229.146.188 (talk) at 22:42, 25 August 2010 (Lua is widely used in the video game industry). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

WikiProject iconComputing: CompSci B‑class High‑importance
WikiProject iconThis article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
BThis article has been rated as B-class on Wikipedia's content assessment scale.
HighThis article has been rated as High-importance on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Computer science (assessed as High-importance).
Things you can help WikiProject Computer science with:

WikiProject iconComputing C‑class Mid‑importance
WikiProject iconThis article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
CThis article has been rated as C-class on Wikipedia's content assessment scale.
MidThis article has been rated as Mid-importance on the project's importance scale.

Baldur's Gate

I am pretty sure Lua was only present in the original Baldur's Gate engine. Even then it wasn't used as a part of the actual game or content. It was only used afaik as a debugging aid during development and as a cheat/debugging console. Here and here are sources to verify the info.

Criticism of Lua

The main page should include a 'criticism of Lua' section.

Ratecrash (talk) 17:02, 18 January 2009 (UTC)[reply]

No, it shouldn't. See WP:CSECTION. Chris Cunningham (not at work) - talk 16:10, 30 January 2009 (UTC)[reply]
WP:CSECTION says that it is "a proposed Wikipedia policy, guideline, or process. The proposal may still be in development, under discussion, or in the process of gathering consensus for adoption. Thus references or links to this page should not describe it as "policy"", and it gives both pros and cons for including a criticism section. -- 201.37.230.43 (talk) 03:30, 20 April 2009 (UTC)[reply]

Assessment

I've given it a B from a C. It certainly is written well. -download | sign! 22:07, 7 April 2009 (UTC)[reply]

First register-based VM in wide use?

Erlang has a register-based VM, and while I have no idea which of lua and erlang are in wider use. Erlang is certainly in wide use and some 5 years older than lua. —Preceding unsigned comment added by 130.243.171.93 (talk) 21:01, 3 May 2009 (UTC)[reply]

According to TIOBE [1], Erlang is still not so widely cited on the Web as Lua. Wikipedia currently renders only 6 articles of Erlang-based software (Category:Erlang programming language). Should there be more? --4th-otaku (talk) 01:56, 18 May 2009 (UTC)[reply]

Memory footprint and execution speed

I wish this article mentioned Lua's very small memory footprint relative to most scripting languages, and it's relativly fast execution speed. Those are its main draws. 207.62.246.30 (talk) 23:25, 22 May 2009 (UTC)[reply]

Yes, agreed, they should be expounded. I'm a LUA newbie and those two reasons are what attracted me over many other 'competitors'. From comparisions I've seen with other dynamic languages (Python, Ruby), it's quite fast. 71.214.223.133 (talk) 02:19, 28 November 2009 (UTC)[reply]

List of applications

I suggest moving the list of applications to its own article, much like List of Python software. SharkD (talk) 07:50, 13 September 2009 (UTC)[reply]

Seems like it's not make much sense to spawn another instance of LuaAddons here. This kind of lists is better when they are single. The contrary leads to discrepancies and problems for users (doubling the work for look up or add an entry).
The sole excuse to keep up the list is to support the statement that Lua is a popular language. If this ever become more or less undisputable (as it is in the game industry) we would just drop it.
Nevertheless, feel free to move it to a List of Lua software at anytime. --4th-otaku (talk) 15:45, 22 April 2010 (UTC)[reply]

Stuff removed from Boolean data type article

The following section was removed from the article Boolean data type:
begin removed text



Lua defines a boolean type which can be either true or false as of version 5.0.[1] In addition to the value false, the special value nil (of type nil) also evaluates to false in logical expressions. In versions prior to 5.0, only the value nil evaluated to false (and conditional expressions which were false resulted in the value nil being returned).[2] The usefulness of the values true and false are limited in certain situations because the logical operators and and or return one of their arguments as the result instead of the value true or false. This construct allows logical operations in Lua to act similar to C's Ternary Operator, ?:

local a, b = 1, 2;

local function isTrue(condition, message)
   print((message or "<nothing> (which becomes 'nil')") .. " is " .. (condition and "TRUE" or "FALSE"))
end

-- All of the below display "TRUE"
isTrue(true, "true")
isTrue(0, "0")
isTrue(1, "1")
isTrue("Foo", "Foo")
isTrue(a == a, "a == a")

-- All of the below display "FALSE"
isTrue(false, "false")
isTrue(nil, "nil")
isTrue()
isTrue(a == b, "a == b")
isTrue(c, "c")
isTrue(a == c, "a == c")


end removed text
Is there a place for this text in the Lua-related articles? Perhaps in the Wikibook? Thanks, and all the best, --Jorge Stolfi (talk) 23:43, 30 December 2009 (UTC)[reply]

Archiving

Does anyone object to me setting up automatic archiving for this page using MiszaBot? Unless otherwise agreed, I would set it to archive threads that have been inactive for 30 days.--Oneiros (talk) 13:48, 9 January 2010 (UTC)[reply]

 Done--Oneiros (talk) 21:01, 16 January 2010 (UTC)[reply]

io.write("Hello World!\n")

Is it not complicate the article? It seems like it does not illustrate any essential feature of the language, just explains the parameter format of two particular functions. --4th-otaku (talk) 22:32, 2 June 2010 (UTC)[reply]

I've removed it. --4th-otaku (talk) 21:39, 12 July 2010 (UTC)[reply]

Lua is widely used in the video game industry

"Lua is widely used in the video game industry. " please give citation for it. —Preceding unsigned comment added by 203.78.217.151 (talk) 15:00, 15 July 2010 (UTC)[reply]

The source engine mod, Garry's Mod relies heavily on Lua, you could find a citation on their site --96.229.146.188 (talk) 22:42, 25 August 2010 (UTC)[reply]

  1. ^ "Lua Manual 5.1".
  2. ^ "The Evolution of an Extension Language: A History of Lua".