4 ms·
You don't have many choices for cross-platform tools. You can either use C++ that is quite hard for a lot of people but I would say most popular and most stable
by SneakerXZ 11y ago
You don't have many choices for cross-platform tools. You can either use C++ that is quite hard for a lot of people but I would say most popular and most stable. You can use C# or Java with Xamarin but it is very expensive, unstable and it is kind vendor lock-in. You can also use JavaScript but you will lose a lot of performance that is very important on mobile. There are other options like using Lua, RubyMotion but they suffer same problems as JavaScript
Bottom line: There isn't convenient, modern, fast, open-source method for cross-platform development.
Swift bridges nicely with C and it is built on LLVM so you will be able to use it on Android with Android NDK and bridge it through JNI and Microsoft recently also adopted LLVM so you will be also able to use it there.
- o_____________o 11y ago> Bottom line: There isn't convenient, modern, fast, open-source method for cross-platform development. React Native
- SneakerXZ 11y agoIt is far from perfect, maybe one day. Currently it still suffers a lot of problems. Try to write a big application in it and you will soon discover it.
- netheril96 11y agoCare to elaborate?
- deleted 11y ago[deleted]
- rhodysurf 11y agoYou can use Go with gomobile https://github.com/golang/go/wiki/Mobile#sdk-applications-and-generating-bindings https://github.com/golang/go/wiki/Mobile#sdk-applications-an... . It works okay but the lack of support for exporting slices really limits things.
- smt88 11y ago> You can also use JavaScript but you will lose a lot of performance that is very important on mobile. I've used Appcelerator Titanium fairly extensively. The performance difference vs. native code is undiscernible. Unfortunately, JavaScript is an awful language to use, so there are tradeoffs. Maybe Titanium + TypeScript would be the sweet spot.
- SneakerXZ 11y agoIt depends what you do but once you have a complex application you will see problems with JavaScript.
- Einherji 11y agoI've had the complete opposite experience with Titanium, to the point where it was completely unusable.
- smt88 11y agoI found some things about it to be frustrating and buggy, but it was still less work than writing two different apps. My code was about 90% shared between devices.
- zensavona 11y agoHow does RubyMotion suffer the same (performance) problems as JavaScript? Doesn't it compile to C# bytecode?
- jsmith0295 11y agoIt actually uses the MacRuby stuff to compile to native. But the compiler can't optimize nearly as well as it can for statically typed languages, so there's a pretty significant performance hit on the ruby code itself, though once you've called a native library there won't be any difference.
- zwetan 11y ago> Bottom line: There isn't convenient, modern, fast, open-source method for cross-platform development. There is ActionScript 3 even if you think that "flash is dead" in the browser, for mobile and Desktop you can use Adobe AIR for server-side, command-line and shell scripts you use Redtamarin https://github.com/Corsaair/redtamarin https://github.com/Corsaair/redtamarin I'm the dev behind redtamarin but I welcome other projects like perfect. Even if the tech and language are different, different pros and cons, a lot of ideas and features are shared.