+ 1

Why has Microsoft NOT compile Typescript into webassembly by default?đŸ‘č

Today we have an AssemblyScript. This tool allows us to write Typescript with some special types and compile it into wasm. So, in my opinion we have a lot of codebases that will benefit from some speedup from compiling at least some parts of it written in Typescript into wasm. I don't think that it's easy for Microsoft to implement that feature. What are your opinions? Why haven't they still done that? Share your thoughts!

14th Feb 2020, 2:54 PM
Max Charlington
Max Charlington - avatar
1 Answer
+ 2
Because Typescript was originally intended to transpile into JavaScript. Wasm is great but relatively new and some things don't work really intuitively by now. Maybe Microsoft will change that later but for now JavaScript still dominates the web. Also Typescript is probably not the best language to compile into wasm, languages like Rust are more suitable for that in my opinion.
14th Feb 2020, 3:47 PM
Aaron Eberhardt
Aaron Eberhardt - avatar