<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The.Failboat.me &#187; Lua</title>
	<atom:link href="http://failboat.me/category/personal/lua/feed/" rel="self" type="application/rss+xml" />
	<link>http://failboat.me</link>
	<description>Everything about Nothing</description>
	<lastBuildDate>Wed, 28 Jul 2010 04:12:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Rocket: A Lua Sqlite3 ORM manager</title>
		<link>http://failboat.me/2010/lua-sqlite3-orm-manager/</link>
		<comments>http://failboat.me/2010/lua-sqlite3-orm-manager/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 04:44:44 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[mapper]]></category>
		<category><![CDATA[orm]]></category>
		<category><![CDATA[rocket]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sqlite]]></category>

		<guid isPermaLink="false">http://failboat.me/?p=3033</guid>
		<description><![CDATA[<p>Relational databases are designed so that they can both store and describe data. Most programming level APIs do wonderful jobs of maintaining the former aspect. I mean, what ORM doesn&#8217;t automatically map the insert method to the so very generic&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2010/lua-sqlite3-orm-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>See.lua &#8211; Documentation</title>
		<link>http://failboat.me/2010/see-lua-documentation/</link>
		<comments>http://failboat.me/2010/see-lua-documentation/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 04:56:36 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[introspection]]></category>
		<category><![CDATA[see]]></category>

		<guid isPermaLink="false">http://failboat.me/?p=2905</guid>
		<description><![CDATA[<p>See.lua &#8211; A Lua introspection library</p>
<pre class="brush: lua">
	&#62; see(string)

	.byte(?)            .char(?)            .dump(?)            .find(?)
	.format(?)          .gfind(?)           .gmatch(?)          .gsub(?)
	.join(self, table, ...)                 .len(?)
	.lower(?)           .match(?)           .rep(?)             .reverse(?)
	.sub(?)             .upper(?)
</pre>
<p>Lua is a wonderful little language that lets you do&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2010/see-lua-documentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>see.lua &#8211; Introspecting Lua objects</title>
		<link>http://failboat.me/2010/see-lua-introspecting-lua-objects/</link>
		<comments>http://failboat.me/2010/see-lua-introspecting-lua-objects/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 02:53:01 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[introspect]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[parameters]]></category>
		<category><![CDATA[see]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://failboat.me/?p=2629</guid>
		<description><![CDATA[<p>As via its python equivalent, see.lua takes in an object and prints out a list of its elements as well as metatable methods in readable text.</p>
<pre class="brush: lua">
&#62; require &#34;see&#34;

&#62; s = see(string)
.byte(?)            .char(?)            .dump(?)            .find(?)</pre><p>&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2010/see-lua-introspecting-lua-objects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tips and Tricks for Lua Beginners: Writing an at.exit registry</title>
		<link>http://failboat.me/2010/tips-and-tricks-for-lua-beginners-writing-an-at-exit-registry/</link>
		<comments>http://failboat.me/2010/tips-and-tricks-for-lua-beginners-writing-an-at-exit-registry/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 18:24:36 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[at.exit]]></category>
		<category><![CDATA[exit]]></category>
		<category><![CDATA[metamethod]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[__gc]]></category>

		<guid isPermaLink="false">http://failboat.me/?p=725</guid>
		<description><![CDATA[<p>It&#8217;s relatively simple to write a function that takes in a function and executes it once Lua terminates. </p>
<pre class="brush: lua">
at = {}
function at.exit(fn)
     getmetatable(newproxy(true)).__gc = fn
end
</pre>
<p><span id="more-725"></span><br />
The caveat for at.exit() is that on&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2010/tips-and-tricks-for-lua-beginners-writing-an-at-exit-registry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lua &#8211; Get a table of function arguments</title>
		<link>http://failboat.me/2010/lua-get-a-table-of-function-arguments/</link>
		<comments>http://failboat.me/2010/lua-get-a-table-of-function-arguments/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 18:04:51 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[arguments]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[get_args]]></category>
		<category><![CDATA[introspection]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://failboat.me/?p=722</guid>
		<description><![CDATA[<p>The lua standard libraries do not provide anything that helps you get the table of arguments for a given function. This can be accomplished by directly introspecting the bytecode of the function. The following snippet generates a function get_args that&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2010/lua-get-a-table-of-function-arguments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lua &#8211; Get number of parameters in a function</title>
		<link>http://failboat.me/2010/lua-get-number-of-parameters-in-a-function/</link>
		<comments>http://failboat.me/2010/lua-get-number-of-parameters-in-a-function/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 16:04:22 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[arguments]]></category>
		<category><![CDATA[bytecode]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[function]]></category>

		<guid isPermaLink="false">http://failboat.me/?p=716</guid>
		<description><![CDATA[<p>The following snippet defines a function num_args(func) that returns the number of parameters within a function as a string:</p>
<pre class="brush: lua">
num_args(function(a,b,c) end) --&#62; 3
</pre>
<p>It also works with functions that have variable arguments:</p>
<pre class="brush: lua">
num_args(function(a,...)</pre><p>&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2010/lua-get-number-of-parameters-in-a-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serializing Lua objects into Lua Code</title>
		<link>http://failboat.me/2010/serializing-lua-objects-into-lua-code/</link>
		<comments>http://failboat.me/2010/serializing-lua-objects-into-lua-code/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 04:00:08 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[objects]]></category>
		<category><![CDATA[pickle]]></category>
		<category><![CDATA[serialize]]></category>

		<guid isPermaLink="false">http://failboat.me/?p=690</guid>
		<description><![CDATA[<p>The following little snippet allows you to &#8216;pickle&#8217; Lua objects directly into Lua code (with the exception of functions, which are serialized as raw bytecode). Metatable support is on the way, but for now, it should be useful enough.</p>
<p><strong>Example</strong>&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2010/serializing-lua-objects-into-lua-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Lua Exception Handling</title>
		<link>http://failboat.me/2010/lua-exception-handling/</link>
		<comments>http://failboat.me/2010/lua-exception-handling/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 02:11:26 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[error handling]]></category>
		<category><![CDATA[except]]></category>
		<category><![CDATA[exceptions]]></category>
		<category><![CDATA[try]]></category>

		<guid isPermaLink="false">http://failboat.me/?p=620</guid>
		<description><![CDATA[<p>Wouldn&#8217;t it be awsome if you could do something like</p>
<pre class="brush: lua">
dofile &#34;try&#34;

try{
	function()
		a = a/a
	end
}.except(Exceptions.ValueError){
	function(_, exceptions, detail)
		print(detail)
	end
}
</pre>
<p>And get</p>
<pre class="brush: plain">
lua:5: attempt to perform arithmetic on</pre><p>&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2010/lua-exception-handling/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Context aware Lua Macros</title>
		<link>http://failboat.me/2010/context-aware-lua-macros/</link>
		<comments>http://failboat.me/2010/context-aware-lua-macros/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 01:06:43 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://failboat.me/?p=614</guid>
		<description><![CDATA[<p>Will automatically detect locals as well as global variables.</p>
<p>Usage: Macro &#8220;text ${Lua Code} more text&#8221;</p>
<pre class="brush: lua">
test = Macro &#34;Hello ${jack} ${&#039;Bauer&#039;}&#34;

function test1()
	local jack = &#34;Jack&#34;
	print(test)
end

test1()

function test2()
	local jack = &#34;No</pre><p>&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2010/context-aware-lua-macros/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lua Tutorials -&gt; Luatut.com</title>
		<link>http://failboat.me/2010/lua-tutorials-luatut-com/</link>
		<comments>http://failboat.me/2010/lua-tutorials-luatut-com/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 21:17:40 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[luatut]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://failboat.me/?p=549</guid>
		<description><![CDATA[<p>A new set of Lua Tutorials are coming out.</p>
<p><a href="http://luatut.com/"><img src="http://i560.photobucket.com/albums/ss44/leegao/crashingintolua.jpg" alt="Lua Tutorial" /></a></p>
<p><a href="http://luatut.com/">http://luatut.com/</a></p>
]]></description>
		<wfw:commentRss>http://failboat.me/2010/lua-tutorials-luatut-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Lua] MapParser (High Level API)</title>
		<link>http://failboat.me/2009/mapparser/</link>
		<comments>http://failboat.me/2009/mapparser/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 04:20:52 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[bytes]]></category>
		<category><![CDATA[cs2d]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[parser]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[shorts]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://failboat.me/?p=465</guid>
		<description><![CDATA[<p>
<dd>
<p><span style="font-weight: bold">This is a Map parser library for CS2D&#8217;s lua engine. Benchmarked to process 6,000 tiles per second. (A 2,000% improvement over the older parser). This also demonstrates that it is possible to have object-orientation within a lua script</span></p></dd>&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2009/mapparser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overcomplicated Hello World example in Lua</title>
		<link>http://failboat.me/2009/overcomplicated-hello-world-example-in-lua/</link>
		<comments>http://failboat.me/2009/overcomplicated-hello-world-example-in-lua/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 07:51:27 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://6.dot.ch/?p=289</guid>
		<description><![CDATA[<p>As we all know, writing a hello world script in Lua consists of no more and no less then the simple use of print(&#8220;Hello World!&#8221;). However, given the simplicity of such a task, I set out to create something much&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2009/overcomplicated-hello-world-example-in-lua/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordfilter in Lua</title>
		<link>http://failboat.me/2009/wordfilter-in-lua/</link>
		<comments>http://failboat.me/2009/wordfilter-in-lua/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 04:36:47 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Lua]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[dirty]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[naughty]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[word]]></category>
		<category><![CDATA[wordfilter]]></category>
		<category><![CDATA[words]]></category>

		<guid isPermaLink="false">http://6.dot.ch/?p=263</guid>
		<description><![CDATA[<p>I&#8217;ve been getting bored lately so I&#8217;ve decided to create a wordfilter in Lua, it&#8217;s really basic actually, but useful. The concept goes something like this. You take a list of naughty words, and filter them out of the text.&#8230;</p>]]></description>
		<wfw:commentRss>http://failboat.me/2009/wordfilter-in-lua/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
