B
B
belyy_lis2021-11-10 02:55:36
Mobile development
belyy_lis, 2021-11-10 02:55:36

Swift, Kotlin vs C++. What is more native for mobile devices?

I'll talk right away.

I understand that Apple is behind Swift, which is developing this iOS.
I understand that now almost all applications for Android (native) are written in Kotlin.


I myself am developing with React Native. Yes, it's cool to write code for 2 platforms, but you may run into problems with the lack of the necessary functionality during development. There is a solution - learn 2 languages ​​and write native libraries and modules in them for use through the JavaScript bridge.
But this prospect does not suit me very much, because. in addition to JavaScript, I also plan to develop towards microcontrollers (a hobby), where they use C and C ++, for startup servers and neural networks you need to be able to write in Python. There is also a super cool Flutter that I have already tried and a ton of other interesting things.

In the world of iOS, I swim - I don’t know what is there with nativeness.
But in the Android hierarchy, the origin is C++. Because Kotlin is above Java and Java is above C++.

The question is not about what exactly you need to learn in order to write code that works. How is it possible to use one C++ to write modules for mobile platforms? I know there is cross platform Qt and QML. But I can't call myself a C++ expert.Can I write native libraries for iOS and Android, or are there any restrictions and crutches associated with this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jacen11, 2021-11-10
@Jacen11

Can I write native libraries for iOS and Android, or are there any restrictions and crutches associated with this?

it is possible even in assembler, but there are no such suicides. Maximum projects for entertainment. While you will be writing one lib for both platforms on the plus side, others will already write 10 separate ones

V
Vladislav Resly, 2021-12-10
@Resly34

Almost impossible.
It is possible to implement, but practically no one does this, because it is simply inefficient, much faster, and less laborious to write separately

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question