T
T
tugo2021-06-15 11:24:56
go
tugo, 2021-06-15 11:24:56

Sharing C++ and Golang: is it possible, how convenient, have you used it in projects?

Is it possible to use C++ and Go together. Those. for example, call Go library code from C++ and vice versa?
What are the mechanisms for sharing code in these 2 languages ​​other than writing a microservice in Go?

I think usually everything is used in the "microservices and message broker" mode.
But I, for example, want to write a monolith in C ++ and Go. Is it possible?

I don’t have tasks, I just look at the vacancies that they require. In some places, Go is already being asked to support C++. You don't even need to know Go, just come. I'm currently considering Go as a C++ companion language.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene, 2021-06-15
@tugo

Since version 1.2, you can insert in c++, from the cases where you had to deal with it, you made inserts with calls to the CryptoPro SDK in C++ when you needed to work with qualified digital signatures in golang. IMHO, this should be done only in specific tasks, just like that - I don’t see the point in this.

P
pfemidi, 2021-06-15
@pfemidi

TYTS!

O
OCTAGRAM, 2021-06-17
@OCTAGRAM

I have used Delphi and Ada together in the same process using COM. I think it might help in your case too. COM defines an unambiguously understood object ownership policy and other routines.

I just look at the vacancies that they require

Jobs are frustrating

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question