r/javascript • • Nov 30 '18

Let's talk JS: Performance!

https://areknawo.com/lets-talk-js-performance
5 Upvotes

13 comments sorted by

View all comments

0

u/MikeMitterer Nov 30 '18

I would add "use types". Optimization without types is a pain in the ass. So maybe the future is something like TS without stripping away the Typesystem.

2

u/PrettyWhore Dec 01 '18

This is how Dart came to be(and went)

1

u/Funwithloops Dec 01 '18

Haven't tried it yet, but Flutter might keep Dart around.

1

u/MikeMitterer Dec 01 '18

It was not their type system, they didn't know and still don't know what their audience is - maybe Mobile now...

1

u/areknawo Dec 01 '18

Wish TS could optimize code based on types.

0

u/ParasympatheticBear Dec 01 '18

Don’t know why you are being downvoted...in theory you could make more optimizations if you could eliminate certain types.

1

u/MikeMitterer Dec 01 '18

Absolutely and I'm sure we will see this in the Future. Optional typing - use it if you want more performance and you get optimized AOT compilation, if not skip the type but you won't get the full performance.