+ 1
Integrating diferent lenguagues. Integrar diferentes lenguajes
It would be interesting and productive for programming learning, to understand how to program something with different technologies. Usually we do not talk about it, but understand how they combine in a development, for example facebook sql databases with others that are not, php with python and others. How to start integrating different programming languages?. Sería interesante y a la vez productivo para el aprendizaje de programación, comprender el modo de programar algo con diferentes tecnologías. Habitualmente no se habla de ello, pero comprender cómo se aunan en un desarrollo, por ejemplo facebook bases de datos sql con otras que no lo son, php con python y otros. Cómo comenzar a integrar diferentes lenguajes de programación?
11 Réponses
+ 3
Master Forts You might be asking about interoperability between processes where each service may be written in different languages.
I recommend you spend some time learning about gRPC (General Remote Procedure Calls) with Protocol Buffers (also known as Protobufs)
Here are a few links to get you started:
https://grpc.io/
https://grpc.io/docs/guides/concepts/
Protocol Buffers in gRPC ~ 8:41
https://youtu.be/yfZB2_rT_Pc
Building an (sic) Basic API with gRPC and Protobuf ~ 20:55
https://youtu.be/Y92WWaZJl24
Introduction to gRPC: A general RPC framework that puts mobile and HTTP/2 first ~ 49:32
https://youtu.be/hNFM2pDGwKI
Intro to gRPC: A Modern Toolkit for Microservice Communication ~ 32:00
https://youtu.be/RoXT_Rkg8LA
+ 1
I have studied Php, Python, Java, C ++ and C. How to integrate a programming in C or C ++ with another one of Python.
What do you learn for it? . How do you start the integration?
He cursado Php, Python, Java, C++ y C. Cómo integrar una programación en C o C++ con otra de Python
Qué se aprende para ello? . Cómo se comienza la integración?
+ 1
Python is built with C. You can make python modules with C, and you can even convert python code to C with Cython.
+ 1
Well, with Cython you open a door for me, I didn't know that existed. What modules do you do in C for Python, give me examples .... Do you use struct of C?
Bien, ya con Cython me abres una puerta, no sabía que eso existía.
Qué módulos haces en C para Python, dame ejemplos....Usas struct de C?
+ 1
I am reading now (from what you tell me) that Cython is its own language. Should you always create a new language that integrates them? Parts of that? Are there other tools that unify different languages?
Is it like programming a class in Python and creating the environment to manipulate it from C ++?
+ 1
That is precisely my great objection .... So the question of how do they do it and where do they start? Is it about programming that integration?
I think of the json script that reads from several languages
+ 1
Great, thank you both. I seek to integrate what was studied during the year. Not everyone learns in the same way ... I do it from the general to the particular, be patient, it is a drag on philosophy. From the general vision to which you help me, I expand my mind. Many languages but it all comes down to ones and zeros ... they have brought me a lot.
0
What do you mean ?
0
Master Forts Cython is just a tool, it converts your python code to C, mainly because of the speed advantage. There are many modules in python built using python, such as math, numpy..
0
Master Forts there is a difference between unifying two languages and converting one language to another. Most languages are buult independent of each other, so in most cases you won't be able to communicate between two languages.
0
Master Forts I think you are confusing things. Json is just a way to store information, just like databases are used to store information. You cannot integrate two different languages, each one bahaves in a different way. But, you can for example make a script that takes an input, and returns an output, then run that script using another programming language, but you question is not precise, and I don't think you'll find many answers here. What is it you want to do exactly ?