4 ms·
It's true in theory, but often the actual implementations make the point moot. From the article, it looks like the optimization effort wouldn't go to XUL. > N
by makeitdouble 4y ago
It's true in theory, but often the actual implementations make the point moot.
From the article, it looks like the optimization effort wouldn't go to XUL.
> Nobody was realistically touching XUL layout code if they could avoid it. Part of it was just a matter of priority (we’d rather make the web faster for example).
We're hitting the same situation with Javascript, which in theory should be slower than most static languages, yet the sheer amount of work and optimizations done to its engines make it faster in real world tests.
- deleted 4y ago[deleted]
- felixgallo 4y agoCould you name a few static languages that aren’t several orders of magnitude faster than JavaScript?
- nooorofe 4y agono sure it is relevant, probably all heavy lifting done in C++ and Rust https://searchfox.org/mozilla-central/search?q=render&path=&case=false®exp=false https://searchfox.org/mozilla-central/search?q=render&path=&...
- makeitdouble 4y agoThe phrasing was poor, but I had in mind a whole engine or stack, and not just a language in isolation. Basically benchmarks like these: https://medium.com/deno-the-complete-reference/deno-v-s-go-hello-world-performance-comparison-b15c2c7f5ad https://medium.com/deno-the-complete-reference/deno-v-s-go-h... https://programming-language-benchmarks.vercel.app/typescript-vs-kotlin https://programming-language-benchmarks.vercel.app/typescrip... To note, the first link has a follow-up with Go properly getting faster than deno when fitted with a better http server. Which is kinda my point: the tooling available and level of optimizations can easily have more impact than the language's inherent speed.
- mpweiher 4y ago> Javascript ... faster [than static languages] in real world tests Er...citation needed? All the benchmarks I have seen, particularly real-world, show it to be significantly slower than static languages. For example: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/node-gcc.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... See also: https://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ https://sealedabstract.com/rants/why-mobile-web-apps-are-slo...