Status of iOS and Android support?

Joakim via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Fri Mar 4 10:24:14 PST 2016


On Friday, 4 March 2016 at 17:01:11 UTC, Jeremy DeHaan wrote:
> Hey all,
>
> I was just curious if there had been any news for iOS and 
> Android support in LDC. I'm currently working on a first draft 
> for a GSoC proposal and parts of it have to do with Android, 
> iOS, and LDC.

Mind sharing what you want to do with mobile?

> Are they more or less working? Can anyone point me to where I 
> should get started if I want to use those features? If memory 
> serves, there was separate branches for iOS and Android 
> respectively.

For a purely native app, Android should work fine as almost all 
tests pass with all optimizations: only two unit test blocks 
assert across two modules, core.thread and std.math.  I'm 
currently trying out JNI, for when you need to call Java-only 
APIs that Android doesn't make available directly through C, 
should have something to say about that this weekend.

You should take a look at the wiki to get started with Android:

http://wiki.dlang.org/Build_LDC_for_Android

Even if you don't want to build from source, you can use the 
instructions on building sample apps there along with the 
pre-packaged alpha compilers for Android:

https://github.com/joakim-noah/android/releases

Unfortunately, you cannot just use the official ldc release, as 
there are still modifications to llvm and ldc that have not been 
merged upstream, while almost all tweaks to druntime and phobos 
have been merged.  I'll try to get those remaining changes in 
soon.


More information about the digitalmars-d-ldc mailing list