Talk:Lua (programming language)
This is the talk page for discussing improvements to the Lua (programming language) article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
Archives: Index, 1, 2Auto-archiving period: 30 days |
Computing: CompSci B‑class High‑importance | ||||||||||||||||||||
|
Computing C‑class Mid‑importance | ||||||||||
|
This is the talk page for discussing improvements to the Lua (programming language) article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
Archives: Index, 1, 2Auto-archiving period: 30 days |
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)
- No, it shouldn't. See WP:CSECTION. Chris Cunningham (not at work) - talk 16:10, 30 January 2009 (UTC)
- 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)
Assessment
I've given it a B from a C. It certainly is written well. -download | sign! 22:07, 7 April 2009 (UTC)
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)
- 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)
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)
- 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)
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)
- 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)
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)
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)
- Done--Oneiros (talk) 21:01, 16 January 2010 (UTC)
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)
- I've removed it. --4th-otaku (talk) 21:39, 12 July 2010 (UTC)
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)
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)