Release Notes Mono 2.2
Mono 2.0 is a portable and open source implementation of the .NET framework for Unix, Windows, MacOS and other operating systems.
Table of contents
Changes since Mono 2.0
This documents the changes since Mono 2.0
The code generation engine has been replaced from tree-based representation that we used for 1.0.x, 1.2.x, 1.9 and 2.0 releases to a representation that is better suited for advanced optimizations, the Linear IL engine.
The new engine already outperforms the old engine in many computationally intensive tasks.
Generic sharing is now turned on in all cases. You can control the sharing setup using the MONO_GENERIC_SHARING environment variable.
Generic sharing is now supported on ARM.
Ahead of Time Compilation
Support for Full Ahead of Time Compilation, generic sharing, and static linking is now available.
Support for monitoring the runtime internals is now available through a new PerformanceCounters implementation.
A new GUI tool `mperfmon’ is available to allow developers and administrators to monitor the system performance.
It is now possible to load code externally into a Mono process to debug or augment code live.
A new assembly: Mono.Management wraps this functionality.
SIMD support in Mono
Support for SIMD instructions has been added to the Mono JIT. See this page for more information about the SIMD support.
The Documentation for this library includes the API-level description of the new data types introduced in this new release.
The performance benefits of using these SIMD-aware vector types is anywhere between 1.5x to 10x depending on the use cases.
A new Mono.CSharp.Evaluator class and library is available to allow developers to embed the C# compiler into their own applications. This provides C# in a Compiler-Service modality that developers can use to extend their applications.
This can be used to load scripts written in C# dynamically, but executing at the same speed as C# compiled pages or to add dynamic features to your application or even adding a console to debug your application on a live deployment.
A new interactive shell for C# is available, the command is called “csharp”, more details are available on the csharp manual page and on the CsharpRepl page.
The C# shell currently requires Mono for any C# 2.0 and 3.0 support. Version 1.0 will also run on the .NET Framework.
The shell has support for attaching to existing processes, so it is possible to use the csharp shell to debug live applications.
A GUI version of the shell,
gsharp is also included in the mono-tools package.
Our compiler will now replace any references to the empty string with a reference to the String.Empty field (more efficient).
The C# compiler now defaults to warning level 4 (the previous default was level 3).
Compiler parsing errors detection and parser error recovery has been improved which should lead to much cleaner syntax error reporting.
The regex interpreter used by the System.Text.RegularExpressions package has been rewritten to be more efficient.
Additionally, a regex-to-CIL compiler has been implemented which provides dramatically better performance at the cost of increased setup time, this compiler is activated when RegexOptions.Compiled is passed to the Regex class constructors. The old interpreter is still available, and can be used by defining the MONO_OLD_RX env variable.
In previous versions, Mono always interpreted regular expressions.
New Routing handler in ASP.NET 3.5 SP1 has been implemented. This includes ASP.NET Abstractions layer and will be used for ASP.NET MVC.
Nearly 200 reported bugs have been fixed since the 2.0 release.
Calling Application.EnableVisualStyles () will now use native rendering on Windows.
Our static code analyzer has been updated with new filtering options (severity, confidence, number of defects), 32 new rules (total 183) and many enhancements and fixes to existing rules. Full release notes are available on here.
Mono on Windows
The Mono Windows installer has been updated to include GTK# 2.12.7.
It is now possible to cross-compile Mono for Windows using Linux and MinGW.
Various upgrades to the Console implementation, it will now respond appropriately to changes on terminal sizes.
Source Code Snippets
Some libraries are too small to qualify for an assembly and are more conveniently used in source code form. With Mono 2.2 we debut code snippets, these are used by copying the code into your application. For example, to use Mono.Options parsing library, you would do:
cp `pkg-config --variable=Sources mono-options` .
Mono.Options and Mono.DataConvert are now available in this form.
Jonathan Pryor’s Mono.Options library is now included as a Source Code Snippet that you can integrate into your application.
This is a command line editor that replaces Console.ReadLine() for interactive applications. It provides editing in the command line and support for history
The Mono DataConvert library provides encoding and decoding of bytes, words, strings and other data types to and from various CPU endianness.
The monodoc module is no longer distributed, instead the documentation has been merged directly into Mono (Jonathan)
Installing Mono 2.2
Binary Packages and Source Code Downloads:
Source code and pre-compiled packages for Linux, Solaris, MacOS X and Windows is available from our web site from the Downloads section.
Quick source code installation:
If we have no packages for your platform, installing from source code is very simple.
Compile libgdiplus to support System.Drawing:
$ tar xzf libgdiplus-2.2.tar.gz $ cd libgdiplus-2.2 $ ./configure $ make $ make install
Then compile Mono itself:
$ tar xzf mono-2.2.tar.gz $ cd mono-2.2 $ ./configure $ make $ make install