harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Fedotov <alexei.fedo...@gmail.com>
Subject Re: harmony vm as a lib
Date Mon, 23 Nov 2009 09:21:00 GMT
Tim,
As for your willingness to create a lib, VM is a lib already [1], an
is successfully used in browser plug-ins.

[1] http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/invocation.html

On Mon, Nov 23, 2009 at 11:54 AM, Xiao-Feng Li <xiaofeng.li@gmail.com> wrote:
> To reduce Harmony VM (DRLVM) is possible - and not very difficult. JIT
> and GC are modules that you can easily replace with very simple ones.
> Other modules can be largely reduced as well if you do not need them,
> e.g., threading, verifier, profiler, etc. I don't know your
> performance target, but my personal preference usually is to keep a
> simple JIT for the execution engine rather than the interpreter.
>
> Thanks,
> xiaofeng
>
> On Mon, Nov 23, 2009 at 10:52 AM, Tim Prepscius <timprepscius@gmail.com> wrote:
>> Greetings,
>>
>> I have been searching for a non-gpl replacement for sun's java for
>> quite a while now.  I can't believe I didn't see your project until
>> this month.  Let me tell you, when I saw your code I almost cried.
>> (haha, well, maybe not cried)
>>
>> It's really, really nice.  And I have not run yet into a hundred line
>> #define (as in "dalvik") yet.
>> Anyhow.
>>
>>
>> This is what I'd like to do.  I'm wondering whether anyone would
>> comment on accomplishing this, if it is possible.
>> Who knows, maybe somebody else has fiddled around with this.
>>
>> What I'm looking for:
>>
>> 1.  I'm really not looking for java.  I'm looking for a
>> micro-edition-ish java to embed in a video game engine.
>>
>> 2.  Don't need JIT, don't need two garbage collectors - 1 will do,
>> don't need the JVM to be accessible to the outside world. Don't need
>> almost *all* of the class libraries.  Don't need sockets (except for
>> debugging).  Don't actually need threads (I disable their creation via
>> the security manager anyway), but I suppose this is necessary for GC &
>> Debug.
>>
>> 3. Need JNI, which I see you have.
>>
>> So what I'm thinking I'd like to do:
>>
>>
>> Optimally I'd like to create a lib out of harmony-vm.  Statically link
>> with my application.  Create a single jar with all of my necessary
>> classes, cutting out all of the java extra stuff (everything pretty
>> much)
>>
>> If creating a lib creates problems for JNI (what problems I don't
>> know), I'd like to combine all of your dlls into one massive dll.
>> Then I was thinking, that after getting this done, I'd start cutting
>> out modules.  And try to reduce everything to under 1 meg.
>>
>> --
>>
>> Is this crazy?
>>
>> Thanks in advance,
>>
>> -tim
>>
>
>
>
> --
> http://people.apache.org/~xli
>



-- 
With best regards / с наилучшими пожеланиями,
Alexei Fedotov / Алексей Федотов,
http://www.telecom-express.ru/
http://harmony.apache.org/
http://www.expressaas.com/
http://openmeetings.googlecode.com/

Mime
View raw message