All about the Scala.Net Compiler
|
jdk2ikvm
and scala.tools.unparse
jdk2ikvm
jdk2ikvm
(April 2011) Do-it-yourself files:
patches1.zip
,
patches2.zip
ikvmc
works (September 2010)jdk2ikvm
source-to-source converter
GenMSIL
(August 2010)GenMSIL
(April 2010)ILPrinterVisitor
ready for Generics (June 2010)GenBinMSIL
) via IKVM.Reflection
(October 2011)TypeParser
and GenMSIL
handle properties, delegates, and events (July 2010)jdk2ikvm
)
to automate the migration of Scala sources from JDK to .NET (once migrated, those sources can be compiled by Scala.NET against the IKVM library
to obtain .NET assemblies). Our experience with this tool is based on porting the Scala compiler itself and the Scala library.
However, the API migration that jdk2ikvm
performs is general in nature, and thus it would be interesting to field-test it
with other large Scala applications (for a non-exhaustive list, see a Scala Corpus).
"Field testing" means more than just running jdk2ikvm
and hoping for the best,
it includes for example running the (migrated) test suite of the application on .NET.
An expected by-product of these case studies are additional conversion rules,
gathered for JDK APIs previously not addressed by the conversion.
scala.tools.nsc.interactive.CompilerControl
):