Comments
Richard Davies wrote: The UK has a good crop of technology pioneers in cloud computing - for example ElasticHosts, FlexiScale, Flexiant, OnApp - and also some strong government initiatives such as G-Cloud. We will have to see whether this kind of technical leadership converts into swift mass-market adoption or not.
Cloud Expo on Google News


2008 West
DIAMOND SPONSOR:
Data Direct
SOA, WOA and Cloud Computing: The New Frontier for Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
GOLD SPONSORS:
Appsense
User Environment Management – The Third Layer of the Desktop
Cordys
Cloud Computing for Business Agility
EMC
CMIS: A Multi-Vendor Proposal for a Service-Based Content Management Interoperability Standard
Freedom OSS
Practical SOA” Max Yankelevich
Intel
Architecting an Enterprise Service Router (ESR) – A Cost-Effective Way to Scale SOA Across the Enterprise
Sensedia
Return on Assests: Bringing Visibility to your SOA Strategy
Symantec
Managing Hybrid Endpoint Environments
VMWare
Game-Changing Technology for Enterprise Clouds and Applications
Click For 2008 West
Event Webcasts

2008 West
PLATINUM SPONSORS:
Appcelerator
Get ‘Rich’ Quick: Rapid Prototyping for RIA with ZERO Server Code
Keynote Systems
Designing for and Managing Performance in the New Frontier of Rich Internet Applications
GOLD SPONSORS:
ICEsoft
How Can AJAX Improve Homeland Security?
Isomorphic
Beyond Widgets: What a RIA Platform Should Offer
Oracle
REAs: Rich Enterprise Applications
Click For 2008 Event Webcasts
SYS-CON.TV
Top Links You Must Click On


Bringing the CLI to Open Source
Ximian's Mono Project means you have a choice

Those who like .NET may find themselves lamenting, "I still have to deploy applications on the Windows operating system. I am still locked to one vendor - Microsoft." If this sounds like you, Ximian's Mono project might be the answer. The Mono project was started in July 2001 by Miguel de Icaza, cofounder of Ximian, with the aim of bringing the Common Language Infrastructure platform to free systems.

Mono is an open source implementation of the Microsoft .NET Framework. It has a compiler for C#, an ECMA-compatible runtime engine for the Common Language Infrastructure, and class libraries. Mono implements various technologies developed by Microsoft that have now been submitted to the ECMA for standardization. The Mono project enables building and deploying cross-platform .NET applications. For example, a solution created using C# can be executed in Windows 2000 and also in Linux, Windows, Solaris, FreeBSD, HP-UX, and Mac OS X using Mono.

Architecture
Mono's core components are shown in Figure 1.

 
  • C#, logo, and basic compiler: These compilers generate code in a Common Intermediate Language (CIL), which is an intermediate representation of a compiled program and is easy to compile to native code using just-in-time (JIT) engines. Compiled code can be arranged in assemblies, which are a fundamental unit of deployment. The C# compiler is written in C# and is highly portable.
  • Class libraries: Mono includes a set of class libraries that can work with any language that works on Common Language Runtime. Core class libraries include collections, XML and Schema, database access, and file system access. These libraries use GNOME infrastructure components (GUI toolkit, XML libraries, CORBA implementation, printing architecture, and imaging system). The class library is structured into namespaces and deployed in assemblies. The top-level namespace for most of the .NET Framework is System.
  • Virtual machine: A virtual machine for the common intermediate language (CIL) byte codes is also included. It also has a JIT compiler for x86 CPUs. The Mono runtime provides CIL image loading, verification, and execution along with garbage collection, thread and I/O support, interaction with existing libraries (P/Invoke), and a security system.
Development
The good news about Mono is that you can choose from a variety of IDEs. You can use an open source IDE like Eclipse or #developer, a free IDE for C# and VB.NET projects on Microsoft's .NET platform. Eclipse is a very important project for future application development in this framework; it already has a basic C# plug-in that implements auto-indenting and syntax highlighting for this language. In addition, Eclipse can use the Gtk2 toolkit on GNU/Linux. This is great for GNOME users because it adapts better to the environment.

You can also use Visual Studio .NET, which provides great features for developing applications in C#. Programs written using Visual Studio .NET can be compiled and executed using Mono.

Other tools available to help in developing with Mono are NUnit, NAnt, NGen, and the Mono debugger. NUnit is a unit-testing framework for all .NET languages. Initially ported from JUnit, the current version, 2.1, is the second major release of xUnit-based unit testing tools for Microsoft .NET. It is written entirely in C# and has been completely redesigned to take advantage of many .NET language features. NAnt is a free .NET build tool that's very much like Ant. NGen is under development and will create native images from a managed assembly. The Mono debugger's purpose is to help developers in debugging Mono applications.

Documentation of these tools is available in MonoDoc, a documentation browser.

