Home » Software

Mono (software)

16 March 2008 1 views 6 Comments

Mono (software)Mono is a project led by (formerly by Ximian) to create an Ecma standard compliant . compatible set of tools, including among others a C# compiler and a Common Language Runtime. Mono can be run on , , , OS , Solaris and systems.

has a version of . available for FreeBSD, and OS called the CLI (Rotor). ’s license may be insufficient for the needs of the community (it explicitly forbids commercial use). The Mono project has many of the same goals as the Portable. project.

The Mono runtime contains a just-in-time compilation (JIT) engine for a number of processors: x86, SPARC, , , S390 (in 32-bit and 64-bit mode), and x86-64, IA64 and SPARC for 64-bit modes. The runtime will perform a just-in-time compilation to the machine’s native code which is cached as the application runs. It is also possible to precache the native image before execution. For other supported systems not listed, an interpreter performs each byte code one by one without compiling the image to native code. In almost every condition the JIT method will outperform the interpreted method.

History

Miguel de Icaza became interested in . as soon as the . documents came out in December 2000. After looking at the byte code interpreter, he realized that there were no specifications for the metadata. In February 2001 de Icaza asked for the missing information on the metadata file format in the . mailing lists and at the same time started to work on a C# compiler written in C#, as an exercise in C#. In April 2001 ECMA published the missing file format, and at GUADEC (April 6 – April 8, 2001) de Icaza demonstrated the features of his compiler (which by then was able to parse itself).

Internally at Ximian there was much discussion about building tools to increase productivity: making it possible to create more applications in less time and therefore reduce time and cost of development. After a feasibility study, which clearly stated that it was possible to build the , Ximian reassigned staff from other projects and created the Mono team. Lacking the humanpower to build a full . replacement on their own, they formed the Mono open project, which was announced on July 19, 2001 at the O’Reilly conference.

Almost three years later, on June 30, 2004 Mono 1.0 was released.

The logo of Mono features a monkey, mono being the Spanish word for monkey. The name relates to the monkeys and apes that are a central theme within Ximian, such as the Project foot, the Bonobo project (a OLE/COM like library used in created by Ximian) which is a species of ape related to chimpanzees and humans, the Evolution (formerly Ximian Evolution) Project, and the Ximian logo itself. The Mono FAQ claims that the origin of the name is “We like monkeys.” For what it may be worth, “Ximian” is near-homophone of simian.

Current Status and Roadmap

Mono’s current version is 1.9 (as of March 14, 2008).[1] This version provides the API of the . as well as support for C# 2.0 and Visual Basic. and C# 3.0. to objects and XML is part of the distribution, but not LING to C# 3.0 is now the default mode of operation for the C# compiler. While Forms 1.1 is supported, Forms 2.0 implementation is not complete. It is now possible to build and use the DLR with Mono.[1]

Implementation of . 3.0 is under development under an experimental Mono subproject called Olive, but the of a Mono supporting . 3.0 is still not planned yet.[2]

An open implementation of Silverlight, called Moonlight, is now underway and is included in Mono 1.9.[3] The Silverlight 2.0 . classes are implemented as part of the Olive module. Moonlight shipped as part of Mono 1.2.6 release.

Mono Component

Mono consists of three groups of components:

1. components
2. Mono// development stack
3. compatibility stack.

The components include the C# compiler, the machine, and the base class libraries. These components are based on the Ecma-334 and Ecma-335 standards, allowing Mono to provide a standards compliant, free and open CLI machine.

The Mono// development stack provide tools for application development while leveraging existing and Free and Open libraries. These include: # for development, libraries for working with the Gecko rendering engine, integration libraries, connectivity libraries, a stack, and the XML schema language RelaxNG. # allows Mono applications to integrate into the as native applications. The libraries provide connectivity to , SQLite, PostgreSQL, Firebird, Open Connectivity (ODBC), (MSSQL), Oracle, the object-relational db4o, and many others. The Mono project tracks developing components at its .

The compatibility stack provides a pathway for porting . applications to . This group of components include ADO., ASP., and .Forms, among others. As these components are not covered by ECMA standards, some of them remain subject to patent fears and concerns.

