Interoperability Part 1: Using Multiple Programming Languages

April 2, 2024
MathWorks' Heather Gorr talks about interoperability issues that arise when using multiple programming languages.

This video, the first of a three-part series addressing multiple-language application development, features Heather Gorr, PhD, Principal MATLAB Product Marketing Manager at MathWorks. I spoke with Heather about interoperability when dealing with application creation that uses more than one programming language (see the video above). The other two parts of the series are listed below. 

How MATLAB Integrates with AI Platforms
Software

Interoperability Part 2: Unifying MATLAB and Python for AI

In Part 2 of this series, MathWorks' Heather Gorr details how to take advantage of Python-based AI and ML libraries via MATLAB.
Integrating Two Programming Languages in Practice
Software

Interoperability Part 3: Integrating Two Programming Languages in Practice

Wrapping up this video series, MathWorks' Heather Gorr talks about development of projects with multiple programming languages.

Using more than one programming language is common. Examples include environments such as MATLAB and Simulink (see figure). MATLAB supports languages like C/C++ and Python. Python, which has become very popular with machine-learning/artificial-intelligence (ML/AI) tools and frameworks, can be used within the MATLAB IDE. Likewise, Jupyter, with its web-based notebook interface, supports over 40 programming languages, among them are Python and MATLAB.  

Support of multiple programming languages by development tools is just the starting point. Calling code across programming languages is straightforward, but dealing with details such as data compatibility and understanding functions defined in different language libraries can be a challenge.  

Using multiple programming languages and libraries has other challenges, i.e., increasing the complexity and support issues. As a result, developers need to track versions, bugs, and compatibility with multiple compilers and runtimes rather than a single set.  

However, utilization of multiple programming languages offers major advantages, too. Some languages are more amendable to some types of applications while others may provide access to libraries developed for a particular language or language implementation. Certain languages provide a more concise description of various aspects of an application.  

It's possible to mix and match a dozen programming languages in a single application, but that's rare. Typically, a pair of languages is more common, with one providing the primary coding platform for an application and the second programming language delivering support for a particularly useful runtime or application code. It may also involve two different language preferences of multiple developers working on a particular project.

Extension of legacy code is another reason for utilizing multiple programming languages.  

Links 

 

Coding for Engineers: Advantages of Using MATLAB and Python Together

Sponsored Recommendations

Near- and Far-Field Measurements

April 16, 2024
In this comprehensive application note, we delve into the methods of measuring the transmission (or reception) pattern, a key determinant of antenna gain, using a vector network...

DigiKey Factory Tomorrow Season 3: Sustainable Manufacturing

April 16, 2024
Industry 4.0 is helping manufacturers develop and integrate technologies such as AI, edge computing and connectivity for the factories of tomorrow. Learn more at DigiKey today...

Connectivity – The Backbone of Sustainable Automation

April 16, 2024
Advanced interfaces for signals, data, and electrical power are essential. They help save resources and costs when networking production equipment.

Empowered by Cutting-Edge Automation Technology: The Sustainable Journey

April 16, 2024
Advanced automation is key to efficient production and is a powerful tool for optimizing infrastructure and processes in terms of sustainability.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!