Re:XUL Layout has been removed from Firefox
by felixgallo on Sunday April 02, 2023 @09:10AM
(#35410132)
Could you name a few static languages that aren’t several orders of magnitude faster than JavaScript?
Re:XUL Layout has been removed from Firefox
by nooorofe on Sunday April 02, 2023 @01:04PM
(#35412647)
no sure it is relevant, probably all heavy lifting done in C++ and Rust
https://searchfox.org/mozilla-central/search?q=render&path=&...
Re:XUL Layout has been removed from Firefox
by makeitdouble on Sunday April 02, 2023 @01:34PM
(#35412995)
The 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-h...
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.
Re:XUL Layout has been removed from Firefox
by mpweiher on Sunday April 02, 2023 @11:58AM
(#35411925)
> 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/...
See also:
https://sealedabstract.com/rants/why-mobile-web-apps-are-slo...
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.