6 ms·
TypeScript transpiles into some target JS version (ES5, ES6, ES2016, ES.Next). It is a different language but it gets executed as JS.
by berdon 9y ago
TypeScript transpiles into some target JS version (ES5, ES6, ES2016, ES.Next). It is a different language but it gets executed as JS.
- allendoerfer 9y agoI think, that he was trying to say, Typescript feels like C#, so why not use the more performant option, if you use something similar but slower anyway.
- rosser 9y agoHow many platforms does C# run on, with runtimes available under which licenses, again? EDIT: Not defending Slack's choice of JS, or the consequences of that choice on its memory footprint, CPU utilization, or excess consumption of my battery in any way, but it's not purely a matter of "which one is the most efficient/performant/whatever?".
- mastax 9y ago.NET Framework | Proprietary | Windows 98 or later .NET Micro Framework | Apache 2.0 | Win+Bare Metal .NET Core | MIT License | Win+macOS+Linux(x64+armhf) Xamarin | Proprietary | Android, iOS, and Windows mono | MIT License | Linux Mac OS X, iOS, tvOS, watchOS Sun Solaris BSD - OpenBSD, FreeBSD, NetBSD Microsoft Windows Nintendo Wii Sony PlayStation 3 Sony PlayStation 4 Of course "having a runtime" is not the same thing as "having a good way to write cross-platform applications".
- rosser 9y agoThank you. Are those runtimes all bytecode compatible? Or is that another layer of developer cognitive burden that the more efficient/performant/whatever choice entails, atop the whole "having a good way to write cross-platform applications" tangle?
- k__ 9y agoI don't know if TypeScript is the culprit here. Just look what Microsoft pulls off with VSCode.
- k__ 9y agoI didn't look into the JS TypeScript compiles to, but I saw some output from Reason/OCaml and it looked much more streamlined for performance than what I would write in JavaScript myself. Much more use of integers than strings etc. So I could imagine that compile-to-javascript languages could get you much faster apps than traditional JS.