-
Notifications
You must be signed in to change notification settings - Fork 817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ SDK Cross compilation and testing #134
Comments
CMake is the defacto standard for building C and C++ code across platforms. |
Totally happy to have this rewritten with CMake (or whatever is appropriate) - I totally bashed this together with the help of someone with (somewhat?) more C++ experience than me, and this is an ecosystem I am very much not familiar with. |
/cc @sylvainduchesne |
Notes doc after meeting with rennie@, markmandel@ and myself. |
@martin-z-google This is the current state of the C++ SDK situation - please let me know if this makes no sense 😄 |
Do you want to run protoc during build phase when using cmake or just want to compile current source using cmake (to make small step to cross building)? |
@ortho I think I understand the question? (I'm not 100% sure) We generate the code from protoc and store it in our github repo - since it's not going to change. We only change it when the .proto file changes -- and you can run Does that answer the question? |
Sorry, English is not my native language. :( Let me try again. I'm going to close this issue. First way (simplest): Second way:
Which one would be preferable? |
@ortho - so right now, @martin-z-google is working on the first way. There are still runtime dependencies on protobuf's libraries, outside of the code generation (if i understand correctly, although martin can explain better than I can) Personally, I'm not seeing any benefit in the second way -- it's not as if the generate code ever changes. But maybe I'm missing something? |
FYI pull request is up: #421 |
From the requirements in the initial issue comment, did anyone ever take a look into
and write up rationale for continuing to invest in the gRPC wrappers? |
@roberthbailey I think that we should continue to use gRPC, because it is possible to have connection with most languages (even js). Nginx already supports forwarding of grpc traffic. And it is possible to create some kind of proxy over grpc->http, but I don't see any real cases when we may need it. But I'm not good in this area. |
Was digging through community build steps - found this, thought it might be interesting: |
@dsazonoff - If the argument is about language support, then pretty much any language you'd encounter today will support sending an HTTP request. And since HTTP is a core part of the language, we don't need to worry about how well / long it is supported or compiler compatibility / etc. On the server side, I'm all in favor of grpc and http endpoints both being exposed. The question was more along the lines of whether it makes sense for the clients we build to depend on grpc or whether HTTP is sufficient as it is possible a smaller code. |
Both will work for the work, and admittedly HTTP is simpler to integrate. However, you need to poll for the GameSession status over HTTP, whereas that callback should come in automatically over gRPC. Personally, I don't find that convenience to be enough to warrant integrating gRPC on the client, since most codebases will already have HTTP clients integrated. |
I've marked this issue as stale. If you still find it relevant please leave a note, otherwise we will close it during our next round of triage. |
Closing, since it doesn't look like we have the capability to do this right now. |
Problem
Our current support for low dependency, cross compilation for the C++ SDK is very poor. Things work on Linux, because of
make
and not much else. We also have no tests.Right now, the C++ SDK is built on top of gRPC, which may be adding too many dependencies to be used in a valuable way across platforms?
Code is here: https://github.com/GoogleCloudPlatform/agones/tree/master/sdks/cpp
Requirements
Caveat: This is written by @markmandel who has little to no idea about C++ and its ecosystem, so direction on the above is also appreciated.
Research
https://github.com/grpc/grpc/blob/master/src/cpp/README.md#make
https://www.appveyor.com
https://circleci.com/build-environments/xcode/osx/
https://docs.travis-ci.com/user/reference/osx/
History
The text was updated successfully, but these errors were encountered: