From dev-return-38493-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Mon Nov 23 03:12:11 2009 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 98573 invoked from network); 23 Nov 2009 03:12:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Nov 2009 03:12:10 -0000 Received: (qmail 39088 invoked by uid 500); 23 Nov 2009 03:12:10 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 38979 invoked by uid 500); 23 Nov 2009 03:12:08 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 38966 invoked by uid 99); 23 Nov 2009 03:12:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 03:12:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of xu.regis@gmail.com designates 209.85.211.176 as permitted sender) Received: from [209.85.211.176] (HELO mail-yw0-f176.google.com) (209.85.211.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 03:11:58 +0000 Received: by ywh6 with SMTP id 6so4403202ywh.4 for ; Sun, 22 Nov 2009 19:11:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=APFcj7R3Q+zMPhX6g/pHHuUo9DVeXba4lEXR00MTYo0=; b=vEOPphN2lR0Ci9R79+DtpyQuSa9QRtyaZciBQ9bEqth20cbBUBlYtVYDECuNuUWfvU UDDMvM/sEr6kVQc3NSpvSg8WLuFDZGg9XqWLcm4AJBAov2NBOBKtmL+SVocyBkpiJV57 DprRKofmgWEAzfO05scMysc34d0wYVQ3kuPF4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=v73qwpcFheS50o9ViB8AG7APg74zRqniYATl8ziRRmDxkwnACDtgp+PtT0+09zicr/ Zv25kGTJerYnLzIZ2/ETSko13mqc35cpAXDHCboBAIgbuwo4rLfRegsYJMASbLls1E/E AC/iOac/CNz6bStdWiBNmSxTvUtSkdNxMxXH0= Received: by 10.150.44.3 with SMTP id r3mr7523306ybr.241.1258945897752; Sun, 22 Nov 2009 19:11:37 -0800 (PST) Received: from ?9.123.237.125? ([220.248.0.145]) by mx.google.com with ESMTPS id 8sm1338484ywg.34.2009.11.22.19.11.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 22 Nov 2009 19:11:36 -0800 (PST) Message-ID: <4B09FD58.6030804@gmail.com> Date: Mon, 23 Nov 2009 11:11:20 +0800 From: Regis User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: harmony vm as a lib References: <6fcb94430911221852m182638dcq71653d67dbf2cc75@mail.gmail.com> In-Reply-To: <6fcb94430911221852m182638dcq71653d67dbf2cc75@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Tim Prepscius 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) [1] can help to find out which classes are used by your application, and strip down a jre only contains these classes. This tool only slim java class library, doesn't touch native code. VM guys may help you with how to slim the JVM. [1] https://svn.apache.org/repos/asf/harmony/enhanced/tools/trunk/minijre/ > > 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 > -- Best Regards, Regis.