Talk:Lua (programming language)
From Wikipedia, the free encyclopedia
How to Talk . what's real mean about Talking action ?
- This is the place to discuss what should or should not be in the related article. It might include additional subject areas to include later; it might be questions raised about the accuracy of certain article statements. This is also a good place to put any large portions of text that you delete from the article, with an explanation of why they were deleted. This is an important courtesy. Welcome to wikipedia, and edit boldly! Wesley
Contents |
[edit] Derivative example
I've just added a quick derivative example, but am not sure if it's fair use or not. The example appears in "Programming in Lua", but was the best simple example that I could think of. Not exactly sure how to paraphrase/put in to own words code... so if anyone knows whether it's allowed or not (most of the book is copied from wikis, eg the main lua manual - so it's probably not copyrighted) or can think of a better example, please change/delete/replace it =). I think it's worth having an example showing 'near-local' variables - they're a concept not in many other languages, namely c (statics are quite different) and the variants. Themania 14:53, 7 January 2007 (UTC)
- Aren't those called closures? And I agree, we should think up a slightly more practical example. MisterPhyrePhox 00:56, 8 January 2007 (UTC)
- Quite right, in fact I was sure I'd typed that... apparently not though. I've reuploaded it, I think improving the Engrish ;) a bit. Still haven't been struck with a practical example though - although they're used quite a bit, it's hard to think of an example that's clear and concise. Would a sort function be clearer? Eg maybe a function that you can pass a table, and it'll return a function that you can call whenever you want to sort it? -scratches head- —The preceding unsigned comment was added by Themania (talk • contribs) 09:52, 9 January 2007 (UTC).
- Okay, I made a simpler example, similar to the example used to introduce currying in most functional languages. Its still not very practical. I felt like the math in your derivative function was a bit daunting and perhaps distracting for an introductory example, but if you want to re-add it, please go ahead. MisterPhyrePhox 17:53, 9 January 2007 (UTC)
- Quite right, in fact I was sure I'd typed that... apparently not though. I've reuploaded it, I think improving the Engrish ;) a bit. Still haven't been struck with a practical example though - although they're used quite a bit, it's hard to think of an example that's clear and concise. Would a sort function be clearer? Eg maybe a function that you can pass a table, and it'll return a function that you can call whenever you want to sort it? -scratches head- —The preceding unsigned comment was added by Themania (talk • contribs) 09:52, 9 January 2007 (UTC).
[edit] Time for disambig page?
Perhaps it's time to move this article to another page, I recommend Lua (Programming Language). I just added another "other possible meaning" for Lua...if it's going to be moved perhaps it should be done soon before the number of "other possible meanings" gets out of hand...I can think of three other possible meanings for the word in the context of Oceania, and that's just me... TShilo12 23:40, 10 Mar 2005 (UTC)
- Good idea. However, if you want to move it I'd like to recommend Lua programming language, as this is the common naming in the programming languages category. -Nikai 14:12, 11 Mar 2005 (UTC)
- Yes, uppercase "Programming Language" would only be plausible if that were formally part of Lua's proper name. Suffix of "programming language" without parens is not the usual for WP, but it's been the agreed practice for languages for quite a while. Stan 13:20, 22 Mar 2005 (UTC)
[edit] Internals
I've wrote very simple "Internals" section. The question is if to leave it simple (more or less in a way it is now) or to write more detailed description, for example some extract from The implementation of Lua 5.0 article? Zigmar 14:33, 21 Apr 2005 (UTC)
- I think more is probably better. If you're up for it, I say go for it. We should probably add to Lua's syntax and semantics though, as well as to how Lua is connected to other languages, just to keep the article balanced. Makkuro 21:39, 21 Apr 2005 (UTC)
- Actually I'm not completely sure. After all, it just encyclopedia article, not reference manual. But anyway, current section is very basic, and it should be expanded to contain more detailed information. And I agree that more detailed syntax description may be included, maybe along with some examples, i.e. using tables as objects. But what to do mean by "how it is connected to other languages"? Zigmar 08:50, 22 Apr 2005 (UTC)
[edit] Derivatives
There are a number of Lua derivatives or Lua-influenced languages which should be mentioned, such as LuaPlus, Squirrel, GameMonkey, Io (programming language) etc.
- It might also be good to mention some of the larger add-ons to Lua. Part of the success of Lua has to deal with its ability to integrate into C code, such as addons link LuaCOM --Darkain Dragoon 06:29, 7 February 2006 (UTC)
[edit] PSP programming
May we mention that Lua has been ported to the PSP's homebrew department? This is pretty important, as the homebrew "scene" features a fair bit of Lua programs. The official website is http://luaplayer.org. May I mention that if anyone wishes to test it on their PSP they will need a version 1.5.
- I personally think that Lua for PSP (Lua Player) should be removed from the External links section on this article. It is already mentioned in the Applications section, which includes an internal wiki link instead of an external link. Any further information on this specific project would probably be better suited in its own article focusing specifically on PSP related features, instead of in the general purpose Lua article. --Darkain Dragoon 06:22, 7 February 2006 (UTC)
[edit] 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.
[edit] External links
Let's try to keep the external links to sites about Lua as a language rather than to programs written for Lua or in Lua. In addition to probably being useless (or worse, confusing) to many readers, you can see the "me too!" aspect in the links to several C++/Lua binding projects. --Mrwojo 17:52, 8 April 2006 (UTC)
[edit] What?
What does it mean that link below to www.yindo.com?
If it really matters, we should at least explain why... --DMIax 18:06, 19 July 2006 (UTC)
- Apparently Yindo Technology (http://web.archive.org/web/20050210071652/http://www.yindo.com/) was a web platform that used Lua language [1].
For some funny reason, its former website http://www.yindo.com/ now points to an outdated, archived version of an unrelated musician website, using the Internet Archive as storage for remote loading.
Anyway, the Wayback Machine may give you an idea of what used to be on old Yindo.com. --HYC 06:47, 26 September 2006 (UTC)
[edit] Usage example
I would personally appreciate an example of object-oriented code. If it takes up too much space, then nevermind. -SharkD 14:21, 24 October 2006 (UTC)
[edit] C/C++
Lua was designed to extend or be embedded in C and/or C++, or other languages via C/C++. It's written in C. Yet the only references to C or C++ are in the "External links". --Wfaxon 09:02, 26 November 2006 (UTC)
[edit] Cleaned
I have cleaned this article. The article was not looking up to the mark. Do your best in adding information. have cleaned up the games,application and links. --SkyWalker 08:38, 10 February 2007 (UTC)
- Two things. One, I appreciate your willingness to clean up the article, and I (mostly) agree with your removals. Two however, all of your edits are marked as "minor" edits. And they're all very substantial. Please don't do that in the future. —The preceding unsigned comment was added by Korval (talk • contribs) 04:01, 18 February 2007 (UTC).