G
G
Gothanidze2017-02-22 10:27:31
JavaScript
Gothanidze, 2017-02-22 10:27:31

Can Lua potentially replace Javascript?

Hello. I apologize in advance for such an abstract question. Can Lua potentially replace Javascript? On the client and server side, and become the de facto language applicable to the web. By replace, I'm not saying take over the entire web. Interested in the very possibility of creating sites and web applications on Lua - creating both the front part and the back part, yes, it’s clear that there are no such libraries, but still, if someone decides to implement something like this, can Lua become a kind of general-purpose language for the web . Or not? Or everything will rest on the fact that Lua will have to be compiled into JS, if so, then the point in using Lua is generally meaningless. And then all this JS code will be given to the browser. For the browser accepts only JS. Then there is the question of browser support for Lua. Which browser giants will never have. Then there is the question of implementing a Lua-enabled browser. Yes, it will look like a fake, but a lot can be done with the help of the community. What do you generally think about this? Does such an idea have the right to life? And are there any more suitable candidates for the role of "JS killer", I repeat, we are not talking about total market capture, by killer I mean the technical aspects of the language and its capabilities. After all, any high-quality and reliable technology needs to be tested before being offered to the user and developers. And those who need quality and reliability will find what they need. we are not talking about a total market capture, by a killer I mean the technical aspects of the language and its capabilities. After all, any high-quality and reliable technology needs to be tested before being offered to the user and developers. And those who need quality and reliability will find what they need. we are not talking about a total market capture, by a killer I mean the technical aspects of the language and its capabilities. After all, any high-quality and reliable technology needs to be tested before being offered to the user and developers. And those who need quality and reliability will find what they need.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
Y
Yustas Alexu, 2017-02-22
@Gothanidze

Can Lua potentially replace Javascript?

No. Giants such as Google tried to do this, but they did not succeed.
You answered your own question.

E
Egor Zhivagin, 2017-02-22
@Krasnodar_etc

What about the meaning? If it compiles to JS, then its functionality does not go beyond JS.
It's like making a separate browser with sass instead of css. Convenient but not worth it

O
OnYourLips, 2017-02-22
@OnYourLips

Can Lua potentially replace Javascript?
The chance of this is much lower than the likelihood that in the next 3 seconds the US will declare itself a satellite of North Korea and take the Belarusian ruble as the national currency.

R
Rafael™, 2017-02-22
@maxminimus

js is forever, accept it, it's a classic, like si
even on the server - node.js
but php will do for a lot of things
don't listen to sectarians and their ads
js is a great language in which you can do anything

V
Vitaly Stolyarov, 2017-02-22
@Ni55aN


On the server without problems (see Nginx + Lua), only there are enough ready-made solutions for convenient work performance
gamedev.stackexchange.com/questions/56189/why-is-l...

K
Konstantin Kitmanov, 2017-02-22
@k12th

Well, what's the point of replacing one dynamic scripting language with another dynamic scripting language? What benefits will this provide? what tasks will it solve, what restrictions will it remove? I have nothing against Lua, but why is it better than JS?
You can do it right now (at least Nginx and Tarantool are scripted in Lua), there is Lua.js on the client , but it makes sense only you know only Lua, you need to urgently make a website and there is no time to learn something else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question