Architecture

Class library

The class library provides a comprehensive set of facilities for application development. They are primarily written in C#, but thanks to the Common Language Specification they can be used by any . language. The class library is structured into namespaces, and deployed in libraries known as assemblies. When we speak of the . , we are primarily referring to this class library.

Namespaces and assemblies

Namespaces are a mechanism for logically grouping similar classes into a hierarchical structure. This prevents naming conflicts. The structure is implemented using dot-separated words, where the most common top-level namespace is , such as .IO and . (a complete list can be found in Mono Documentation). There are other top-level namespaces as well, such as Accessibility and . A user can define a namespace by placing elements inside a namespace block.

Assemblies are the physical packaging of the class libraries. These are .dll files, just as (but not to be confused with) Win32 libraries. Examples of assemblies are mscorlib.dll, .dll, .Data.dll and Accessibility.dll. Namespaces are often distributed among several assemblies and one assembly can be composed of several files.

Common Language Infrastructure and Common Language Specification

The Common Language Infrastructure (CLI), or more commonly known as the Common Language Runtime, is implemented by the Mono executable. The runtime is used to execute compiled . applications. The common language infrastructure is defined by the ECMA standard ECMA-335. To run an application, you must invoke the runtime with the relevant parameters.

The Common Language Specification (CLS) is specified in chapter 6 of ECMA-335 and defines the interface to the CLI, such as conventions like the underlying types for Enum. The Mono compiler generates an image that conforms to the CLS. This is the Common Intermediate Language. The Mono runtime takes this image and runs it. The ECMA standard formally defines a library that conforms to the CLS as a .

Managed and unmanaged code

Within a native ./Mono application, all code is managed; that is, it is governed by the CLI’s style of management and thread safety. Other . or Mono applications can use legacy code, which is referred to as unmanaged, by using the .Runtime.InteropServices libraries to create C# bindings. Many libraries which ship with Mono use this feature of the CLI, such as #.

Related projects

There exist lots of projects related to Mono that extend Mono and allows developers to use Mono in their development environment. These projects include:

* Cocoa# [1] wrappers around the native OS toolkit (Cocoa).
* Gecko#, bindings for embedding the layout engine used in (Gecko).
* #, C# wrappers around the underlying + and libraries, written in C.
* Tao, a collection of graphics and bindings (OpenGL, SDL, Glut, Cg).
* MoMA, Mono Migration Analyzer (MoMA) tool.

Mono Develop

MonoDevelop is a free integrated development environment primarily designed for C# and other . languages such as Nemerle, Boo, and Java (via IKVM.). MonoDevelop was originally a port of SharpDevelop to #, but it has since evolved to meet the needs of Mono developers. The IDE includes class management, built-in help, code completion, Stetic (a designer), project support, and an integrated debugger.

The MonoDoc provides access to API documentation and code samples. The documentation uses wiki-style content management, allowing developers to edit and improve the documentation

Licence

Mono is licensed by , similar to other products such as Qt and the Application Suite. Mono’s C# compiler and tools are released under the General Public License (GPL), the runtime libraries under the Lesser General Public License () and the class libraries under the MIT License. These are all free and open- licenses and hence Mono is free and open- . Developers contributing code to Mono upstream must agree to distribute their code to under a license that allows to relicense the code under other terms. This practice is similar to copyright assignment agreements used in other free and open projects (used in many projects and by ), however, this method allows the developer to retain copyright of the original work while still preserving ’s ability to commercially license Mono for specific customers that require different terms than what is provided in general release versions (such as running Mono in embedded environments).

Mono and ’s patents

Mono’s implementation of those components of the . stack not submitted to the ECMA for standardization has been the of patent violation concerns for much of the life of the project. In particular, discussion has taken place about whether could destroy the Mono project through patent suits.

The base technologies submitted to the ECMA, and therefore also the /-specific parts, may be non-problematic. The concerns primarily relate to technologies developed by on top of the . , such as ASP., ADO. and Forms, i.e. parts composing Mono’s compatibility stack. These technologies are today not fully implemented in Mono and not required for developing Mono-applications. Not providing patented capabilities would weaken interoperability, but it would still be possible to provide the free / open community with good development tools, which is the primary reason for developing Mono. This has been summed up by Richard Stallman

