T
T
tantumus212021-08-09 12:03:08
Web development
tantumus21, 2021-08-09 12:03:08

Why are there no alternatives to JavaScript in browsers?

Why don't browsers include support for some new language in addition (so as not to break the Internet) to JS? A language that would be essentially the same JS, but developed from scratch, taking into account all the weaknesses of its predecessor? It turns out that as JS develops, it becomes more and more complicated and confusing, because it is no longer possible to fix previous shortcomings, you can only add something new to what is already there. And by creating and implementing a “new javascript” into browsers, it would be possible to eradicate everything that is not used, is already inefficient and that JS pulls along like a dead weight.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor Zhivagin, 2021-08-09
@tantumus21

Do you really understand what "new language support" means? This is a whole fucking interpreter that needs to be pulled into the browser (if the language is interpreted, there is webassembly for compiled ones ). And the browser consumes so much memory

A language that would be essentially the same JS, but would be developed from scratch

Seriously, can you imagine the scale of the work? Try to write an interpreter sometime at your leisure)
It turns out that as JS develops, it becomes more and more complicated and confusing,

IMHO, over the past 5 years, JS has become ... well, not that simpler, but definitely more convenient. I understand what problem you are talking about, but the new JS will not allow you to drop support for old JS language constructs. It’s just that a PL will be added, where in 10 years the same problem will appear with outdated things that cannot be abandoned

M
mkone112, 2021-08-12
@mkone112

It seems to me that the development of a solution to replace js in terms of labor intensity is comparable to the construction of a new city the size of St. Petersburg from scratch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question