Re: Lua.
I will also note many speedrunning and emulators in general use it.
https://fceux.com/web/help/LuaFunctionsList.html is what most want to be when they grow up as far as lua sporting emulators, though some do have subtly different interpretations (some of the arcade stuff most notably).
There are versions for the DS as well that at one point housed notably homebrew scenes of their own -- plenty of other languages got interpreters/compilers made for the DS but none of those got any kind of notable sub section of the scene using them, Lua on the other hand had some good stuff spread over a couple of the interpreters.
For an example emulator script using it then I usually point at
https://www.romhacking.net/forum/index.php?topic=18717.0
https://www.dropbox.com/s/b2kuma6zs89di8n/Metroid.lua
It is pretty clean to read, has some nice bounds checking to ponder, does some stuff that would be enormously difficult to do as a conventional ROM hack including fancy graphical results... nice little learning tool as a result.