fzyzcjy

Joined 4 years ago

Karma
135
Submissions
23
Member since
Sep 7
GitHub: https://github.com/fzyzcjy
View on Hacker News

Recent submissions

Comment · 2 years ago
Thank you!
Comment · 2 years ago
You are welcome and looking forward to it!
Comment · 2 years ago
Thank you!
Comment · 2 years ago
Thank you!
Comment · 2 years ago
Yes, if someone needs to write UI using native Android/iOS code, Crux would be suitable. On the other hand, personally speaking, I prefer to write all code 1 time, but Crux seems to require to write the UI code 3 times for Android+iOS+Web.
Comment · 2 years ago
Thanks for the information, and I replied bubblebeard above about Tauri.
Comment · 2 years ago
Thank you! I heard some people saying that, for apps using JavaScript, Tauri is replacing Electron and is popular nowadays, since Electron is very widely used. It seems Tauri cannot let Rust communicate with JavaScript very seamlessly yet, e.g. https://tauri.app/v1/guides/features/command/ seems to have mainly basic features. oneshtein mentioned below that Tauri does not support mobile as first class citizen yet as well. Looking forward to seeing Tauri's bridge to improve and supporting mobile better in the future!
Comment · 2 years ago
Comment · 2 years ago
For app size, it depends on your specific scenario, because e.g. Flutter automatically removes library code that is not used. I remembered (but the memory is blur) simple app has something like ~5MB. Btw remember to split .so file per abi. For UI performance, I personally find it quite good, and Flutter(Dart) is compiled to assembly code via AOT (instead of e.g. JIT or interpreted), which theoretically speaking is also fast. For both, I would suggest to make a demo for your specific case to have more accurate results. Also I guess ask/discuss on the Flutter community may help.
Comment · 2 years ago
Thanks! Shortly speaking, the Rust code is parsed (e.g. "here is a function and there is a struct"), and then some Rust and Flutter code are generated. As for comparison, some pros and cons are discussed in the blog.
Comment · 2 years ago
You are welcome, and I am happy to see it helps! When I initially develop flutter_rust_bridge, my personal usage scenario is quite similar to yours: using Rust for some high performance algorithms.
Comment · 2 years ago
You are welcome, and happy to hear it works for you!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton