3 ms·
Actually, I haven't done much with it, just messing around, so don't take this as absolute or anything but; Using Rust cross platform, across IOS and andriod,
by Cshelton 11y ago
Actually, I haven't done much with it, just messing around, so don't take this as absolute or anything but;
Using Rust cross platform, across IOS and andriod, wasn't really that difficult to do...sure, the tooling isn't fully there yet. But I don't think it's any harder than c++, if anything, easier. Cargo is amazing and what makes Rust really nice to use. The community will create better IDE's and an ecosystem of tooling for cross platform, both mobile and desktop OS's. I believe Go also has some fairly popular mobile cross platform libraries as well that are probably much further along than Rusts'.
I can't say for Windows phone as I have never done anything for it and I think it's dead...
- pjmlp 11y ago> But I don't think it's any harder than c++ For the time being it surely is. With C++ I just download XCode or NDK/Android Studio/Visual Studio. I don't need to bother with FFI on iOS and Windows. On Android I just need to bother with JNI FFI, not additionally how to call JNI from the respective language. The IDEs show visual representation of data structures when debugging and two way editing between C++ and the respective platform language. With Rust or Go AFAIK I need to use Mac OS X or GNU/Linux for cross-compilation. Need to compile that toolchain myself and write my own wrappers to OS APIs. Also not enjoying the same IDE experience isn't that much fun. > I can't say for Windows phone as I have never done anything for it and I think it's dead... Except the APIs are the same as Windows and XBox are moving to, even if WP10 is at the end of the road now with the last update misfortune. So if Rust or Go want a place in Windows Store for desktop and XBox apps, they need to get along with WinRT APIs. Yes, those languages will surely improve but if I have 1 hour to work on a side project, I rather spend that hour coding and not fixing toolchain issues. If I had more time, I would surely like to help to improve the situation, but sadly time is limited.
- Tyr42 11y agoI just got Rust compiling for a linux kernel module. It wasn't too bad, though an inability to read C header files is kinda a pain. And for any target you are going to want to wrap things up in a "Rusty" api, as dealing with cstrings is kinda a pain. Still, it'd be a pain to go from C strings to C++ strings, and hook new/delete up to kmalloc/kfree.
- Manishearth 11y ago> Need to compile that toolchain myself and write my own wrappers to OS APIs. Nah: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901 https://users.rust-lang.org/t/multirust-0-8-with-cross-std-i... Before this feature the cross libs existed, just that there was no UI for downloading and installing them.