[dev-tools] was Re: Against using Java to implement Java (Was: Java)

2005-05-19 Thread Mark Brooks
If we are going to entertain writing most of the JVM in a type-safe language, we should also consider the proposed ECMA C++/CLI. From what I understand, it standardizes a form of type-safe C++. It has the promise of keeping both the Java and C camps happy. Not really. First, it is a Microsoft

Re: [dev-tools] was Re: Against using Java to implement Java (Was: Java)

2005-05-19 Thread FaeLLe
So have to agree with Mark... Making a JVM in a .NET language this deserves a . LOL Sorry if i sound out of order had to do it :s On 5/19/05, Mark Brooks [EMAIL PROTECTED] wrote: If we are going to entertain writing most of the JVM in a type-safe language, we should also

Re: Against using Java to implement Java (Was: Java)

2005-05-18 Thread David Griffiths
I think it's too slow to have the overhead of a function call for every object allocation. This is the cost of modularization. I doubt any of the mainstream JVMs you are competing with do this. Cheers, Dave On 17 May 2005 18:27:42 -0600, Tom Tromey [EMAIL PROTECTED] wrote: David == David

Re: Against using Java to implement Java (Was: Java)

2005-05-18 Thread Ben Laurie
David Griffiths wrote: By having the JIT produce code to inline the object allocation using its knowledge of the GC internals. I'm not recommending this approach, just saying that this is how things tend to be done in practice. And if you want to compete on speed then you're going to have to

Re: Against using Java to implement Java (Was: Java)

2005-05-18 Thread Weldon Washburn
On 5/18/05, David Griffiths [EMAIL PROTECTED] wrote: I think it's too slow to have the overhead of a function call for every object allocation. This is the cost of modularization. I doubt any of the mainstream JVMs you are competing with do this. Yes. I agree. A clean interface would have a

Re: Against using Java to implement Java (Was: Java)

2005-05-18 Thread Steve Blackburn
This subject has been covered in detail at least twice already. There is no need for any function call on the fast path of the allocation sequence. In a Java in Java VM the allocation sequence is inlined into the user code. This has considerable advantages over a few lines of assembler.

Re: Against using Java to implement Java (Was: Java)

2005-05-18 Thread David Griffiths
I know, but despite the subject line my original point was about the problem of modularizing a VM written in C. Cheers, Dave On 5/18/05, Steve Blackburn [EMAIL PROTECTED] wrote: This subject has been covered in detail at least twice already. There is no need for any function call on the

Re: Against using Java to implement Java (Was: Java)

