r/javascript • u/areknawo • Nov 30 '18
Let's talk JS: Performance!
https://areknawo.com/lets-talk-js-performance0
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.
1
2
u/PrettyWhore Dec 01 '18
This is how Dart came to be(and went)
1
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...
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.
0
Dec 01 '18
[deleted]
2
u/HarmonicAscendant Dec 01 '18
Do you think we will look back at this point in programming history when every tech blog post was accompanied by infantile GIFS and Emoji as some kind of weird cultural phenomena?
Maybe I am wrong, and these posters are actually very advanced five year olds who we should encourage :)
(I can't comment on the actual content, which might be great, I didn't read the article, the GIFs made me throw up so I could not continue...)
1
u/areknawo Dec 01 '18
Yep, phenomena. I used to have the same feeling some time ago, but the more of them I saw, the less annoying they became for me. But there's truth to your words. Maybe images might be better way to express some ideas. As for emojis - I don't think they are as bad as GIFs 🤔
1
u/areknawo Dec 01 '18
Sorry for making you feel bad. Will try to do better next time. I'm just starting and I know that there might be some mistakes to fix. Anyway, advice has been noted.
4
u/HarmonicAscendant Dec 01 '18
It is cool you are writing articles! Glad you are taking the criticism positively, with this attitude you will reach all your goals and win.
25
u/Recursive_Descent Dec 01 '18
Ok, so no offense but you totally miss the point of why JS is hard to compile. It's because JS is dynamic, not because "its goal was to be portable and cross-platform". Java is also portable and cross-platform, but it's much easier to compile.
Your optimization tips are also frustratingly unexplained and a mix of nonsense and real info.