The most important reason to make the move from a dynamic (JS) to a static compiled language (Rust) is simply because moores law is plateauing. The only path to faster is either be less wasteful, or go parallel. With parallel being MUCH harder to do. Lots to do in less wasteful
There is decorator metadata to attach type information, but I believe it's been more or less unmaintained & un-upgraded since mid 2017. https://www.typescriptlang.org/docs/handbook/decorators.html#metadata …
-
-
Typescript is really a human-scale solution. It solves larger groups of people working much more reliably in JavaScript, it doesn't solve the machine problem of running faster/more efficient.
-
I've also come around a bit to Rusts macros, i'd love them to be more advanced in terms of what state they can maintain at compiletime (ie, an overlaid typesystem for shaders for instance). But other than that, its a lot safer to do these things at compiletime than runtime.
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.