Advanced Features

  • ASP.NET: Mono, together with Apache, brings ASP.NET to Linux . This has opened the market for creating ASP.NET controls for Linux developers as well. ASP.NET can currently be deployed using either XSP Web server or Apache Web server with mod_mono. Finally, Mono makes writing dynamic Web pages using C++ or Logo possible.
  • Web services: Mono implements the same set of classes that have been authored in the .NET Framework. Mono provides many tools that can expedite the development of Web services, such as "wsdl" to create a local class from a WSDL file, and an XML Schema definition tool to convert XSD to XDR, XML to XSD, XSD to dataset, XSD to classes, and classes to XSD.
  • ADO.NET: ADO.NET data providers like IBM DB2, Oracle, Microsoft SQL Server, Sybase, MySQL, ODBC, and OLEDB are available in Mono, but many other data providers are available through various open source projects. SAP DB, Informix, and FoxPro are some of the databases that are supported only via ODBC and OLEDB. Main tools for ADO.NET include SQL# command-line query and SQL# for Gtk#. SQL# is a command-line tool to test connection strings, execute SQL statements, and save output in a text, HTML, or XML file. SQL# for Gtk# is a graphical database query tool with a toolbar and menu for various tasks.
  • Windows forms: System.Windows is Microsoft's GUI toolkit shipped with the .NET Framework. Mono implements the Win32 API using wineLIB.
  • Security: Mono implements many assemblies that implement .NET Framework cryptography. Mono makes X.509 certificates, XML digital signatures, cryptographic algorithms, and code signing available in 100% managed code.
  • Mono for GNOME applications: GNOME is a popular multiplatform free desktop environment. Mono provides Gtk#, which can be used by C# to create GNOME applications.
Advantages
Mono provides language and platform independence. It supports GNOME, KDE, and Windows desktop environments. It allows writing applications in many languages, so existing modules written in many languages can be used to create new applications with less effort using contract/interface-based programming. Currently Java is not supported. It will be interesting to see if the Mono project supports Java in the future, which will allow using C# components in Java and vice versa. The Mono runtime supports XPCOM on Unix systems and COM on Windows. The embedded Mono runtime in applications makes it possible to call C functions from CIL and CIL functions from C code. Mono has rich libraries for cryptography, HTTP, networking, directory services, and others. Garbage collection and SOAP support are faster than Java, and SandBox provides better security. Because of all these features, Mono can play a major role in helping Linux succeed as a desktop operating system.

Mono supports ahead-of-time compilation to convert developers' code to native code, which is done in Microsoft with ngen.exe tool.

The Mono project integrates with open source projects like Apache and makes open source development easier. The Mono C# compiler is released under the terms of the GNU GPL; the runtime libraries are under the GNU Library GPL; and the class libraries are released under the terms of the MIT X11 license. This permits creating proprietary applications using Mono.

The Mono project community is also growing, which ensures quick bug fixes. Ximian support for the Mono project is expected to continue in the future.

Interoperability
Writing interoperable applications between Microsoft .NET and Mono will remain challenging because ASP.NET, ADO.NET, Windows.Forms, and many other higher-level blocks are not part of ECMA standard. Many .NET class libraries have not been implemented completely in Mono. This means that it is very likely that when Mono is released, applications written for .NET may not be portable to Mono.

Microsoft's .NET strategy includes many other efforts such as Windows applications; Passport-centralized, single sign-on systems, and others. These efforts are not part of the Mono project.

To make applications more interoperable:

  • Avoid use of Microsoft.* packages
  • Avoid absolute paths
  • Use 100% .NET assemblies
  • Use Gtk# rather than System.Windows.Forms
  • Do not use the Microsoft registry
Mono brings Microsoft and open source projects closer. Mono is new, and its success will depend on many other open source initiatives, including the Eclipse plug-in to compile the C# code using the Mono C# compiler, C# code generator (XSP) for ASP.NET, and so on. In the future, it will be interesting to see if C# developers will be able to use the Java API (Struts, log4J, etc.) to create an application and deploy it in J2EE application servers.
About Deepak Mittal
Deepak Mittal is a technology evangelist. His expertise is in automating business processes using workflow engines, Web services, e-form, data integration, business object modeling, and rule engines.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

Enterprise Open Source Magazine Latest Stories . . .
Apache Deltacloud, the Red Hat-contributed ReSTful API that abstracts differences between clouds so services on any cloud can be managed – provided of course there’s a driver – has graduated from the Apache Foundation’s incubator and is now a full-fledged Top-Level Project (TLP). The...
With Cloud Expo 2012 New York (10th Cloud Expo) just four months away, what better time to start introducing you in greater detail to the distinguished individuals in our incredible Speaker Faculty for the technical and strategy sessions at the conference... We have technical and st...
AMD said late Tuesday that its chief sales officer Emilio Ghilardi had left the company and that CEO and president Rory Read is going to do his job while a replacement is sought. AMD didn’t say why Ghilardi left but it’s assumed Read wants his own people. Read is relatively new to th...
During the lifespan of M3 (Monitis Monitor Manager) there has always been something lacking – timers. M3 execution procedure was outlined in this previous article. The execution mentioned in the latter was a one-time-execution, whereas server monitoring requires periodic invocati...
Red Hat is putting its bought-in Gluster scale-out NAS storage technology, acquired in October, on the Amazon cloud. It’s styled Red Hat Virtual Storage Appliance for Amazon Web Services and other clouds are supposed to follow in short order.
A new episode of the screencast series is now available at the OpenNebula YouTube Channel. This screencast demonstrates the new easily-customizable self-service portal for cloud consumers. Its aim is to offer a simplified access to shared infrastructure for non-IT end users. The scree...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers
ADS BY GOOGLE