2005-05-18 Thread Tom Tromey
Steve == Steve Blackburn [EMAIL PROTECTED] writes: Steve There is no need for any function call on the fast path of the Steve allocation sequence. [ ... ] Steve However this is small fry compared to the importance of compiling Steve write barriers correctly (barriers are used by most high

Re: Against using Java to implement Java (Was: Java)

2005-05-18 Thread Davanum Srinivas
Weldon, One way to handle this is to write something up on the wiki (http://wiki.apache.org/harmony/) and ask people to comment and then incorporate the comments back. So that we have a record of the discussion and the conclusions. Yes, we need to stick to harmony-dev for now. Thanks, dims On

Re: Against using Java to implement Java (Was: Java)

2005-05-18 Thread Geir Magnusson Jr.
Or post to the dev list first so everyone can see it, and then take a summary to the wiki. On May 18, 2005, at 2:43 PM, Davanum Srinivas wrote: Weldon, One way to handle this is to write something up on the wiki (http://wiki.apache.org/harmony/) and ask people to comment and then incorporate

Re: Against using Java to implement Java (Was: Java)

2005-05-18 Thread Weldon Washburn
On 5/18/05, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: On May 18, 2005, at 9:36 AM, Steve Blackburn wrote: This subject has been covered in detail at least twice already. There is no need for any function call on the fast path of the allocation sequence. In a Java in Java VM the

Re: Against using Java to implement Java (Was: Java)

2005-05-18 Thread Weldon Washburn
Steve, Very interesting. Please point me to the web pages that show SpecJAppServer/JBB/JVM... numbers for Jikes. I see some mention of magic types. Does this work around the java verifier by coercing a reference pointer into a Java int and vice-versa? This could be done by calling a

Re: Against using Java to implement Java (Was: Java)

2005-05-15 Thread Robin Garner
Hi, I'd be interested in hearing more from Steve on how well that works within JikesRVM. From reading some papers on the web, it seems that the MMTk has been ported to other, non-Java runtimes as well, and I guess that this binding-vm-components-via-java-interfaces problem has been efficiently

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Mohammed Al-Qaimari
It may seem a very odd idea but I believe that p[arts of the VM must be implemented at driver level to provide optimized solution for some bottlenecks in the hosting OS besides I agree that a larger part of the VM should be written C/C++. That's what people at Microsoft do for .NET platform.

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread 王在祥
I dont see any problem of writing the JIT in java. It looks very clearly, and even can be developed and debugged as a normal Java application.

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Ben Laurie
Mark Brooks wrote: I hope you use C to write the VM for Harmony. The chief objection I have to using C to write the VM is that it introduces a host of common errors and delays associated with using C or C++ for large products. C is an excellent language for its purposes, but this isn't 1972.

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Mark Brooks
One of the reasons why not, from my POV, is because it runs so badly on most platforms. I can't comment on that. I've used it on Solaris, Linux, and Windows. However, that is a VM issue, not a language issue. I've tried to sell C++ in the ASF many times. Even back when it wasn't quite so

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Ben Laurie
Mark Brooks wrote: One of the reasons why not, from my POV, is because it runs so badly on most platforms. I can't comment on that. I've used it on Solaris, Linux, and Windows. However, that is a VM issue, not a language issue. It doesn't matter where the problem lies, the point is that I

RE: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Matthew French
Mark Brooks said: The chief objection I have to using C to write the VM is that it introduces a host of common errors and delays associated with using C or C++ for large products. C is an excellent language for its purposes, but this isn't 1972. Hmmm. First I would argue that a VM is not a

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Panagiotis Astithas
Ben Laurie wrote: Mark Brooks wrote: One of the reasons why not, from my POV, is because it runs so badly on most platforms. I can't comment on that. I've used it on Solaris, Linux, and Windows. However, that is a VM issue, not a language issue. It doesn't matter where the problem lies, the

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Steve Heath
Isn't it a good idea to write the first implementation in a functional programming language (read the wizard book)? That's what these platforms are designed for and the constructs are there to help in designing the thing. Then when you're happy you know what's good and bad you can re-code it in

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Ben Laurie
Matthew French wrote: Ben Laurie said: Mark Brooks wrote: I hope you use C to write the VM for Harmony. I've tried to sell C++ in the ASF many times. Even back when it wasn't quite so bloated as it is now it wasn't a popular idea. Far fewer people can write C++ than C, and hardly any of those can

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Dalibor Topic
Matthew French wrote: But I am still thinking that we can make it so that we have a choice of multiple VM's - which can be written in C, C++, Java, .Net, Perl, Python or whatever other language takes the authors fancy. I can see many valid reasons why we would want to do this, but the trick is

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Mark Brooks
It doesn't matter where the problem lies, the point is that I can't develop on the platforms I need/want to develop on. My reply wasn't intended to be dismissive. I'm short on details. What platforms are you referring to? Even a slow base VM can be an adequate bootstrap VM to create the

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Ian Darwin
I suppose that for porting issues, a C-based bootstrap VM for platforms that don't have an existing VM could be used, but I think that would be more of a future project. For now, I suspect that the primary target platforms for Harmony are those currently supported by Sun, primarily *nix

Re: Against using Java to implement Java (Was: Java)

2005-05-13 Thread Mark Brooks
Isn't it a good idea to write the first implementation in a functional programming language (read the wizard book)? That's what these platforms are designed for and the constructs are there to help in designing the thing. Then when you're happy you know what's good and bad you can re-code it in

Re: Against using Java to implement Java (Was: Java)

2005-05-12 Thread Bob
On May 12, 2005, at 7:17 AM, theUser BL wrote: I hope you use C to write the VM for Harmony. GCJ would suit all the concerns you listed. In many ways, GCJ can be thought of as C++ in Java syntax, plus a nice runtime library. GCJ can load .dll/.so files, etc (using extensions to the standard

Re: Against using Java to implement Java (Was: Java)

2005-05-12 Thread Ravi kiran Gorrepati
Check the design of Jikes at, http://www.research.ibm.com/journal/sj/391/alpern.pdf Though the memory subsytem section is a little outdated, that should not prevent you from understanding how it works. -- Ravi On Thu, 12 May 2005 10:30:12 -0600, [EMAIL PROTECTED] wrote: On 12 May 2005, at 12:17,

Re: Against using Java to implement Java (Was: Java)

2005-05-12 Thread Davanum Srinivas
Ravi, can you please add the link to the wiki as well. thanks, dims On 5/14/05, Ravi kiran Gorrepati [EMAIL PROTECTED] wrote: Check the design of Jikes at, http://www.research.ibm.com/journal/sj/391/alpern.pdf Though the memory subsytem section is a little outdated, that should not

RE: Against using Java to implement Java (Was: Java)

2005-05-12 Thread Nick Lothian
I assume that there is a project lead or leads associated with this coming from the Apache project, and they will make the determination of these initial matters. So speak up project lead(s). We are here. We are talking a lot, but not much is happening. Order us about. Assign

Re: Against using Java to implement Java (Was: Java)

2005-05-12 Thread Kev Jackson
So speak up project lead(s). We are here. We are talking a lot, but not much is happening. Order us about. Assign work. Let's get our hands dirty. The likelihood is that there will be changes along the way anyhow. There almost always are, and developers dedicated to the project will

Re: Against using Java to implement Java (Was: Java)

2005-05-12 Thread FaeLLe
On 5/13/05, Kev Jackson [EMAIL PROTECTED] wrote: So speak up project lead(s). We are here. We are talking a lot, but not much is happening. Order us about. Assign work. Let's get our hands dirty. The likelihood is that there will be changes along the way anyhow. There almost always

Against using Java to implement Java (Was: Java)

2005-05-12 Thread FaeLLe
Hmm my mail got bounced, *Symantec Mail Security detected that you sent a message containing prohibited content (SYM:09556261464022074052)* Subject of the message: Re: Against using Java to implement Java (Was: Java)Recipient of the message: harmony-dev@incubator.apache.org harmony-dev

Re: Against using Java to implement Java (Was: Java)

2005-05-12 Thread Kev Jackson
How are you wasting replying to emails and undertaking a discussion. Undertaking discussion isn't bad by itself. But discussing things and producing nothing is. From these discussions that have already occured, I would have liked to see some resolution. We are going to tackle x first, we

Re: Against using Java to implement Java (Was: Java)

2005-05-12 Thread FaeLLe
On 5/13/05, Kev Jackson [EMAIL PROTECTED] wrote: How are you wasting replying to emails and undertaking a discussion. Undertaking discussion isn't bad by itself. But discussing things and producing nothing is. From these discussions that have already occured, I would have liked to