News for hackers. Stuff that matters.
Re:A History of Lua (2001) by babarock on Wednesday August 10, 2022 @08:54AM (#32411102)
Lua used to fill a niche very similar to Javascript: small lightweight OOP language that focuses on being embedded in a larger C program. Javascript won this war, mostly based on the explosion of the Web and the insane optimization work that was put on JS engines during the late 2000s.

JS ate Lua's cake, not on pure technical merits (the two languages are very similar) but because of their respective environments.

Re:A History of Lua (2001) by runevault on Wednesday August 10, 2022 @10:20AM (#32412431)
For reference JS isn't actually object oriented, it is a prototype language. You can fake it being OOP within that style, but it isn't really OOP, even if you can code in it that way.
Re:A History of Lua (2001) by babarock on Wednesday August 10, 2022 @12:21PM (#32414527)
If we want to be pedantic, prototypal inheritance is a kind of OOP[1]. What you're talking about is referred to as "classical OOP" (OOP using classes).

[1]: https://en.wikipedia.org/wiki/Prototype-based_programming

Re:A History of Lua (2001) by Atomskun on Wednesday August 10, 2022 @11:38AM (#32413797)
Just like Lua, hence their similarities.
Re:A History of Lua (2001) by runevault on Wednesday August 10, 2022 @12:05PM (#32414279)
That's fair. I didn't realize Lua was also a prototype language as I've barely looked at it. Been curious but it never fit my current set of curiosities.