# Wednesday, 10 July 2002
« No Title | Main | No Title »
No Title

I changed the Java to native code transition from my own MC++ marshaling to use the calli instruction. The code is much more elegant now, not to mention much faster. My database app now performs on a par with JDK 1.1. Not bad at all.

Also, I implemented support for interfaces that "override" java.lang.Object methods and I remapped java.lang.Comparable to System.IComparable. Both of these features use the same underlying mechanism, i.e. the ability to provide explicit interface implementations that redirect to virtual methods with a different name.

Wednesday, 10 July 2002 18:18:28 (W. Europe Daylight Time, UTC+02:00)  #    Comments [1]
Thursday, 11 July 2002 10:25:51 (W. Europe Daylight Time, UTC+02:00)

This is unbelievable progress, at least from an outsider's perspective. It sounds like you're almost done, in fact - at least from a "run java code in .NET" perspective. I'm sure there's a lot left to do, but it sure seems like you've broken the back of the problem.


My interest in this project has always been from the perspective of making Java a full-fledged .NET language. From that perspective, as I see it, the tricky challenges are (1) what you've already done - running the Java code inside .NET; (2) making the Java compiler aware of .NET classes somehow, so that Java code can call .NET methods natively, and (3) making .NET aware of the Java classes, so that .NET code can call the Java stuff. It seems to me that (1) is all-but-solved already by your work and (3) is just a matter of running your program in ahead-of-time mode and putting the resulting binaries into the GAC (or whatever .NET's equivalent of $CLASSPATH is).


That leaves #2, which seems hard to me. At the very least, it seems like it would require changes to the Java language compiler to interpret (at least metadata from) .NET classes and allow for those to be in the CLASSPATH at compilation time. Is that something you're interested in pursuing as part of IKVM, or do you regard it as a separate problem?

Stuart
Name
E-mail
Home page

I apologize for the lameness of this, but the comment spam was driving me nuts. In order to be able to post a comment, you need to answer a simple question. Hopefully this question is easy enough not to annoy serious commenters, but hard enough to keep the spammers away.

Anti-Spam Question: What method on java.lang.System returns an object's original hashcode (i.e. the one that would be returned by java.lang.Object.hashCode() if it wasn't overridden)? (case is significant)

Answer:  
Comment (HTML not allowed)  

Live Comment Preview