-
- PyTorch/libtorch - https://github.com/LaurentMazare/tch-rs seems pretty good. But on Android and iOS this seems to be an issue. Although this issue exists for C++ as well as there are currently some hacky scripts to download the Java AAR from Maven and then extract the .so libs from there to make sure you got the thing built correctly ;). I actually went the path now to run torch mobile from Java (it's a sequence of 3 neural networks) and call my C++ code between those with JNI. It's mostly passing strings and float arrays, so not too bad. So this could work with Rust as well.
-
InfluxDB
InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
-
- JNI - how well does https://github.com/jni-rs/jni-rs work? Assuming that Firefox runs on Android and uses Rust this should be reasonable to work with?
-
- I still got to wrap one C library. I ran it through https://github.com/eqrion/cbindgen once and seemed to work but didn't do any deeper tests.
-
In sum I would like the idea to go with Rust as I more or less got to rewrite the whole thing anyway, but I am a bit skeptical if I will be able to interface with everything that might come up at some point. Or probably end up in a wrapper hell if I got to use more C++ libraries. On the other hand there are definitely a few Rust projects out there that might come in handy (for example https://github.com/huggingface/tokenizers). And the build process is pretty awful right now (CMake it is but with lots of hacks).
-
regarding COM - check https://github.com/microsoft/com-rs
-
There's also https://github.com/microsoft/windows-rs for consuming all sorts of windows APIs (COM included)!
-
We had a few small issues with ONNX. Export worked but when running with e.g. tflite stumbled for example across this https://github.com/onnx/onnx-tensorflow/issues/853 Also the support for sampling from distributions is generally still pretty weak, but we were able to work around that.
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
Also briefly tried https://github.com/microsoft/onnxruntime