A
A
Artem Kislenko2016-07-29 06:12:28
Python
Artem Kislenko, 2016-07-29 06:12:28

Why do we need a bunch of python and go?

Hello!
Recently, relatively often I hear (see) manuals on how to make "python" and "go" friends. All this is done through, let's call it "C-API".
But to be honest, I don't understand why. It's just that "python" and "go" have related areas of application (as I understand it), and libraries (for example, computing ones) separate for "python" can also be written in "C" so as not to fence API monsters. In my understanding, in such a bundle (python-C-go), the python can be thrown out altogether, why is python used in such a bundle? those. "go" adds connection processing speed, "C" - let it be math, and "python"? What does "python" do?
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Grabko, 2016-07-29
@webwork

Why do we need other PLs if everything can be written in C?)
In general, it is easier for a Python developer to master Go than C and relatively quickly start optimizing Python using Golang -a. I have seen people rewrite large projects in Go by moving heavy pieces to Go and eventually move away from python altogether.

V
Vladimir, 2016-07-29
@rostel

development in python is much faster than in Go, but the performance is less
crossed to compensate for the loss of performance in particularly bottlenecks, while not rewriting the entire project in Go

A
Alexey, 2016-07-29
@rdifb0

Python is still higher-level than Go and easier to write. Plus a large number of libraries have accumulated.
And then you can include the code on go as with lib, and in turn, you can compile the code on c.
As for me it's cool.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question