I don't think Apple open sourced either a Swift frontend, nor a runtime. In theory you don't need the first if you take bitcode from the closed-source compiler (but different LLVM versions might be a problem). But you do need the runtime somehow.
- Alon On Wed, Apr 8, 2015 at 6:49 AM, Andrew Halls <[email protected] > wrote: > I've been using Swift mostly for the last 6 months and have grown to > appreciate it. I have this daydream of using the same language and other > tools for the little bit of backend coding I do on node.js ... that would > mean a Swift to Javascript compiler. The Apple's implementation of Swift > is built on LLVM as well as this project. I don't know anything about it > but seems there could be a little bit of plug and play. This doesn't > address the whole runtime environment issues and I'm not sure if Apple has > open sourced a basic standard Swift run time that could be ported, like > they have done objective-c in the past. Lots of questions ... > > First Question: how hard would it be to plug in the Swift front end to > LLVM to the emscripten backend? > > I did a quick search here with no discussion on Swift. A broader google > search indicates a few nascent efforts back in June when Swift was first > announced. But I don't see any mentions of late. > > Second Question: > Is anyone interested in starting a project that would explore this whole > approach ... or point me to an active effort that I can join? > > Many Thanks! > > -- Andrew > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
