<story><title>Running Swift code on Android</title><url>http://romain.goyet.com/articles/running_swift_code_on_android/</url></story><parent_chain></parent_chain><comment><author>e28eta</author><text>A coworker showed me this project, which does the same but also includes .NET and regular Java: &lt;a href=&quot;http:&amp;#x2F;&amp;#x2F;elementscompiler.com&amp;#x2F;elements&amp;#x2F;silver&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;elementscompiler.com&amp;#x2F;elements&amp;#x2F;silver&amp;#x2F;&lt;/a&gt;&lt;p&gt;Looking at their github, they appear to be making progress against re-implementing the Swift core library by binding to native classes with similar functionality. Like Arrays: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;remobjects&amp;#x2F;SwiftBaseLibrary&amp;#x2F;blob&amp;#x2F;master&amp;#x2F;Source&amp;#x2F;Array.swift&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;remobjects&amp;#x2F;SwiftBaseLibrary&amp;#x2F;blob&amp;#x2F;master&amp;#x2F;S...&lt;/a&gt;</text></comment>
<story><title>Running Swift code on Android</title><url>http://romain.goyet.com/articles/running_swift_code_on_android/</url></story><parent_chain></parent_chain><comment><author>jevinskie</author><text>Have you thought about extracting the XAR archive of LLVM bitcode from Xcode 7.0+&amp;#x27;s libswiftCore.dylib&amp;#x27;s __LLVM,__bundle section and linking your NDK project against that? You&amp;#x27;ll probably quickly run into linking dependencies outside of libswiftCore but perhaps you could A) stub out those missing dependencies B) build them from opensource.apple.com&amp;#x27;s CF, libobjc, etc projects or C) try and extract the __LLVM,__bundle&amp;#x27;s of the dependencies themselves. Rinse and repeat until everything works? :)</text></comment>