[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: J2ME Implementation of Lua?
- From: "Kristofer Karlsson" <kristofer.karlsson@...>
- Date: Wed, 9 Apr 2008 12:07:12 +0200
For reference, an obfuscated jar of the Kahlua runtime is currently at 24 KB.
Using Hashtable wasn't an option due to semantic reasons -
implementing next would get tricky. Instead a custom hashtable was
implemented, trying to mimic the standard lua implementation.
(As a note, I have written apps for J2ME that had to fit in 64 KB.
Those were painful times.)
On Wed, Apr 9, 2008 at 10:42 AM, David Jones <drj@pobox.com> wrote:
>
> On 8 Apr 2008, at 23:14, Gerardo Horvilleur wrote:
>
> > Interesting. How large was it? (memory footprint/jar file size). Did
> > it fit on most J2ME enabled phones?
> >
>
> 100KB or so of JAR.
>
> Since Lua strings were Java strings and Lua tables were java.util.Hashtable
> memory footprint was pretty typical for a Java program.
>
> I fitted on the 'phone I used to implement it. Most serious 'phones either
> had no limit of JAR file size or had 128KB. I think the Nokia 6230i has a
> 128KB jar file limit and we were under that.
>
> drj
>