Hacker News new | ask | show | jobs
by Estragon 5115 days ago
OT, but all this language comparison got me wondering: has anyone implemented C# on the JVM? :-)
1 comments

yes, Mainsoft Grasshopper. But given that the CLR is superset of JVM features, you can't easily convert .NET MSIL to Javabyte code (a few research projects tried but it's not pratical). Grasshopper did it at a language level and wrote a C# to Java bytecode compiler.

However going the other direction is really easy and straight forward. IKVM.NET has been running Java on top of .NET for years.