Open SAtacker opened 2 years ago
My understanding is that you want to do it in two steps:
1 Create a C or C++ library for wasmedge-bindgen
under the host/c
or host/cpp
folder.
2 Create a Python package wrapper for the C/C++ library under the host/python
folder.
Is that correct? My question is #2 -- why can't we just create a wasmedge-bindgen
in pure Python (like we did for golang)? The extra dependency on the C library seems to be unnecessary? Thanks.
My understanding is that you want to do it in two steps:
1 Create a C or C++ library for
wasmedge-bindgen
under thehost/c
orhost/cpp
folder.2 Create a Python package wrapper for the C/C++ library under the
host/python
folder.Is that correct? My question is #2 -- why can't we just create a
wasmedge-bindgen
in pure Python (like we did for golang)? The extra dependency on the C library seems to be unnecessary? Thanks.
Thanks
Sounds good. Thanks. Look forward to your contribution!
Hello all, As per my understanding, the
wasmedge-bindgen
makes it necessary to have an import object with functionsreturn_result
,return_error
and then manually allocate memory according to data type by callingallocate
then run the function that was written by the user and finally deallocate the allocated memory by callingdeallocate
. If this is correct, then for the python SDK should I write a new module namedwasmedge-bindgen
in C++ doing what thehost/go/bindgen.go
does? Or do you have any other recommendations? Thanks!CC @juntao