by dpezely · 7y ago · 0 comments
Today, unlike in 2013 when they started, there are other options.
For others considering code-sharing, another option not mentioned in their article is Rust for the core with Swift and Kotlin. Between bindgen, futures, serde_json and non-nullable pointers in Rust, those would satisfy their stated subcategories today.
Companion templates are explained here: (January 2019)
Medium.com/visly/rust-on-ios-39f799b3c1dd
Medium.com/visly/rust-on-android-19f34a2fb43
(No affiliation other than starting to proceed down this path myself.)
For Common Lisp heads, there's also MOCL, which seemed quite reasonable when I explored it years ago: wukix.com/mocl
1. People may be more willing to learn Rust. I much prefer the language itself, but also it's clearly on the rise, so it may feel like a better learning investment.
2. The standard library is broader and the package ecosystem is easier to work with, so you might be able to have a more standard stack with fewer proprietary bits.
3. One complication with integrating multiple languages is making different memory management strategies coexist. Rust's type system seems to have ways of making that easier, e.g. neon-bindings.com
Rust is built for memory and thread safety. Also the much better build system and open source ecosystem.
That's debatable ;)