Why HTML/JavaScript/CSS are not compiled languages and will they ever be?

后端 未结 9 1476
死守一世寂寞
死守一世寂寞 2021-01-31 02:36

Why HTML/JavaScript/CSS are not becoming compiled languages (or maybe even merge into a single compiled language)? What if browsers were running \"Browser Virtual Machine\" and

9条回答
  •  感动是毒
    2021-01-31 03:12

    See here for a previous discussion on the matter

    Not all of the reasons given are necessarily valid, but one important one is that, unless you're Google, server-side CPU cycles are a lot more valuable than client-side cycles: so it's easier to have the client compile/optimize what is quite often dynamically generated HTML/JavaScript, rather than the server.

    Ken

提交回复
热议问题