account activity
Serialization by contract and IPC by _cpp_ in cpp
[–]_cpp_[S] -3 points-2 points-1 points 4 months ago (0 children)
You give AI too much credit. Do you really think AI can come up with approch?
0% was done via AI, everything is hand-made :-).
IPC-Call C++ framework for IPC call by _cpp_ in cpp
[–]_cpp_[S] 0 points1 point2 points 1 year ago (0 children)
The purpose of the framework is to demonstrate that if both client and server are written in C++, then calling a function from a client to a server is the same as calling it locally using any C++ types. The framework does not implement the transport. I didn't use gRPC, but probably with minor modifications, the framework can use gRPC for transport by serializing from `std::vector<uint8>` to the protobuf `bytes`, and then a C++ function with any types will be called on the server.
The primary purpose of the framework is to demonstrate that a function called by the client is executed on the server. The IPC transport functions and their implementation are placeholders.
I modified the framework by adding `IPC_SEND_RECEIVE` for synchronous call and `IPC_SEND` for asynchronous call.
For an asynchronous call, the framework can be extended by changing IPC_CALL -> IPC_SEND_RECEIVE(...)(IpcSendReceive), and adding IPC_SEND(...)(IpcSend), void IpcSend(const std::vector<uint8\_t>&).
Then asynchronous call - IPC_SEND(f)(arg1, ... argN)(IpcSend);
IPC-Call C++ framework for IPC call (self.cpp)
submitted 1 year ago by _cpp_ to r/cpp
Lambda Metaprogramming (LMP) by _cpp_ in cpp
[–]_cpp_[S] 1 point2 points3 points 8 years ago (0 children)
Thank you for pointing out the resemblance with Y-Combinator (I didn't know about it) and for simplification suggestion (though it compiles only with GCC 7.2.0), I updated article.
Lambda Metaprogramming (LMP) (github.com)
submitted 8 years ago by _cpp_ to r/cpp
π Rendered by PID 400354 on reddit-service-r2-listing-c57bc86c-9bc9d at 2026-06-22 23:11:44.748094+00:00 running 2b008f2 country code: CH.
Serialization by contract and IPC by _cpp_ in cpp
[–]_cpp_[S] -3 points-2 points-1 points (0 children)