RE: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-06 Thread Jeroen Frijters
You are correct, but why take the performance and complexity hit to solve a non-existing problem? Regards, Jeroen -Original Message- From: Aaron Hamid [mailto:[EMAIL PROTECTED] Sent: Sunday, June 05, 2005 20:44 To: harmony-dev@incubator.apache.org Subject: Re: [arch] How much of

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-06 Thread Richard S. Hall
Jeroen Frijters wrote: You are correct, but why take the performance and complexity hit to solve a non-existing problem? The simpler solution is to just use class loaders as a modularization mechanism. It is possible (since I have done it in my OSGi framework) to create a class loader

RE: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-06 Thread Jeroen Frijters
Richard S. Hall wrote: Jeroen Frijters wrote: You are correct, but why take the performance and complexity hit to solve a non-existing problem? The simpler solution is to just use class loaders as a modularization mechanism. No, that does not solve the problem of getting access to the

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-06 Thread Richard S. Hall
Jeroen Frijters wrote: No, that does not solve the problem of getting access to the internals of public classes. For example, java.lang.VMThread needs to access package private methods in java.lang.Thread. You are correct, if your design is such that you need private access both ways,

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-06 Thread Aaron Hamid
Jeroen I think there are at least two perceived problems being voiced: * aversion to the idea of polluting a standard library distribution (e.g. Classpath) with VM-specific interface implementations. Although there have been assurances that such work is trivial and the interface is

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Geir Magnusson Jr .
On Jun 3, 2005, at 6:39 PM, Dalibor Topic wrote: That's a rather weird thing to standardise, being the internals of a binding between the library and the VM, and necessarily something that is in flux, as VMs and class libraries change internally. And they do change quite a bit over

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Geir Magnusson Jr .
On Jun 4, 2005, at 12:59 PM, Sven de Marothy wrote: On Fri, 2005-06-03 at 14:01 -0500, Dan Lydick wrote: Naw, but have you ever looked into how to design and construct a JVM? The fundamental classes like java.lang can typically have implementation-specific requirements, so I am trying to

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Geir Magnusson Jr .
On Jun 3, 2005, at 5:22 PM, Aaron Hamid wrote: I'm sort of confused by this discussion also. It seems to be about at what granularity we start introducing vm- specific interfaces/implementations. At some point the class library has to interface with the VM. We can do that at a very

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Geir Magnusson Jr .
On Jun 3, 2005, at 4:34 PM, Tom Tromey wrote: Dan == Dan Lydick [EMAIL PROTECTED] writes: Dan That includes the language protection features like Geir's Dan example of package private, which are an interesting game of Dan navigating class file structures with reflection, etc. I've Dan

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Doug Lea
Geir Magnusson Jr. wrote: Dan That includes the language protection features like Geir's Dan example of package private, ... Sorry for not following up on some of my previous remarks on such things. But briefly, here's a trick that works, without any need for language-based module

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Aaron
From what I understood from this thread (and of course my understanding could be wrong), there is some contention over where to hide this Classlib-VM interface and implementation so that user code is least able to use/abuse it. One suggestion was to use existing package visibility modifiers

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Sven de Marothy
On Sun, 2005-06-05 at 06:21 -0300, Geir Magnusson Jr. wrote: That's not fair. I told you that *I* think that extending java.lang is a *bad idea*. You many not agree, but that's not the same is NIH. That doesn't mean that java.lang.VMObject can't be move to another package,

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Sven de Marothy
On Sun, 2005-06-05 at 06:25 -0300, Geir Magnusson Jr. wrote: On Jun 4, 2005, at 12:59 PM, Sven de Marothy wrote: AFAIK there are no other class libraries out there which you'll legally be able to distribute with Harmony. So why create flexibility when there aren't options? Are you

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Sven de Marothy
+1 to that! On Sun, 2005-06-05 at 11:53 -0400, Aaron wrote: From what I understood from this thread (and of course my understanding could be wrong), there is some contention over where to hide this Classlib-VM interface and implementation so that user code is least able to use/abuse it.

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Tom Tromey
Geir == Geir Magnusson [EMAIL PROTECTED] writes: Geir That's not fair. I told you that *I* think that extending java.lang Geir is a *bad idea*. I still don't understand why you think this. Could you explain what problem might arise? Geir Also, I don't know what the 1.4 and 1.5 Java API

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Geir Magnusson Jr.
On Jun 5, 2005, at 1:30 PM, Sven de Marothy wrote: On Sun, 2005-06-05 at 06:21 -0300, Geir Magnusson Jr. wrote: That's not fair. I told you that *I* think that extending java.lang is a *bad idea*. You many not agree, but that's not the same is NIH. That doesn't mean that

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Tom Tromey
Geir == Geir Magnusson [EMAIL PROTECTED] writes: Dan I've Dan never tried that, but Geir is right, I think it can be done if Dan you try hard enough. In the second case, when there is a security manager, then, no, you cannot get around the access controls, even with reflection. Geir Why

RE: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Jeroen Frijters
Geir Magnusson Jr. wrote: Geir Magnusson Jr. wrote: True, except I really hate extending java.lang. :) What do you mean by extending java.lang? GNU Classpath does not extend java.lang (for any reasonable definition of extend). Having package private classes is not extending.

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Tom Tromey
Geir == Geir Magnusson [EMAIL PROTECTED] writes: What do you mean by extending java.lang? GNU Classpath does not extend java.lang (for any reasonable definition of extend). Having package private classes is not extending. Geir Why do you say that? Suppose for J2SE 6, the EG adds the public

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Geir Magnusson Jr.
On Jun 5, 2005, at 1:45 PM, Sven de Marothy wrote: On Sun, 2005-06-05 at 06:25 -0300, Geir Magnusson Jr. wrote: On Jun 4, 2005, at 12:59 PM, Sven de Marothy wrote: AFAIK there are no other class libraries out there which you'll legally be able to distribute with Harmony. So why create

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Geir Magnusson Jr.
On Jun 5, 2005, at 2:05 PM, Tom Tromey wrote: Geir == Geir Magnusson [EMAIL PROTECTED] writes: Geir That's not fair. I told you that *I* think that extending java.lang Geir is a *bad idea*. I still don't understand why you think this. Could you explain what problem might arise? Sun

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Geir Magnusson Jr.
On Jun 5, 2005, at 2:12 PM, Jeroen Frijters wrote: Geir Magnusson Jr. wrote: Geir Magnusson Jr. wrote: True, except I really hate extending java.lang. :) What do you mean by extending java.lang? GNU Classpath does not extend java.lang (for any reasonable definition of extend). Having

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Geir Magnusson Jr.
On Jun 5, 2005, at 2:06 PM, Tom Tromey wrote: Geir == Geir Magnusson [EMAIL PROTECTED] writes: Dan I've Dan never tried that, but Geir is right, I think it can be done if Dan you try hard enough. In the second case, when there is a security manager, then, no, you cannot get around the

