by paulddraper · 5y ago · 0 comments
If it's a language, then it gets to decide what ```let foo: string = "whatever"``` means.
If it's a compiler for an existing language, then semantics have already been decided, and the compiler has to implement it.
But none of the precludes abstraction to reduce data type conversions.
I'm not sure what type of compiler to label that as, but that's the goal.
A compiler. From TypeScript to web assembly.
Certainly it has its work cut out for it to have TS semantics (that is, JS semantics) and be optimal for target web assembly.
I can't think of any scripting languages that are optimal for targeting low-level runtimes.
I wish AssemblyScript the best; seems like a hard problem.