<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general">
    <title>gmane.comp.lang.lua.general</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91495"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91494"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91493"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91492"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91491"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91490"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91489"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91488"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91487"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91486"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91485"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91484"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91483"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91482"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91481"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91480"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91479"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91478"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91477"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.lua.general/91476"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91495">
    <title>Re: Luarocks</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91495</link>
    <description>&lt;pre&gt;
Wait -- are you running LuaRocks 0.1? The latest version is 2.0.8, and
2.0.9 is coming really soon (we already have rc2 out now). Please make
sure you are running the latest version.

&lt;/pre&gt;</description>
    <dc:creator>Hisham</dc:creator>
    <dc:date>2012-05-25T23:26:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91494">
    <title>Re: Luarocks</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91494</link>
    <description>&lt;pre&gt;
I don't think this issue in particular is related to Lua versions. I
see you're on Ubuntu, try this:

    echo 'variables.CFLAGS = "-O2 -fPIC"' | sudo tee -a /etc/luarocks/config.lua

Regards,
Matthew


&lt;/pre&gt;</description>
    <dc:creator>Matthew Wild</dc:creator>
    <dc:date>2012-05-25T23:18:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91493">
    <title>Luarocks</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91493</link>
    <description>&lt;pre&gt;Hello All,

I got the below while trying  to use luarocks. Looks like it was checking
out Lua 5.1 while I have moved up to 5.2

rmicro&amp;lt; at &amp;gt;ubuntu:~/Downloads/luarocks-0.1$ luarocks install luasocket
Installing
http://luarocks.org/repositories/rocks/luasocket-2.0.2-5.src.rock...
Archive:
 /tmp/luarocks_luarocks-rock-luasocket-2.0.2-5-5764/luasocket-2.0.2-5.src.rock
  inflating: luasocket-2.0.2-5.rockspec
  inflating: luasocket-2.0.2.tar.gz
