Jump to content

Language interoperability: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
Language interoperability is the capability of two different languages to natively operate on the same kind of data structures.
Language interoperability is the capability of two different languages to natively operate on the same kind of data structures.
Some [[object oriented]] languages can do this thanks to the hosting [[virtual machine]] (e.g. [[List of CLI languages|.NET CLI compliant languages]] in the [[Common Language Runtime]] and [[List of JVM languages|JVM compliant languages]] in the [[Java Virtual Machine]]).
Some [[object oriented]] languages can do this thanks to the hosting [[virtual machine]] (e.g. [[List of CLI languages|.NET CLI compliant languages]] in the [[Common Language Runtime]] and [[List of JVM languages|JVM compliant languages]] in the [[Java Virtual Machine]])<ref name='ms'>{{cite web
|url=http://msdn.microsoft.com/en-us/library/a2c7tshk.aspx
|title=Cross-Language Interoperability
|publisher=Microsoft Developer Network (msdn.microsoft.com)
|accessdate=6 September 2012
|year=2012}}</ref>.


In this case a language that runs in a [[virtual machine|VM]] can use an object created in different language in the same VM.
In this case a language that runs in a [[virtual machine|VM]] can use an object created in different language in the same VM.
Line 11: Line 16:
* [[List_of_JVM_languages|JVM languages]]
* [[List_of_JVM_languages|JVM languages]]
* [[List of CLI languages|CLI Languages]]
* [[List of CLI languages|CLI Languages]]
==References==
{{Reflist}}






{{software-eng-stub}}

Revision as of 15:24, 6 September 2012

Language interoperability is the capability of two different languages to natively operate on the same kind of data structures. Some object oriented languages can do this thanks to the hosting virtual machine (e.g. .NET CLI compliant languages in the Common Language Runtime and JVM compliant languages in the Java Virtual Machine)[1].

In this case a language that runs in a VM can use an object created in different language in the same VM. The VM operates the required abstraction of the object representation that permits to call a method of a class defined in the second language.

In this one can reuse the libraries written in another language of the same VM: e.g. a program written in Groovy, Scala or Clojure can use any library written in Java.

See also

References

  1. ^ "Cross-Language Interoperability". Microsoft Developer Network (msdn.microsoft.com). 2012. Retrieved 6 September 2012.