[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Updated uFAQ (Unofficial Lua FAQ)
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 29 Aug 2011 13:11:53 +0200
On Mon, Aug 29, 2011 at 12:58 PM, Gavin Wraith <gavin@wra1th.plus.com> wrote:
> That is because it uses functions of type string->string
> instead of rope->rope. It is not sufficiently lazy.
Yes, it does this kind of thing:
function span_transform(text)
text = code_spans(text)
text = escape_special_chars(text)
text = images(text)
text = anchors(text)
text = auto_links(text)
text = amps_and_angles(text)
text = emphasis(text)
text = line_breaks(text)
return text
end
_Lots_ of gsub operations on big chunks of text. It would be an
interesting exercise to do a well-performing Lua version but whenever
I get the urge I lie down until the feeling passes.
steve d.