cd src; make all
make[1]: Entering directory
`/tmp/luarocks_luasocket-2.0.2-5-3165/luasocket-2.0.2/src'
gcc -O2 -DLUASOCKET_DEBUG -I/usr/include/lua5.1   -c -o luasocket.o
luasocket.c
gcc -O2 -DLUASOCKET_DEBUG -I/usr/include/lua5.1   -c -o timeout.o timeout.c
gcc -O2 -DLUASOCKET_DEBUG -I/usr/include/lua5.1   -c -o buffer.o buffer.c
gcc -O2 -DLUASOCKET_DEBUG -I/usr/include/lua5.1   -c -o io.o io.c
gcc -O2 -DLUASOCKET_DEBUG -I/usr/include/lua5.1   -c -o auxiliar.o
auxiliar.c
gcc -O2 -DLUASOCKET_DEBUG -I/usr/include/lua5.1   -c -o options.o options.c
gcc -O2 -DLUASOCKET_DEBUG -I/u&lt;/pre&gt;</description>
    <dc:creator>Emeka</dc:creator>
    <dc:date>2012-05-25T23:10:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91492">
    <title>Re: LPeg and numbered capture</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91492</link>
    <description>&lt;pre&gt;
As I suspected, I had updated the site page without updating the code.
Numbered capture was not yet implemented in version 0.10. Now the site
is back to the current version. (The documentation in the tarball was
correct.)

&lt;/pre&gt;</description>
    <dc:creator>Roberto Ierusalimschy</dc:creator>
    <dc:date>2012-05-25T11:03:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91491">
    <title>Re: Storing Lua code in a C library</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91491</link>
    <description>&lt;pre&gt;
My quick experiments this morning shows that you can easily get 50%
just by simple stripping of comments and leading whitespace.

LuaSrcDiet would do even better than that.

steve d.


&lt;/pre&gt;</description>
    <dc:creator>steve donovan</dc:creator>
    <dc:date>2012-05-25T10:26:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91490">
    <title>Re: Storing Lua code in a C library</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91490</link>
    <description>&lt;pre&gt;On Fri, May 25, 2012 at 4:17 AM, steve donovan
&amp;lt;steve.j.donovan&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

Thanks for all the input. I decided that if anyone is going to go to
the effort of ripping out the compiler, they're probably not going to
use my libraries anyway (at least not without modification), and
changed the build process to just embed the text source instead. I
might still hack up a simple compression scheme, though I don't want
to add another dependency... the code is probably too small to bother
anyway.

&lt;/pre&gt;</description>
    <dc:creator>Rena</dc:creator>
    <dc:date>2012-05-25T10:21:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91489">
    <title>Re: Storing Lua code in a C library</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91489</link>
    <description>&lt;pre&gt;On Wed, May 23, 2012 at 8:33 AM, steve donovan
&amp;lt;steve.j.donovan&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

And, due to popular demand, a simple script for converting a Lua
module into a loadable C module.

https://gist.github.com/2787105

foo.c is the result of 'lua2c foo', with foo.lua looking like this:

module 'foo'

function answer()
return 42
end

However, there is a problem when the module starts 'module(...)' since
luaL_loadstring does not compile the chunk correctly for this case.

I tested this on ml.lua, which is about 782 lines; lua2c strips
comments and leading space, so the final output is about 500 lines.
The compiled C extension is a bit smaller than the original Lua file;
another comparison is that it's a 18K dll versus 23K .luac file.

To test packages, I put ml.lua in a directory libs, and then said
'lua2c libs.ml', which resulted in libs_ml.c in the current directory,
and libs/ml.dll.

This should work fine for Lua 5.2 as well

And there's always yet another method; use squsih/soar to get all your
Lua files into&lt;/pre&gt;</description>
    <dc:creator>steve donovan</dc:creator>
    <dc:date>2012-05-25T10:17:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91488">
    <title>Re: I don't understand this application of metamethod</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91488</link>
    <description>&lt;pre&gt;Rena,

Thanks so much.

local meta = {}
local methods = {}
meta.__index = methods
function method:getContent() return self.content end
function methods:getContent() return self.content end  -- method to methods

local myObject = setmetatable({content='hello'}, meta)
print(myObject:getContent()) --prints hello


On Fri, May 25, 2012 at 11:01 AM, Rena &amp;lt;hyperhacker&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Emeka</dc:creator>
    <dc:date>2012-05-25T10:15:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91487">
    <title>Re: I don't understand this application of metamethod</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91487</link>
    <description>&lt;pre&gt;Rob,

That's the basic work on __index.. missing method close cousin.

On Fri, May 25, 2012 at 10:55 AM, Rob Kendrick &amp;lt;rjek&amp;lt; at &amp;gt;rjek.com&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Emeka</dc:creator>
    <dc:date>2012-05-25T10:11:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91486">
    <title>Re: I don't understand this application of metamethod</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91486</link>
    <description>&lt;pre&gt;
Well, to show an example of using __index:

local meta = {}
local methods = {}
meta.__index = methods
function method:getContent() return self.content end

local myObject = setmetatable({content='hello'}, meta)
print(myObject:getContent()) --prints hello

What you posted about is the same idea, except the metatable points to itself:

local meta = {}
meta.__index = meta
function meta:getContent() return self.content end

local myObject = setmetatable({content='hello'}, meta)
print(myObject:getContent()) --prints hello

The only major difference doing it this way is that now
myObject.__index returns the metatable, since it's now looking in
'meta', instead of 'methods' where no such key exists.

&lt;/pre&gt;</description>
    <dc:creator>Rena</dc:creator>
    <dc:date>2012-05-25T10:01:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91485">
    <title>Re: I don't understand this application of metamethod</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91485</link>
    <description>&lt;pre&gt;
There's no need for one; Dirk's basically explained everything about it
in his one sentence.  Things that aren't in a table get looked up via
__index.

B.


&lt;/pre&gt;</description>
    <dc:creator>Rob Kendrick</dc:creator>
    <dc:date>2012-05-25T09:55:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91484">
    <title>Re: I don't understand this application of metamethod</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91484</link>
    <description>&lt;pre&gt;Dirk,

If won't mind, I would like to see an example.

Regards, Janus

On Fri, May 25, 2012 at 8:10 AM, Dirk Laurie &amp;lt;dirk.laurie&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Emeka</dc:creator>
    <dc:date>2012-05-25T09:53:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91483">
    <title>Re: Is having lua_State per thread safe?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91483</link>
    <description>&lt;pre&gt;On 22/05/2012 09:41, Tezduyar Lindskog, Umut wrote something

I see new messages in the Storing passwords thread (in Thunderbird), I go see them and 
fall into this hijacking thread which doesn't interest me.
Please, start a new message to write your own thread in the mailing list, don't just reply 
to a random message: even if you change subject and all, the id of the original message is 
kept and good mailing client will attach it to the original thread.
Beside, it avoids hiding your thread as some people can be interested in your and not in 
the original one, and might just mark the original thread as read without even spotting 
your...

Thank you.

(And sorry for this slightly off-topic (non-Lua) message.)

&lt;/pre&gt;</description>
    <dc:creator>Philippe Lhoste</dc:creator>
    <dc:date>2012-05-25T09:00:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91482">
    <title>Re: I don't understand this application of metamethod</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91482</link>
    <description>&lt;pre&gt;2012/5/25 Tim Mensch &amp;lt;tim-lua-l&amp;lt; at &amp;gt;bitgems.com&amp;gt;:



And (ex-Pythonistas please beware) it does NOT override the
normal table indexing method when the key is already present.


&lt;/pre&gt;</description>
    <dc:creator>Dirk Laurie</dc:creator>
    <dc:date>2012-05-25T07:10:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91481">
    <title>Aw: Re: luasocket: Using http.request for POST request with BODY lead to timeout</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91481</link>
    <description>&lt;pre&gt;&lt;/pre&gt;</description>
    <dc:creator>Wilhelm Pflueger</dc:creator>
    <dc:date>2012-05-25T06:31:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91480">
    <title>Re: I don't understand this application of metamethod</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91480</link>
    <description>&lt;pre&gt;Timi de lua,


Thanks so much!!!

On Fri, May 25, 2012 at 7:13 AM, Tim Mensch &amp;lt;tim-lua-l&amp;lt; at &amp;gt;bitgems.com&amp;gt; wrote:




&lt;/pre&gt;</description>
    <dc:creator>Emeka</dc:creator>
    <dc:date>2012-05-25T06:21:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91479">
    <title>Re: I don't understand this application of metamethod</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91479</link>
    <description>&lt;pre&gt;
The above doesn't do anything interesting by itself, though if Request 
is later assigned as the metatable for another table, AND the Request 
table had another member, it would be relevant:

local aRequest = {}
setmetatable( aRequest, Request ); -- Request is now the metatable of 
the table referred to by "aRequest"

function Request:someFunction()
     print("a function on Request")
end

aRequest:someFunction()

The __index metamethod tells Lua what to do if someone tries to look up 
an undefined key on a table. If __index is a function, it gets called. 
If __index is a table, then it looks for the key in that table. So when 
Lua can't find a member on aRequest, it tries the __index metamethod, 
sees that it's a table, finds the key "someFunction" on that table, and 
then tries to call it as a function.

Tim
&lt;/pre&gt;</description>
    <dc:creator>Tim Mensch</dc:creator>
    <dc:date>2012-05-25T05:13:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91478">
    <title>Re: Not pretty clear</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91478</link>
    <description>&lt;pre&gt;
http://lmgtfy.com/?q=lua+weak+references+example

The first link that Google has gives a detailed explanation. A few links 
later on that Google search is a very simple example:

http://lua-users.org/wiki/WeakTablesTutorial

Google is your friend. :)

Tim
&lt;/pre&gt;</description>
    <dc:creator>Tim Mensch</dc:creator>
    <dc:date>2012-05-25T05:05:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91477">
    <title>I don't understand this application of metamethod</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91477</link>
    <description>&lt;pre&gt;What is the essence of the below?

local Request = {}
Request.__index = Request

Regards, \Emeka

&lt;/pre&gt;</description>
    <dc:creator>Emeka</dc:creator>
    <dc:date>2012-05-25T04:25:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91476">
    <title>Not pretty clear</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91476</link>
    <description>&lt;pre&gt;Hello All,

I would need example,that is use case before the  below would sink.


*__mode* - Control weak references. A string value with one or both of the
characters 'k' and 'v' which specifies that the the *k*eys and/or *v*alues
in the table are weak references.


Regards, \Emeka
&lt;/pre&gt;</description>
    <dc:creator>Emeka</dc:creator>
    <dc:date>2012-05-25T04:18:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.lua.general/91475">
    <title>[ANNOUNCE] lua-users lottery drawing</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.lua.general/91475</link>
    <description>&lt;pre&gt;-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

See &amp;lt;http://lua-users.org/wiki/LuaUsersLottery&amp;gt; for an opportunity to be
immortalized on the lua-users.org Acknowledgments page.

There went five years-- it's again time to pick members of the community
to pay the domain registration fee.  Two winners will be selected,
paying $25 USD each.  That amount will cover the domain name until
2017.  The last lottery, in 2007, had 27 participants-- that's the number
to beat  The drawing will be held at the start of Wednesday, May 30th
(midnight UTC).

Good luck (having an email titled "you won the lottery!" properly land in
your inbox)!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk++1yQACgkQ5Nfg6kxAQQqEEQCfTZ8bKgp9gCYS8hSF1fIgs0g2
nl4Ani3qbse+dHyfZ5+oiAs0FpeI4/RA
=A3rp
-----END PGP SIGNATURE-----


&lt;/pre&gt;</description>
    <dc:creator>John Belmonte</dc:creator>
    <dc:date>2012-05-25T00:52:22</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.lua.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.lua.general</link>
  </textinput>
</rdf:RDF>

