2
I intend to use a scripting language attached to Java SE applications, my fear is to develop something and later have difficulties in porting it to Android platform. I am not professional in the area, but I know the importance of portability, because the mobile world today is reality for a long time, and as I sometimes do some utilities to help in some tasks of the day, I would certainly like to port them to Android (The most popular currently regarding mobile).
I saw that Google did not include the javax package and in it we have the Scriptengine. Today I researched and found an alternative, the BSF Apache. The problem is that I don’t know if this business is still in active development...
What do you suggest? I’ve never dealt with games (it’s also not my interest here), but I know that people often use Lua for scripting (to extend the functionality of apps so they don’t need to recompile all of them). And on Android, as you do?
More details
I need a scripting language because:
- sometimes I do web scraping and need to change the code frequently;
- I do tests with Wikipedia and claim to test algorithms to detect vandalism (often has to be updated);
- I like to have a REPL (Read Eval Print Loop) for prototyping, etc.
Once years ago I did a test of Java SE with Rhino, using Ecmascript same, I found it cool because I could develop even a called REPL in the application, it was very good for prototyping.
This a bit confusing, the Scriptengine serves to run Ecmascript scripts, just import the package from Scriptengine and compile, now Lua is not to build games, it has the ability to edit some Roms games but ae is something else. If you want to create games I recommend you use a tool for this as Unity3d (supports 2d too).
– Guilherme Nascimento
Moon as far as I know @Guilhermenascimento is not to create games, did not say that, said it is used as scripting language. No Scriptengine in Android.
– gzinho
@Guilhermenascimento, the Scriptengine also not only serves to run Ecmascript, it runs many more languages compatible with JSR 223. See http://stackoverflow.com/a/14864450/3697611
– gzinho