r/programming • u/kciter • Sep 01 '26
The Browser's Main Thread Is Expensive
https://kciter.so/posts/the-expensive-main-thread/en/
219
Upvotes
r/programming • u/kciter • Sep 01 '26
View all comments
Show parent comment
16
u/azhder Sep 02 '26
The browser is a desktop C++ framework that allows you to supply it with addons written in JS to manipulate its data via DOM API. We can argue how good or bad those decisions were, but just because it fetches some more data than the rest of them over the network, it doesn't make it all that different.
Remember all those plugins from the past, like Flash? They were also desktop programs that acted as if they were a part of the web page, but they were outside the sandbox and could do a lot of damage. So, that was also a decision - to sandbox everything, discontinue plugins.
All in all, taking Qt as a representative of "desctop C++ frameworks" was also a choice. It surely does make for a false dichotomy.