<div dir="ltr">Hello,<div><br></div><div>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><br></div><div>If you&#39;re unfamiliar with WebAssembly take a look at <a href="http://webassembly.org">http://webassembly.org</a>.  In essence, they&#39;re defining a VM that runs in the browser, and all the major browsers are supporting it.  We&#39;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&#39;s currently possible with C and C++, and Swift is a promising candidate.</div><div><br></div><div><div>As I understand it, the first obstacle is getting a version of the Swift standard library that&#39;s compiled to llvm bitcode using the &quot;wasm32&quot; target.  Does that sound achievable?</div><div><br></div><div>Thanks,</div><div>-Nathan</div><div><br></div>-- <br><div class="gmail_signature">Functional Programmer, iOS Developer, Surfs Poorly<br><a href="http://twitter.com/n8gray" target="_blank">http://twitter.com/n8gray</a></div>
</div></div>