Would it be possible for one to use multiple languages in a single project? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Would it be possible for one to use multiple languages in a single project?

Obviously in SoloLearn you can only use one language at a time (with the exception of web development). But would it be possible to per say, write an AI in python but have interface with a robot that is programmed in Java or c++?

22nd Mar 2019, 7:17 PM
Jacob E
Jacob E - avatar
1 Answer
+ 3
Most programing languages allow you to call C code, and many can be called by C code. This allows you to use c as an interface between multiple languages. Eg python can call a c interface for c++ code. Also you could design your program as a collection of micro services. If done carefully you could use different languages for different services. This would add a lot more work and code for a small project, but may be reasonable for a big project. I wouldn't suggest this the inexperienced. https://en.m.wikipedia.org/wiki/Microservices
22nd Mar 2019, 9:08 PM
Jared Bird
Jared Bird - avatar