3 ms·
They both have the same root business case: make Scheme palatable to mere mortals, by adding a familiar syntax and abandonning some features: no more macros, an
by fab13n 15y ago
They both have the same root business case: make Scheme palatable to mere mortals, by adding a familiar syntax and abandonning some features: no more macros, and most data structures made mutable.
Where Lua diverges from Javascript:
* time has been taken to design it properly;
* backward compatibility has been broken more than once, to allow cleaning up design mistakes.
Also, it's not accurate to describe Lua as "designed by academinc": early developments have been driven by Petrobras' needs, more recent ones by the gaming industry and some prominent users such as Adobe's Photoshop Ligthroom. If you look at Lightroom team's rants about Lua 5.0 (http://www.lua.org/wshop05/Hamburg.pdf http://www.lua.org/wshop05/Hamburg.pdf), then at the Lua 5.0 -> Lua 5.1 diff, you'll see that the latter is closely inspired by the former.
- omaranto 15y agoTraditionally in Scheme all data structures are mutable (the PLT folks made the gutsy move of making conses immutable only recently and they're basically the only ones doing that, I think), so no difference there. But both Lua and JavaScript are organized around hashtables rather than lists; maybe that's the biggest difference data structure-wise.
- omaranto 15y agoIf an academic at a university designs a language for Petrobras it's not accurate to say it was designed by an academic?
- Symmetry 15y agoIts true but misleading.
- deleted 15y ago[deleted]