Mono is a free implementation of ’s language C#. has declared itself our enemy and we know that is getting patents on some features of C#. So I think it’s dangerous to use C#, and it may be dangerous to use Mono. There’s nothing wrong with Mono. Mono is a free implementation of a language that users use. It’s good to provide free implementations. We should have free implementations of every language. But, depending on it is dangerous, and we better not do that.

On November 2, 2006, and announced a joint agreement whereby agreed to not sue ’s customers for patent infringement. According to Mono project leader Miguel de Icaza,[7] this agreement extends to Mono but only for developers and customers. It was criticized by the free community because it violates the principles of giving equal rights to all users of a particular program (see and their Patent Agreement with ).

developed with Mono

The following are programs that use the Mono API and C#.

* Banshee management and playback for
* Beagle is a search tool.
* Blam! is an RSS- aggregator especially good for reading Planet-feeds like Planet .
* Diva editing application for .
* Do application launching (similar to QuickSilver).
* F-Spot is a management program.
* iFolder 3 (by ) lets you share files across multiple and with other users through peer-to-peer or ’s groupware products.
* libsecondlife is an open implementation of the Second Life networking protocol written in C# that will run under Mono or ..
* MonoDevelop is an IDE for creating Mono applications. It was originally a port of SharpDevelop to #, but is today developed on its own. A installer is not provided, but it can be built and run on [8].
* Muine is a player with a user interface designed to be intuitive, developed by Jorn Baayen who also worked on Rhythmbox.
* Second Life, the world created by Linden Lab, will in the be compiling all of the scripts in their own Linden Scripting Language (LSL) to CIL. They will use an embedded Mono runtime to execute the CIL.
* Tomboy is a note-taking application which uses a wiki-like linking .
* Unity is a engine using Mono for scripting.
* MonoTorrent (previously named bitsharp) a library written with mono

:

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Related posts

6 Comments »

  • Penis Exercises » Mono (software) said:

    [...] enthusiastic crochetoholicnHNET transmitting lists and at the same happening started to effect on a C# information script in C#, as an training in C#. In Apr 2001 ECMA publicised the abstracted start format, and at GUADEC (April 6 – Apr 8, 2001) de Icaza demonstrated the … [...]

  • Alcohol Posts » Mono (software) said:

    [...] webmaster wrote a fantastic post today on “Mono (software)”Here’s ONLY a quick extractRelated posts. Wine (Wine is not emulator) (2); What is Virtualization? (0); SuSE (1); Sun Microsystems Announces Agreement to Acquire innotek, Expanding Sun xVM Reach to the Developer Desktop (2); Spyware - Is somebody watching you? (0) [...]

  • Mono (software) said:

    [...] Mobile Marketing Watch - The Pulse Of The Mobile Marketing Community wrote an interesting post today onHere’s a quick excerpt Mono is a project led by Novell (formerly by Ximian) to create an Ecma standard compliant .NET compatible set of tools, including among others a C# compiler and a Common Language Runtime. Mono can be run on Linux, BSD, UNIX, Mac OS X, Solaris and Windows operating systems. Microsoft has a version of .NET available for FreeBSD, Windows and Mac OS X called the Shared Source CLI (Rotor). Microsoft’s shared source license may be insufficient for the needs of the community (it explicitly forbids co [...]

  • Exercise Equipment » Mono (software) said:

    [...] sagisttnHIt was criticized by the liberated cipher agreement because it violates the principles of heritage coequal rights to every users of a assets information (see Novell and their Patent Agreement with Microsoft). Software developed with Mono … [...]

  • UNIX Coding School » Blog Archive » unix code [2008-03-15 21:52:51] said:

    [...] Mono (software) By webmaster These include: Gtk# for GUI development, Mozilla libraries for working with the Gecko rendering engine, Unix integration libraries, database connectivity libraries, a security stack, and the XML schema language RelaxNG. … Tech. info. news @inertz.org - http://inertz.org [...]

  • T-Enterprise said:

    Tried it out - excellent.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.