Why didn't they fork the actual swift compiler that does all the lexing, parsing, syntax checking, type checking, SIL generation, LLVMIR generation, and add a final phase that compiles to JS?
This whole project seem like a lot of duplicated, wasted (and error prone) work
Wondered the same thing. I thought maybe a sil to js project could be a good target, keeping enough semantics to be able to be smart in the generated js code, rather thab llvmir.
I looked for such a project a few days ago but didn't find anything.
This whole project seem like a lot of duplicated, wasted (and error prone) work