<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Nathan,<div class=""><br class=""></div><div class="">This is probably best brought up on swift-dev (CC'd), since this is (initially) mostly a compiler problem and not related to the build tools (the package manager).</div><div class=""><br class=""></div><div class=""> - Daniel</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 25, 2017, at 4:50 PM, Nathan Gray via swift-build-dev <<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">Is anybody else out there excited by the idea of cross-compiling Swift to WebAssembly? My impression is that almost all of the pieces are in place and that the remaining challenges are likely build related. For example, the Clang that ships with Xcode 9 includes support for wasm32 as a compilation target. Has anybody thought about this or pursued it?</div><div class=""><br class=""></div><div class="">If you're unfamiliar with WebAssembly take a look at <a href="http://webassembly.org/" class="">http://webassembly.org</a>. In essence, they're defining a VM that runs in the browser, and all the major browsers are supporting it. We're talking about being able to code for the web without Javascript. Imagine being able to write Swift libraries that could be compiled for iOS, Android, Linux, *and* the web! It's currently possible with C and C++, and Swift is a promising candidate.</div><div class=""><br class=""></div><div class=""><div class="">As I understand it, the first obstacle is getting a version of the Swift standard library that's compiled to llvm bitcode using the "wasm32" target. Does that sound achievable?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">-Nathan</div><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature">Functional Programmer, iOS Developer, Surfs Poorly<br class=""><a href="http://twitter.com/n8gray" target="_blank" class="">http://twitter.com/n8gray</a></div>
</div></div>
_______________________________________________<br class="">swift-build-dev mailing list<br class=""><a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-build-dev<br class=""></div></blockquote></div><br class=""></div></body></html>