News for hackers. Stuff that matters.
Re:Swift Ported to Android by ungzd on Thursday February 25, 2016 @09:52AM (#11174756)
Why Android requires special support? Isn't it just linux with quite standard libc and ABI to interact with Java counterpart?
Re:Swift Ported to Android by sspiff on Thursday February 25, 2016 @09:57AM (#11174810)
If you look at the changes, you'll see most things are pretty simple:

* CMake files are expanded to handle an Android target.

* Code that checks for specific defines or values like __FREEBSD__ || __LINUX__ now have an added condition to also check for __ANDROID__.

* Some tooling scripts to integrate adb into the Swift SDK.

* Some minor fixes elsewhere.

So, special support is a really minimal set of changes that any platform would need.

Re:Swift Ported to Android by ewmailing on Thursday February 25, 2016 @03:05PM (#11177381)
In addition to the Bionic short-comings already mentioned here, there appears to be other work to deal with the fact that things must be cross-compiled in a way that you can build a compiler for your host machine, but generate Android binaries (and for each architecture).

Also, there are also a bunch of support things for libICU which is not an official component on Android we are allowed.

Re:Swift Ported to Android by krschultz on Thursday February 25, 2016 @10:26AM (#11175008)
Android uses Bionic libc which has its quirks. The Android kernel also has several patches that were at one time quite controversial, though many have moved upstream to the mainline.
Re:Swift Ported to Android by blasteye on Thursday February 25, 2016 @10:50AM (#11175176)
Its not just quirks, but bionic doesn't support all the libc apis. For example, bionic does not support pthread_cancel.
Re:Swift Ported to Android by pjmlp on Thursday February 25, 2016 @11:30AM (#11175508)
No, for example UNIX IPC isn't available.

Google has ripped most of the stuff they see as fluff for Android.

Edit: Any C and C++ API not listed as stable and public on the NDK docs is not guaranteed to exist in all devices.

Re:Swift Ported to Android by jacquesm on Thursday February 25, 2016 @10:38PM (#11179667)
Google has ripped out most of the stuff that would have made smart phones actual computers rather than smart terminals.
Re:Swift Ported to Android by pjmlp on Friday February 26, 2016 @01:06AM (#11180045)
If you think of C and C++ point of view, yes.

On the other hand the Frameworks are quite expressive for applications, but one needs to use Java 6.5 or resort to third party solutions like retrolambda and Kotlin.