You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Discussion for API and implementation of the go wrapper #1
Okay, correct me if I'm wrong, but it appears that I can build mappings between the calls in the ./src/api/unified directory and I should have a full coverage of the api? Correct?
Take a look at the repo src/arrayfire/*.go and you'll see the beginning of a mapping. If you think this is the way to go, I'll continue to build out the mapping and we should have something to play with. I'm going to pause here unit you give me feedback.
@rabarar The easier way to do this is to look at the bottom half functions in every header file in arrayfire/include/af/ after the section extern "C" {
Activity
pavanky commentedon Sep 26, 2015
@rabarar We already have a functional C API for all functions in ArrayFire. You can perhaps look at https://github.com/arrayfire/arrayfire-python and https://github.com/arrayfire/arrayfire-rust wrappers to see how the C functions are being called from the respective languages.
I foresee something similar happening in go as well.
rabarar commentedon Sep 26, 2015
Perfect - I'll start there.
rabarar commentedon Sep 27, 2015
Okay, correct me if I'm wrong, but it appears that I can build mappings between the calls in the ./src/api/unified directory and I should have a full coverage of the api? Correct?
Take a look at the repo src/arrayfire/*.go and you'll see the beginning of a mapping. If you think this is the way to go, I'll continue to build out the mapping and we should have something to play with. I'm going to pause here unit you give me feedback.
pavanky commentedon Sep 27, 2015
@rabarar The easier way to do this is to look at the bottom half functions in every header file in arrayfire/include/af/ after the section
extern "C" {pavanky commentedon Sep 27, 2015
The structure you have so far looks good, but the one thing I am concerned about is users doing something like this (if the API allows it)