Now that I'm back on the list... On Jul 18, 2011, at 10:54 AM, Sam Hobbs wrote: > .Net is the equivalent of the Java Virtual Machine (JVM), not Java source > code. I assume however that the previous statement about generating Java > source code is not correct, which makes this discussion especially irrelevant.
http://android.xamarin.com/Documentation/Architecture Managed code is not converted into Java, it is executed atop the Mono VM. This has a number of benefits (proper generics, anyone? Full System.Reflection.Emit?), though introduces a few issues as well. Java code is also generated during the build process, but these Android Callable Wrappers are _not_ a translation of C# code into Java code, they're Java type declarations to allow Android code to call into managed code. > shariq muhammad wrote: >> Well java is no extra level. Java is the same like .net running on >> android though monodroid. >> >> I am still thinking if they could support C# as well. If C# is converted >> to Java then that is best. Again, this is not what happens with Mono for Android. C# code is not converted to Java. >> Basically like .net interprets IL, Java interprets >> JVM code. the two technologies are same. .NET doesn't interpret IL, .NET JIT compiles and executes IL. There's a rather large difference there. :-) Modern JVMs also JIT compile, but support interpretation as well. I have no idea if Dalvik is a "modern" JVM in this respect, though I do know that Android 2.2 introduced a JIT compiler (prior to that dalvik bytecode was interpreted). That said, Dalvik is NOT a JVM. (It doesn't interpret Java bytecode, doesn't fully support JNI, and is nowhere near as mature as Oracle's JVM. It's not as old as Mono, for that matter...) >> moster67 wrote: >>> all code written in the IDE, in its >>> VB.Net dialect, is converted into pure Java when compiled. I have no idea where VB.NET came in; VB.NET is not currently supported by Mono for Android. - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid