Re:Reining in the thundering herd: Getting to 80% CPU utiliz...
by IshKebab on Sunday August 15, 2021 @02:27PM
(#28191081)
Typescript is a nicer language than Python in many ways and it doesn't suffer from Python's crippling performance issues or dubious static typing situation. Plus you can run it in a browser so there's only one language to learn.
[ Parent
| on HN ]
Re:Reining in the thundering herd: Getting to 80% CPU utiliz...
by franga2000 on Monday August 16, 2021 @02:58AM
(#28195620)
Typescript would be nice if it weren't essentially just a bunch of macros for JavaScript. As it is now, as soon as you want to run it, you lose all the benefits of it (including many performance optimizations that could be made in a statically typed runtime) and of course, all the usual footguns of vanilla JS still apply. It's a great development tool though, I'll give you that.
Re:Reining in the thundering herd: Getting to 80% CPU utiliz...
by IshKebab on Monday August 16, 2021 @05:20AM
(#28196296)
> just a bunch of macros for JavaScript
It isn't any macros. Not sure what you're talking about.
> all the usual footguns of vanilla JS still apply
Yeah that does suck but fortunately ESLint and Typescript have options to prevent most of them. If you use Deno they're enabled by default.
> including many performance optimizations that could be made in a statically typed runtime
Also true, but we're comparing it to PHP and Python.
Re:Reining in the thundering herd: Getting to 80% CPU utiliz...
by TekMol on Sunday August 15, 2021 @02:31PM
(#28191130)
You cannot run TS in a browser.
You can compile it to JS or to Webassembly. But you can do that with every language.