I've (sorta) compiled lua 5.1 for this. My 3ds is softbricked, so could someone test one of these, please? Just put the contents of them in the root folder on linux for 3ds. Not sure if it works, but, give it a try
download 1: https://www.dropbox.com/s/wo8ahjtwwec73zj/Lua3DS.tar.gz?dl=0...