Having spent a lot of time looking pretty hard at Lua, LuaJIT, and embeddedable variants of JS(duktape and the like) I think that's a bit of a stretch.
It's pretty trivial to induce JS memory leaks[1] that can be brutal on embedded platforms. We had a prototype project written in JS and Lua, same functionality but hit issues like this pretty often. Like most memory leaks they weren't straightforward to track down as well.
For my money LuaJIT still reigns supreme despite the fact that it's not under active development any more[2].
[1] http://point.davidglasser.net/2013/06/27/surprising-javascri...
[2] https://www.freelists.org/post/luajit/Looking-for-new-LuaJIT...
All these "Let's do Lua, but right" languages fill me with both hope AND dread. This also shows what Lua could have become if a few more bold decisions were made. But I guess without a large commercial entity behind it, that was inevitable.
Is there list of lua-ish (especially wrt. speed and easy C integration) languages somewhere? I did not know this one for example.
[1]: http://squirrel-lang.org/
[2]: http://wiki.squirrel-lang.org/mainsite/Wiki/default.aspx/Squ...
What do you mean by ‘almost’? You cannot have fair separate threads of execution or substitute function’s global environment in javascript, but this is the other way ‘almost’. What features does js have beyond syntactic sugar and second-hand techniques?
(edit: sorry this is regarding iOS)
I’ve ended up doing a lot of JS with React Native for “app-y” mobile apps though.
I've embedded both and used them heavily in my various window managers, and these days I personally recommend embedding JavaScript over Lua if possible.
But when a small, portable and lightweight language is needed, there's also Sparkling[1], which is like the best ideas of JavaScript with the minimal footprint and portability of Lua.
[1]: http://h2co3.github.io/sparkling/