Slashdot Mirror


C# to Java Conversion?

axlrosen asks: "Given Microsoft's current prerelease C# spec, would it be possible to write an automatic converter from C# to Java? Are there any parts of the language that couldn't be converted? Could the 'unsafe' stuff be converted to a combination of Java and C++, using JNI?" Of course something like this is possible, but is it practical at this point? C# is a very new language, and I wouldn't advise starting any serious projects with it until the language has been through its paces. If you are considering between C# and Java for a large project, I'd suggest that you use Java, at least until C# has matured a bit.

2 of 8 comments (clear)

  1. C# is search engine anti-friendly by mdaniel · · Score: 3

    Has anyone else noticed that you can't search for the name "C#" on 85% of the search bots for websites? (I am not talking about the engines like google - I haven't tried them)

    I find it especially funny that you can't use "C#" on search.microsoft.com, either.

  2. Why ? by jerdenn · · Score: 3
    My question is why?

    Looking at the language specs, it appears that C# is Microsoft's answer to the in-between language that many Windows programmers have been asking for some time now. There are some projects that don't really need the power (or complexity) of C++, but VB often overdoes it in the effort to oversimplify and kludge everything together.

    I welcome an easier way to program COM/DCOM/COM+ on windows platforms - There are times when I require C++ for its speed and control, but I sacrifice developement time to gain this. A middle ground is much needed.

    That having been said, why would we need to port a project to java?

    I think the question misunderstands the intended domain for the C# language - A COM-based developement environment.

    -jerdenn