...we had a language or tool or IDE or whatever you want to call it, which followed the exact same syntax of Java and produced machine code instead of byte code?
Every so often, I have to do things that require interacting directly with windows. I try googling and find that it can be done very easily using VB or sometimes VC++ or C#. Since I have never worked with VB or VC++ (though I know C++ concepts), I feel terribly handicapped. Last time I tried writing a simple multi threaded program in VC++ (which is a breeze in Java), I was totally lost. Finally a vc++ guy did it.
With my little knowledge about C#, I can see that MS has substantially eased windows programming (as comparted to VC++). C# is practically Java for windows.
However, C# is still another language to learn, and it still needs the .Net runtime.
Did anybody here ever feel a need for something like "Java for C++"? I mean, I want C++ but in Java. So it would let me code in Java but the output will be an exe or .so (whatever the underlying OS is). I know there are some bytecode to native code converters but I don't think that is what I want because they still limit me to what the JVM supports and there is no GUI support.
What I mean is that I would like to develop native applications ....using Java. Yes, to use existing dlls or any other native code, JNI is the option (only?) but if you want to write native code, you still need to use C/C++. I would like to do that in Java. So I guess what I am thinking of is the usage of Java as just a language and not as a platform... to do some thing other than being fed to a compiler that generate JVM bytecode.
The whole point of doing that is to leverage the simplicity of Java language as compared to C/C++. After all, C/C++ is just a language/syntax, which is analogous to one aspect of Java. So potentially, there can be a compiler than can read java code and generate machine code.
In fact, MS is doing the same thing with its "language independence". You can write using any language you are comfortable in and develop the same application (albeit, the platform will be Windows).
In my case, I am talking about platform independence (not locked in to just the JVM) but the language is Java. The reason is that I speak only only language, Java, so I am language dependent, but I would like to develop apps for multiple platforms and not just for JVM. [ January 10, 2006: Message edited by: Ram Bhakt ]