Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I recently did something similar (though I haven't had a chance to clean up or document the repositories for Flutter plugin/Rust library yet).

The Flutter application uses FFI to invoke the Rust library, passing a series of strokes (i.e. coordinates on a 2D canvas) and returning a list of Chinese character candidates.

Although it's not yet stable, I was very impressed with Dart FFI. I've used both JNI and .NET PInvoke for native interop before, and Dart FFI was probably the easiest (PInvoke is fine, but JNI is horrible).

https://github.com/nmfisher/flutter_chinese_character_recogn...

https://github.com/nmfisher/hanzi_lookup (forked from the original https://github.com/gugray/hanzi_lookup)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: