Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 48271 invoked from network); 18 May 2005 18:14:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 May 2005 18:14:05 -0000 Received: (qmail 54502 invoked by uid 500); 18 May 2005 17:24:49 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 54436 invoked by uid 500); 18 May 2005 17:24:49 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 54360 invoked by uid 99); 18 May 2005 17:24:48 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of weldonwjw@gmail.com designates 64.233.162.207 as permitted sender) Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.207) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 18 May 2005 10:24:47 -0700 Received: by zproxy.gmail.com with SMTP id 12so272567nzp for ; Wed, 18 May 2005 10:24:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ngS9lqAFNcRrVwmhv3vyRFLKIHMnNOOH1Boyx8lw9ZUu6A8PT/2vQY12Er29ufhz9rnjs4hwo4n4mO6PxumpTYd/zGFcZRW1QvdvWzODWR/5v/dfOOFYAW/X/RsZR2KI9qOMivRfIMH4PT3uRHMYrw4Rhs03wCqxKbzXYPLkFj0= Received: by 10.36.67.10 with SMTP id p10mr214647nza; Wed, 18 May 2005 10:24:33 -0700 (PDT) Received: by 10.36.10.13 with HTTP; Wed, 18 May 2005 10:24:33 -0700 (PDT) Message-ID: <4dd1f3f005051810241821442c@mail.gmail.com> Date: Wed, 18 May 2005 10:24:33 -0700 From: Weldon Washburn Reply-To: Weldon Washburn To: harmony-dev@incubator.apache.org, tromey@redhat.com Subject: Re: Against using Java to implement Java (Was: Java) In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42845E09.7010507@algroup.co.uk> <4284E445.20303@apache.org> <892f710b0505170251627dea61@mail.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 17 May 2005 18:27:42 -0600, Tom Tromey wrote: > >>>>> "David" =3D=3D David Griffiths writes: >=20 > David> Maybe a concrete example would help. Let's say you have a GC modul= e > David> written in C. One of it's API calls is to allocate a new object. H= ow > David> is your JIT module going to produce code to use that API? Via a C > David> function pointer? >=20 > Yes. >=20 > One way is to mandate link- or compile-time pluggability only. Then > this can be done by name. Your JIT just references > '&harmony_allocate_object' in its source and uses this pointer > in the code it generates. >=20 > The other way is to have the JIT call some central function to get a > pointer to the allocator function (or functions, in libgcj it turned > out to be useful to have several). This only needs to be done once, > at startup. >=20 > For folks interested in pluggability, I advise downloading a copy of > ORP and reading through it. ORP already solved these problems in a > fairly reasonable way. Thanks. I am more than willing to respond to questions about ORP.=20 Since ORP was last posted to open source, I have done some additional thinking about interfaces as well as JVM and .NET design in general.=20 I really look forward to discussing these ideas. It would be great if we can quickly get to the point where we can discuss interface details. For example, I would like to start a detailed discussion on JIT and GC interface header files. Should we start this on the general harmony-dev list? Weldon >=20 > Tom >