RE: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Jeroen Frijters
Geir Magnusson Jr. wrote: On Jun 5, 2005, at 2:12 PM, Jeroen Frijters wrote: Geir Magnusson Jr. wrote: Geir Magnusson Jr. wrote: True, except I really hate extending java.lang. :) What do you mean by extending java.lang? GNU Classpath does not extend java.lang (for any reasonable

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Tom Tromey
Geir == Geir Magnusson [EMAIL PROTECTED] writes: I still don't understand why you think this. Could you explain what problem might arise? Geir Sun adds java.lang.VMObject as a public class (ok, farfetched) or Geir adds it as a private class (not so farfetched). Ok, this is the scenario.

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Aaron Hamid
I actually had not considered this issue which would seem to warrant these classes living in the same package. But can not an equivalent solution be constructed such that the implementations of these public classes can hand the VM* classes references to internal structures (and vice versa)

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Tom Tromey
Geir == Geir Magnusson [EMAIL PROTECTED] writes: Yes, 1.5 *will* add new requirements to the VM interface. But the Classpath VM interface isn't some immutable static thing either. All I'm saying here is: how about crossing that bridge when you get there, instead of deciding out of hand that

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Ulrich Kunitz
On Sun, 5 Jun 2005, Geir Magnusson Jr. wrote: Also from time to time the VM interface has to be extended for new VMs, which have different needs. This is one reason that the interface isn't yet stable, even for 1.4. It would be interesting to know why and how it was extended - there's

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Dalibor Topic
On Sun, Jun 05, 2005 at 06:20:37AM -0300, Geir Magnusson Jr. wrote: On Jun 3, 2005, at 6:39 PM, Dalibor Topic wrote: That's a rather weird thing to standardise, being the internals of a binding between the library and the VM, and necessarily something that is in flux, as VMs and

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-05 Thread Dalibor Topic
On Sun, Jun 05, 2005 at 02:20:53PM -0300, Geir Magnusson Jr. wrote: On Jun 5, 2005, at 1:45 PM, Sven de Marothy wrote: On Sun, 2005-06-05 at 06:25 -0300, Geir Magnusson Jr. wrote: On Jun 4, 2005, at 12:59 PM, Sven de Marothy wrote: AFAIK there are no other class libraries out there

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-04 Thread Sven de Marothy
On Fri, 2005-06-03 at 14:01 -0500, Dan Lydick wrote: Naw, but have you ever looked into how to design and construct a JVM? The fundamental classes like java.lang can typically have implementation-specific requirements, so I am trying to focus on isolating these items from the rest of the

Re: [arch] How much of java.* and friends does Harmony need to write. Was: VM/Classlibrary interface

2005-06-04 Thread Santiago Gala
El sb, 04-06-2005 a las 17:59 +0200, Sven de Marothy escribi: (...) So why create flexibility when there aren't options? to enable the development of other options? without arriving to flexibility syndrome, good interfaces enable competing implementations. Your question has exactly the same