In a previous tutorial we have seen how to use python code into c++ applications, today we are going to see the other side, how to use c++ code in a python application
Introduction: Python into C++
Performance improvements
Using C++ code into python
In a previous tutorial we have seen how to use python code into c++ applications, today we are going to see the other side, how to use c++ code in a python application
Introduction: Python into C++
Performance improvements
Using C++ code into python
We are going to extend our previous service with a new feature, a shared memory handler. The service will be able to shared bigger blocks of data than a queue message.
Service IPC: POSIX message queue
Service IPC: POSIX shared memory
With this tutorial series we are going to explore and implement with multiple code languages the functionality of a powerful type of programs: the services. A service is a program that waits for other program interaction to perform a task in background with an independent context.
We can start communicating two services using POSIX message queues. As each service can use their own context we can implement each service with different coding language. For our examples we are going to view their implementation using C++, Python and Rust language.
Service IPC: POSIX message queue
Service IPC: POSIX shared memory
In a previous tutorial we explored how to embed a Python interpreter in a C++ application. Now we can do some small changes to improve their performance drastically
Introduction: Python into C++
Performance improvements
Using C++ code into python