-
Notifications
You must be signed in to change notification settings - Fork 11
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
I'd like to ask why you chose to use bindgen but not cxx. #36
Comments
cxx is used for C++, and bindgen is for C. Since sherpa-onnx exposes a C API, we use bindgen. Even if it were C++, I wouldn't choose cxx. I worked with a cxx codebase a while ago, and I find that using bindgen along with custom C++ wrappers with C makes the code much more readable when writing bindings for a C++ library. |
For instance see this cxx based crate which in my opinion is not readable at all: Versus another small wrapper I created to C++ code: |
FYI: k2-fsa/sherpa-onnx#1455 provides a C++ wrapper for sherpa-onnx's C API. |
What are the languages currently officially supported by the API, can you list them on the reademe? |
Please see 12 languages are supported by sherpa-onnx at present. We may support more if needed. |
I mean to distinguish between official support and unofficial support |
No description provided.
The text was updated successfully, but these errors were encountered: