lua-users home
lua-l archive

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

Thanks Kristofer, if you do find any smart ideas in my code please let
me know cause I'm hoping there are some ;) I'll definitely take a look
at Kahlua, sounds like a great project. Java is obviously going to be
alot faster than my implementation.. too bad silverlight isn't mature
enough yet or else I could consider using that instead of Flash.

I think I might put out another release in the next couple days that
cleans up the code and makes it a bit clearer to read. If you have any
question about what any snippet does in particular before then,
though, let me know and I'll try to explain the best I can.

Jason Neufeld (Phil. 3:12)

On Mon, Jun 9, 2008 at 2:14 PM, Kristofer Karlsson
<> wrote:
> Hi, this is very interesting to me, since your project seems to be
> almost identical to Kahlua in scope and goal, except that your target
> platform is ActionScript and mine is Java. I'll take a look at your
> source code just for fun and see if I can spot any similarities and
> differences, and if you have come up with any smart ideas that I have
> overlooked.
> Kristofer
> On Mon, Jun 9, 2008 at 8:05 AM, Jason Neufeld <> wrote:
>> Hey all! Mostly to prove this isn't vaporware I put out a very, very
>> pre-alpha release of flua on , under the same
>> MIT license as Lua. The better address, should
>> be working by tomorrow, depending on DNS propagation of course. I'd
>> like to hear comments on it! I've made some good progress, most
>> notably moving it to a program counter-based setup instead of
>> recursive + PC for all functions, which should allow for the eventual
>> addition of things like coroutines. Sadly the (once beautiful) code is
>> now a wasteland because of all the optimization, but in this case I
>> think the speed it worth the sacrifice! I've achieved a more than 10x
>> improvement from my original time of 12 seconds on the fibonacci code
>> down to .95 seconds on my macbook pro. I might rollback a couple of
>> the optimizations that don't do much just to make my life more sane
>> (especially where I replaced some registers' variables with the direct
>> bitwise operation, or even worse, repeated the bitwise codes on every
>> opcode only where it is necessary instead of once all inclusive at the
>> top of the select switch just to save cycles!)
>> Anyway, tell me what ya think! I'm still a bit of a noob at the whole
>> Lua thing specifically but I hope the coding skills and principles
>> I've worked to build up in other languages will make up for that as
>> time goes on... Thanks! :)
>> Jason Neufeld (Phil. 3:12)