Mixing the Objective Caml and C# Programming Models in the .NET …

Mixing the Objective Caml and C# Programming Models in the .NET ...We present a new code generator, called O’Jacar´e.net, to inter-operate between C# and Objective Caml through their object mod- els. O’Jacar´e.net defines a basic IDL (Interface Definition Language) that describes classes and interfaces in order to communicate between Objective Caml and C#. O’Jacar´e.net generates all needed wrapper classes and takes advantage of static type checking in both worlds. Al- though the IDL intersects these two object models, O’Jacar´e.net allows to combine features from both.

The .NET platform claims to be a melting pot that allows the integration of different languages in a common framework, sharing a common type system, CTS, and a runtime environment, CLR (Common Language Runtime). Each .NET compiler generates portable MSIL byte-code (MicroSoft Intermediate Language). By assuming compliance to the CTS type system, components inter-operate safely.
The .NET framework is actually well suited for object-oriented languages which have an object model close to the one of C# or Java. Unfortunately, languages with other kinds of object models, type systems or supporting different programming paradigms (such as functional programming . . . ) do not fit in .NET as well as C# does.Writing .NET compilers for them requires much more efforts.
However, the .NET framework still gives us a good opportunity to experiment inter-operability between two languages as different as Objective Caml[1] (shortened as O’Caml) and C#. O’Caml is an ML dialect: it is a functional/imperative statically typed language, featuring parametric polymorphism, an exception mechanism, an object layer and parameterized modules. By achieving interoperability, each language gains access to a wider set of libraries and programmers take advantage of a richer programming model.

Website: www.pps.jussieu.fr | Filesize: 164kb
No of Page(s): 10
Click here to download Mixing the Objective Caml and C# Programming Models in the .NET ….

Related Tutorial

Tags: ,

Comments

Leave a Reply