YOUR FEEDBACK
Rapid Module Development for DotNetNuke
MICHEAL SMITH wrote: GO TO THE LINK, U HAVE EVERYTHING U WANT THERE. MICHEAL...


2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 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

Digg This!

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.

LATEST LINUX STORIES
Kevin Hoffman's Review of Iron Man
I took the advice of a friend of mine and steered clear of the 'normal' movie theaters and went a little out of the way to go to a DLP movie theater. The experience of comparing a regular movie theater to a DLP movie theater is like comparing standard def analog TV with a 1080i HDTV si
3rd International Virtualization Conference & Expo: Themes & Topics
From Application Virtualization to Xen, a round-up of the virtualization themes & topics being discussed in NYC June 23-24, 2008 by the world-class speaker faculty at the 3rd International Virtualization Conference & Expo being held by SYS-CON Events in The Roosevelt Hotel, in midtown
Verizon Becomes a Counter-Android Linux Convert
Verizon Wireless is snubbing Google's Linux-based Android initiative to go with the LiMo Foundation's mobile Linux spec for its next wave of mobile phones expected next year. Along with Verizon, Mozilla signed up - giving the consortium its first major open source ISV - and a key one f
Adaptec Launches New Series 2 RAID Controller For Linux Users
Adaptec unveiled a new family of entry-level Unified Serial RAID controllers. The new low-profile Series 2 RAID controllers, built on the same Adaptec dual core RAID-on-Chip (ROC) architecture used in its successful Series 5 RAID controllers, provide significant performance enhancement
JavaOne 2008: Sun Challenges Linux
Sun's mule train has finally pulled into Indiana after three years on the road. Indiana is the Linux-friendly Fedora-like OpenSolaris project meant to move the Solaris-shy Linux community off Linux and on to Solaris tempted by Solaris widgetry like the highly scalable, rollback-easy, 1
Curl Announces Support for Ubuntu for Enterprise RIA Platform
Curl announced it has released the availability of an Ubuntu Installer for the Curl Rich Internet Application (RIA) platform. Curl is a Rich Internet Application platform that competes with Adobe AIR/Flex, Silverlight, and Ajax. Curl has been shipping with Linux support for RedHat 9, S
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