Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the best practices in language interoperability? [closed]

In a system which requires use of multiple languages, what are the best practices to ensure a loosely-coupled architecture when code is calling another language's code?

like image 610
GurdeepS Avatar asked May 01 '10 12:05

GurdeepS


1 Answers

Write the API in C. Many modern languages can call or incorporate C code with little to no hassle. C++, Vala, Python, D, C#, Many Lisps, VB, and Java, just to name a few, allow the use of C code in shared libraries. In this manner, as long as you have a sane interface you can easily call your code from most any language. C is the lowest common denominator of modern computing.

like image 71
Robert Mason Avatar answered Sep 20 '22 04:09

Robert Mason