C# to JAVA converter?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • asj

    C# to JAVA converter?

    just read about a person who did work in C# then decided to switch to
    java (because he wanted to run his apps in multiple platforms, inc
    linux). he mentioned that someone should market a c# to Java converter.

    is there any such thing today?

    there is almost surely no market for it right now (since there are not
    that many mature c# projects around yet), but it might be something to
    look at in the medium term future when movements from c# to java
    accelerate.
  • Frecklefoot

    #2
    Re: C# to JAVA converter?

    "asj" <k@xx.com> wrote in message news:3F2FE716.2 71D@xx.com...[color=blue]
    > just read about a person who did work in C# then decided to switch to
    > java (because he wanted to run his apps in multiple platforms, inc
    > linux). he mentioned that someone should market a c# to Java converter.[/color]

    This would be a tall order. The Java base classes are totally different
    than the .NET ones in terms of heirarchy and use.
    [color=blue]
    > is there any such thing today?[/color]

    If there is, it most likely produces poor code. Converting Java to C# using
    an automated tool, for the reasons noted above, would most likely lead to a
    bloated mess. Converting by hand by a skilled coder (i.e. knows both Java
    and C# well) is probably currently the best method for conversion. Such a
    tool might be viable after a few generations of releases, but I doubt it
    could rival hand conversion.

    Just my $.02...


    Comment

    • phoenix

      #3
      Re: C# to JAVA converter?

      Did you try it? I wonder if it can handle unsafe code.

      Yves
      [color=blue]
      > There's a MSIL to Java source code convertor:
      >
      > ``The language module takes the .Net application's IL (intermediate
      > language) code and converts it to the Java source code. This module can
      > be run as a plug-in for Visual Studio.NET, or as a command line
      > executable. The runtime module replicates the functionality provided by
      > the .NET class libraries. All the libraries that come with .NET
      > (including classes such as ADO.NET, XML, SOAP) have been developed
      > using the Java language.''
      >
      > http://www.stryon.com/ has more info about this.
      > --
      > __________
      > |im |yler http://timtyler.org/ tim@tt1.org[/color]


      Comment

      • Tim Tyler

        #4
        Re: C# to JAVA converter?

        In comp.lang.java. advocacy phoenix <patient0@skyne twork.be> wrote:

        :> http://www.stryon.com/ has more info about this.

        : Did you try it? [...]

        No - I have no MSIL.
        --
        __________
        |im |yler http://timtyler.org/ tim@tt1.org

        Comment

        • Tor Iver Wilhelmsen

          #5
          Re: C# to JAVA converter?

          "phoenix" <patient0@skyne tWORK.be> writes:
          [color=blue]
          > Did you try it? I wonder if it can handle unsafe code.[/color]

          Unsafe code really ought to be turned into C (JNI), but that's
          somewhat more complicated. :)

          Comment

          • The Ghost In The Machine

            #6
            Re: C# to JAVA converter?

            In comp.lang.java. advocacy, Tim Tyler
            <tim@tt1.org>
            wrote
            on Tue, 5 Aug 2003 21:06:22 GMT
            <HJ5zyM.GzL@bat h.ac.uk>:[color=blue]
            > In comp.lang.java. advocacy phoenix <patient0@skyne twork.be> wrote:
            >
            >:> http://www.stryon.com/ has more info about this.
            >
            >: Did you try it? [...]
            >
            > No - I have no MSIL.[/color]



            should take care of that.

            --
            #191, ewill3@earthlin k.net
            It's still legal to go .sigless.

            Comment

            • asj

              #7
              Re: C# to JAVA converter?

              The Ghost In The Machine wrote:[color=blue][color=green]
              > >
              > >: Did you try it? [...]
              > >
              > > No - I have no MSIL.[/color]
              >
              > http://www.go-mono.net[/color]


              LOL! their license even notes that they could radically change the thing
              AT ANY TIME if microsoft suddenly PULLS THE RUG from under them with its
              patents on .net....what idiot would base their work on a foundation as
              legally creaky as that?

              microsoft's cash cow is windows and ms office - it would make absolutely
              no sense for them to give their developers the freedom to use linux, and
              you can bet they'll jerk the noose when the time comes and (1) they
              realize most developers aren't going to be fooled by mono; (2) mono
              starts cutting into their bottom line - selling new windows server
              licenses.

              microsoft's relationship with open source is frigid at best....

              on the other hand, Java is dominated nowadays by links to open
              source...there are literally TONS of open source java implementations
              (including tools like IDEs, APIs, libraries, etc), and apache (the open
              source organization behind the dominant web server, apache) just
              announced it would create the world's second open source j2ee
              application server (after JBOSS).

              there are even pressures to open source the ENTIRE standard j2se!

              Comment

              • asj

                #8
                Re: C# to JAVA converter?

                asj wrote:[color=blue]
                > on the other hand, Java is dominated nowadays by links to open
                > source...there are literally TONS of open source java implementations
                > (including tools like IDEs, APIs, libraries, etc), and apache (the open
                > source organization behind the dominant web server, apache) just
                > announced it would create the world's second open source j2ee
                > application server (after JBOSS).
                >
                > there are even pressures to open source the ENTIRE standard j2se![/color]

                not that java and open source always stand eye to eye.

                i happened upon this really HILARIOUS javablog about yesterday's
                decision by apache to create a new open source j2ee app server (which
                had previously had only 1 open source example, JBOSS).

                the title, appropriately enough, is:

                "JBoss takes it up the as*":
                This website is for sale! freeroller.net is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, freeroller.net has it all. We hope you find what you are searching for!

                Comment

                • luke

                  #9
                  Re: C# to JAVA converter?

                  asj <k@xx.com> wrote in message news:<3F2FE716. 271D@xx.com>...[color=blue]
                  > just read about a person who did work in C# then decided to switch to
                  > java (because he wanted to run his apps in multiple platforms, inc
                  > linux). he mentioned that someone should market a c# to Java converter.
                  >
                  > is there any such thing today?
                  >
                  > there is almost surely no market for it right now (since there are not
                  > that many mature c# projects around yet), but it might be something to
                  > look at in the medium term future when movements from c# to java
                  > accelerate.[/color]

                  There are probably no such products on the market today. Most C#
                  projects I know of are either "evaluation " ones or are very recent in
                  terms of finalization. I will agree though that the market for such
                  might expand when C# projects are more prevalent. On the other hand,
                  the recent job postings seems to indicate the time when this happens
                  might be quite far off...the vast majority of .NET projects are
                  actually ASP.NET or VB.NET...perhap s someone should concentrate on
                  getting automated converters for these?

                  Comment

                  • asj

                    #10
                    Re: C# to JAVA converter?

                    luke wrote:[color=blue]
                    > There are probably no such products on the market today. Most C#
                    > projects I know of are either "evaluation " ones or are very recent in
                    > terms of finalization. I will agree though that the market for such
                    > might expand when C# projects are more prevalent. On the other hand,
                    > the recent job postings seems to indicate the time when this happens
                    > might be quite far off...the vast majority of .NET projects are
                    > actually ASP.NET or VB.NET...perhap s someone should concentrate on
                    > getting automated converters for these?[/color]


                    agreed. it will take a while (if ever) for c# to accumulate enough
                    market to even consider such a project, but it's getting there:

                    SkillMarket - Languages
                    A daily look at in-demand tech skills


                    Programming Language Usage Graph

                    Comment

                    • The Ghost In The Machine

                      #11
                      Re: C# to JAVA converter?

                      In comp.lang.java. advocacy, asj
                      <asj@xzxx.com >
                      wrote
                      on Thu, 07 Aug 2003 00:47:07 -0400
                      <3F31D9CB.3FF@x zxx.com>:[color=blue]
                      > The Ghost In The Machine wrote:[color=green][color=darkred]
                      >> >
                      >> >: Did you try it? [...]
                      >> >
                      >> > No - I have no MSIL.[/color]
                      >>
                      >> http://www.go-mono.net[/color]
                      >
                      >
                      > LOL! their license even notes that they could radically change the thing
                      > AT ANY TIME if microsoft suddenly PULLS THE RUG from under them with its
                      > patents on .net....what idiot would base their work on a foundation as
                      > legally creaky as that?[/color]

                      Such an action seems incompatible with "embrace, extend, extinguish".
                      To be sure, .NET was created by Microsoft, but it is also now a
                      partial standard (the CLI is, anyway). How a standard can be
                      patented is beyond me personally.

                      This could get weird.
                      [color=blue]
                      >
                      > microsoft's cash cow is windows and ms office - it would make absolutely
                      > no sense for them to give their developers the freedom to use linux, and
                      > you can bet they'll jerk the noose when the time comes and (1) they
                      > realize most developers aren't going to be fooled by mono; (2) mono
                      > starts cutting into their bottom line - selling new windows server
                      > licenses.
                      >
                      > microsoft's relationship with open source is frigid at best....[/color]

                      Positively cryogenic. :-)
                      [color=blue]
                      >
                      > on the other hand, Java is dominated nowadays by links to open
                      > source...there are literally TONS of open source java implementations
                      > (including tools like IDEs, APIs, libraries, etc), and apache (the open
                      > source organization behind the dominant web server, apache) just
                      > announced it would create the world's second open source j2ee
                      > application server (after JBOSS).[/color]

                      Sun's relationship with JBoss is cool at best, but AFAICT tolerant
                      to some extent, although I'm not at all sure what's happening
                      regarding the split.
                      [color=blue]
                      >
                      > there are even pressures to open source the ENTIRE standard j2se![/color]

                      It's partially open-source already, although the license
                      is a fairly stringent one. However, any debugger showing
                      source code can look at the Java implementation, and the
                      src.zip is available, just not modifiable (legally, anyway)
                      for commercial purposes. (Whether it includes everything
                      non-native is also not horribly clear -- native is a
                      different issue and I wouldn't expect the source for that.
                      At least, not without Java becoming fully GPL or perhaps LGPL.)

                      --
                      #191, ewill3@earthlin k.net
                      It's still legal to go .sigless.

                      Comment

                      • Dr Chaos

                        #12
                        Re: C# to JAVA converter?

                        he Ghost In The Machine <ewill@sirius.a thghost7038suus .net> wrote:[color=blue]
                        > In comp.lang.java. advocacy, asj
                        ><asj@xzxx.co m>
                        > wrote
                        > on Thu, 07 Aug 2003 00:47:07 -0400
                        ><3F31D9CB.3FF@ xzxx.com>:[color=green]
                        >> The Ghost In The Machine wrote:[color=darkred]
                        >>> >
                        >>> >: Did you try it? [...]
                        >>> >
                        >>> > No - I have no MSIL.
                        >>>
                        >>> http://www.go-mono.net[/color]
                        >>
                        >>
                        >> LOL! their license even notes that they could radically change the thing
                        >> AT ANY TIME if microsoft suddenly PULLS THE RUG from under them with its
                        >> patents on .net....what idiot would base their work on a foundation as
                        >> legally creaky as that?[/color]
                        >
                        > Such an action seems incompatible with "embrace, extend, extinguish".
                        > To be sure, .NET was created by Microsoft, but it is also now a
                        > partial standard (the CLI is, anyway). How a standard can be
                        > patented is beyond me personally.[/color]

                        it is amazing chutzpah, but Microsoft did it. They just declared
                        the entire structure of their libraries to be patentable and went out
                        and was awarded a patent. i saw it on line. it is real.

                        this wasn't even for a slightly clever algorithm to "do" something!
                        [color=blue]
                        >
                        > This could get weird.[/color]

                        if it were weird at least it would be entertaining.

                        it is not.

                        Comment

                        Working...