Unfortunately, it is far from usable. It is unable to parse even basic Swift code.
Is there a solid technical or user requirement for that to be done? If there isn't, why do it?
Looks like an interesting project, though. I'll keep an eye on it.
It is a common design pattern to make the compiler output code in one of the OS SDK languages as a means to speed up development and ease prototyping.
It was just the output of the compiler.
Eiffel compilers are also transpilers as they use C as intermediate language.
Scheme compilers are also transpilers as many use C as intermediate language.
An ahead-of-time compiler can't make JS fast because it lacks the type information needed to do so. That's why you need just-in-time compilation for JS: you can only discover what types go where by running the code.
Have one field be an enum of its actual type. Or something along these lines.
I don't see why this is any more difficult than a normal jit that also doesnt have type information.
Is it swift to ES5, 6 or 7?
Update: looks like ES5.
swift -> es6 -> es5