C# to JAVA converter?

  • Thread starter Thread starter asj
  • Start date Start date
A

asj

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.
 
asj said:
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.

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

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...
 
phoenix said:
Did you try it? I wonder if it can handle unsafe code.

Unsafe code really ought to be turned into C (JNI), but that's
somewhat more complicated. :)
 
The said:
: Did you try it? [...]

No - I have no MSIL.

http://www.go-mono.net


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!
 
asj said:
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!

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*":
http://www.freeroller.net/page/fate/20030806#jboss_takes_it_up_the
 
asj said:
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.

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...perhaps someone should concentrate on
getting automated converters for these?
 
luke said:
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...perhaps someone should concentrate on
getting automated converters for these?


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
http://mshiltonj.com/sm/categories/languages/

Programming Language Usage Graph
http://www.cs.berkeley.edu/~flab/languages.html
 
In comp.lang.java.advocacy, asj
<[email protected]>
wrote
The said:
: Did you try it? [...]

No - I have no MSIL.

http://www.go-mono.net


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?

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.
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....

Positively cryogenic. :-)
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).

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.
there are even pressures to open source the ENTIRE standard j2se!

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.)
 
he Ghost In The Machine said:
In comp.lang.java.advocacy, asj
<[email protected]>
wrote
The said:
: Did you try it? [...]

No - I have no MSIL.

http://www.go-mono.net


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?

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.

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!
This could get weird.

if it were weird at least it would be entertaining.

it is not.
 
Back
Top