I wonder if it makes sense to build the business logic in rust/C and just use flutter for ui stuff. how easy is ffi ?

Reply to this note

Please Login to reply.

Discussion

Seems pretty simple, thats what nostr:nprofile1qqsywg97k8mx8tj30399fc0zdw9h9cc902ldm6gdfwlxd999lhjau5qqs89av is doing with his app, there isnt any way in hell you can do the kinds of video processing without native code anyway

flutter is definitely be a nice option then until we’re done rebuilding flutter on egui πŸ₯² rust ecosystem needs to catch up but there are only like one or two people working on it 😩

I actually started to build freeflow as a notedeck app, id one a POC with the player but then i remembered that video playback on device isnt going to work nice so i switched to flutter, maybe in the future i can re-write this app into a notedeck app

Remember when I talked to you, Will, about egui? After learning a bit more, I had the same impression you just mentioned. Egui is amazing, but I noticed that many essential engineering components depend on a single anonymous developer. That is a huge risk. So I went Flutter+Rust+C

What do you mean? Which anonymous developer? egui has lots of devs but only a handful working on mobile at the moment (me, lucasmerlin, podusowski)

Flutter is definitely better at this time, but if we can make an immediate mode library as good as flutter we can get rid of all the dart stuff which will be nice. We just need more people working on android and iOS integration.

sorry, I didn't express myself well. Egui have lots of dependencies on single devs -- not a specific a one. There is no huge money flow making things work as Google did with Flutter. But when the ecosystem matures a little more and the risk deescalate, I probably would shift for egui

Will get it working because i really want immediate mode to be the foundation of our nostr browser ui 🫑 its also necessary for the launch of damus android πŸ˜… just sucks because I’d rather be focused on just building apps instead of trying to get keyboards and videos working, but someones gotta do it. its not *that* hard, just annoying.

it’s actually amazing how well egui works on mobile already, modulo a few platform integration kinks like keyboard.