-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Go bindings are broken #27
Comments
I’m in favor of implementing valabind —golang to generate CGO bindings without depending On OSX I get the following error:
which seems to be related to the version of Go installed. On 27 May 2014, at 03:20, Willi Ballenthin [email protected] wrote:
|
Sure, I'd be happy to look into implementing a Go writer for valabind. I'll use the existing writers as examples. Thanks for the quick response! |
Awesome! Yesterday i was playing a little with gco to make the bindings for sdb and learn a litle of go. It seems that swig is again doing an awful job and it would be better to nake our own bindings. I would add --golang to valabind, look at the ctypes or nodejs implementation. It should be quite straight forward. Thanks!
|
@williballenthin shall we close this bug now? |
Sorry, but unfortunately my bindings are not yet complete. In fact, they probably don't cover much of the existing r2 API, yet. Finishing them is high on my list of projects, but realistically, won't happen this week. |
@williballenthin I'm postponing this to 1.0.0 release, but you always can improve Go bindings earlier :) |
The r2pipe go bindings are very mature and stable right now. And i think it fits better with the philosophy of extending and using r2 from bindings is getting in shape. But yeah it would be great to make valabind work fine for go
|
By the way, I wrote a simple Python script to generate the bindings for some languages directly from the C headers, so no need for middle-men like Valabind or SWIG, it supports Go through c-for-go, see https://github.com/radareorg/radare2-bindings#experimental-radare2-bindgen |
I am unable to get the Go-language bindings working with r2. I don't think this is due to an issue with r2 being in a state of flux, rather I think it has something to do with the binding generation themselves. I fixed as many Go binding bugs as I could (see other PRs), but I'm woefully uneducated in SWIG.
Details:
Other supporting details:
I think the fix would be small, but requires insight into r2 and SWIG (which I don't have yet). If you could dedicate a little time to fixing the the issue, I'd really appreciate it. Otherwise, if you could point me towards the appropriate resources to learn to do it myself, that would be a great help.
The text was updated successfully, but these errors were encountered: