lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sun, 2007-11-18 at 10:32 -0300, Humberto S. N. dos Anjos wrote:
[...]
> I am working in a Lua 5.1 optimizing compiler, written using Lua and
> LPeg, and I'm in a dire need of sample programs for testing and
> optimizing. Ideally, I wanted 3 or 4 programs of a considerable size,
> written entirely or mostly (the more the better) in Lua 5.1, with a
> test suite (nothing fancy, just something to demonstrate that the
> compiled code works), and without (many) external dependencies or
> special environment needs. Does anyone have any interesting candidates
> to spare? Or know some? 

Well, I've got this word processor...

http://wordgrinder.sourceforge.net/

One of the things I've noticed is that it's a bit slow on low-end
machines. I've been looking at speeding up the VM via patches, but I'd
be fascinated to know whether an optimising compiler would help. It's
about 4000-odd lines of Lua, IIRC.

The version on the web site runs on a stock Debian lua5.1 installation
(although with extensions for the screen I/O), so there shouldn't be any
gotchas.

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ───── 
│ "I have always wished for my computer to be as easy to use as my 
│ telephone; my wish has come true because I can no longer figure out 
│ how to use my telephone." --- Bjarne Stroustrup 

Attachment: signature.asc
Description: This is a digitally signed message part