3 ms·
I know nothing of C#, but there are a lot of comparisons to Java in this thread. Does C# have anything comparable to the JVM? That is, does anything compile to
by faitswulff 8y ago
I know nothing of C#, but there are a lot of comparisons to Java in this thread. Does C# have anything comparable to the JVM? That is, does anything compile to C# bytecode, if there is such a thing?
- josephcooney 8y agoYes, since the get-go .NET has targeted a VM called the CLR (the common language runtime). The biggest difference between the JVM and the CLR (initially) was that Microsoft designed the CLR to be mutli-language, whereas the JVM was written "just for java".
- mr_custard 8y agoYes. The CLR (Common Language Runtime) is like the JVM and support multiple languages, hence the name. C# compiles to Common Intermediate Language (CIL) which is then assembled into a form of bytecode.
- twodave 8y agoTIL MSIL is now called CIL. What the hell!
- zokier 8y agoIt has been called CIL close to a decade now..
- pauldino 8y agoThe first edition of ECMA-335 was published December 2001, so now almost two!
- twodave 8y agoYep, that was the most surprising thing to me. In my circles people have just continued calling it MSIL all this time and I’ve never questioned it or needed to research anything MSIL related so I guess it slipped past me all this time. Hence the “what the hell!”
- moron4hire 8y agoMSIL is Microsoft's implementation of the open standard CIL, which has been open for over a decade, and is how Mono even works.
- twodave 8y agoThat explains a lot.
- Sammi 8y agoMicrosoft don't like to admit it but C# and the CLR are their direct response loosing a lawsuit to Sun taht made them stop developing their own versions of Java and the JVM. So Microsoft got the luxury of being able to go back to the drawing board and try to "do Java right". At least with the knowledge gained from developing Java in the 90s.
- jacques_chester 8y agoPlus they hired a veteran language designer to lead the effort -- Anders Hejlsberg. Compared to Java they were unapologetic in rapidly iterating the language and much more aggressive about borrowing ideas from research. Arguably it came full circle in Java 8, which was a big update to the language.