4 ms·
The stated goal of the article is to reduce binary size. If you want to use C++ and STL you already have decided that binary size is secondary. By the way, the
by coliveira 4y ago
The stated goal of the article is to reduce binary size. If you want to use C++ and STL you already have decided that binary size is secondary. By the way, the article even mentions rewriting some routines in assembly.
- lozenge 4y agoThis is like saying "how to reduce the load time of your web app - remove all CSS". Technically true, but not useful for most web apps. People can want faster loading without removing all styling.
- ipaddr 4y agoIt's more like saying remove react and use pure javascript.
- Kranar 4y agoI don't see how your claim follows or would be true. Replacing CSS with the equivalent JavaScript would most certainly not reduce load times. In fact you should use CSS as a means of reducing load times.
- wtetzner 4y agoThey didn't suggest replacing it with JavaScript.
- Kranar 4y agoThey didn't really suggest anything. Feel free to propose a way of replacing CSS functionality that results in faster load times.
- dgfitz 4y agoI'd say the obvious answer in this case would be: replace it with nothing. The web would be a touch uglier, but it sure would be faster.
- Kranar 4y agoThat's a different discussion and frankly not something for developers to decide. If a product is designed to behave and look a certain way, then as an engineer you have the job of determining the best way to accomplish that objective. If your decision is to forgo using CSS for an alternative, fine but no one has provided what that alternative is. I'd much rather use CSS instead of Javascript or going back to the days of hacking <table> to get a certain layout.
- colonwqbang 4y agoI think that's quite unfair. The article contains many different tips on how to reduce size. Rewriting in a different language was just one of them, pretty far down on the list. "Write in C instead of C++" is also clearly not the same as "remove all your code"...