Re:A tale of webpage speed, or throwing away React
by avasthe on Monday August 24, 2020 @07:30AM
(#24259622)
Tangentially related; is there no lint option (similar to use strict) in JS yet to ensure no methods / functions are dynamically called and thus allow effective dead code elimination?
[ Parent
| on HN ]
Re:A tale of webpage speed, or throwing away React
by cellularmitosis on Monday August 24, 2020 @07:42AM
(#24259684)
Not in vanilla JS. If you use the flavor of JS accepted by google’s closure compiler, then yes.
Re:A tale of webpage speed, or throwing away React
by avasthe on Monday August 24, 2020 @11:57AM
(#24261882)
If anything, it proves how ineffective standards committees are. Similar to the standard library proposal which seems to be not yet implemented.
Still better than C++ standard people who try to cram infinite complexity into 100 layers of templates every three years for sake of adding a feature as library instead of language feature, with utter ignorance towards debug build performance, compile times and error messages. I have lost respect towards them since I read a C++ performance report and didn't see the mention of inherent STL inefficiencies.