The Dwarf is basically a Linux system on which you can run pretty much whatever you like as long as the CPU handles it.
I don’t know if Lua is installed on it by default (I doubt it), but if you can compile it yourself, I don’t see why it wouldn’t run. However you can use Python already.
I don’t know much about MaxMsp.