7 ms·
> Portability is still a good reason to use C++. If you want to be portable between Android and iOS, for example. > C# on either platform requires you to ship
by zurn 14y ago
> Portability is still a good reason to use C++. If you want to be portable between Android and iOS, for example.
> C# on either platform requires you to ship an extra 10Mb of libraries, and (especially on older phones) adding C# overhead on top of everything else just doesn't make sense.
These sound like two different problems. I think C++ is much less portable than C# but you might be right about the code bloat problem. Though C++ apps also quickly pick up bloat.
Are you saying there is a common set of C++ libraries that ship with both iOS and Android that you could dynamically link to in your app portably? Or are you saying that you can get by with shipping less library code on C++ because
there isn't a single big interlinked standard library?
- SomeCallMeTim 14y ago>Are you saying there is a common set of C++ libraries that ship with both iOS and Android that you could dynamically link to in your app portably? I do link in some of my own libraries, but the code compiles to less than 1Mb. Mostly what I link to is OpenGL, which is available on iOS and Android, and a few standard Posix APIs.