Skip to content
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

bind: use golang.org/x/mobile/bind/seq for cross-language call #58

Closed
sbinet opened this issue Aug 31, 2015 · 1 comment
Closed

bind: use golang.org/x/mobile/bind/seq for cross-language call #58

sbinet opened this issue Aug 31, 2015 · 1 comment
Assignees

Comments

@sbinet
Copy link
Member

sbinet commented Aug 31, 2015

gopy currently (mostly) sends pointers to go values back and forth between cgo and go.
on the cpython side, such types are (usually) defined like so:

typedef void *cgo_type_pkg_MyType;

struct cpy_type_pkg_MyType {
  PyObject_HEAD
  cgo_type_pkg_MyType cgopy; /* pointer to pkg.MyType */
};

under the rules currently defined at golang/go#12416, this will no longer work as we store a pointer to go memory, possibly containing itself pointers to go memory.

so we'll probably have to bite the bullet and move to the (de)serialization protocol of golang.org/x/mobile/bind/seq.

@rcoreilly
Copy link
Member

for old version, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants