Re:What if you knew how computers work? (2015)
by cbsmith on Saturday October 10, 2020 @01:59AM
(#24736951)
The ol' sufficiently smart compiler myth. It's a classic.
[ Parent
| on HN ]
Re:What if you knew how computers work? (2015)
by aszen on Saturday October 10, 2020 @12:54PM
(#24740214)
See the Elm to JS compiler, it does deep unused code elimination at the function level so you only ship the code you actually use (or the functions u actually use, even inside libraries).
The closure js compiler is also pretty good if you prefer writing js.
If we only start using better languages in our applications we could improve performance quite a bit.
Re:What if you knew how computers work? (2015)
by cbsmith on Sunday October 11, 2020 @12:37PM
(#24746997)
Dead code elimination has been available in C compilers since... so long ago I can't remember. It's not that compilers can't do it, but much like the halting problem, they really can't catch it all.