Software : : Lua meets ARexx
Posted By: Krashan. on 2011/6/21 13:31:20
MorphOS port of Lua scripting language has been customized to the system from the start. The next step done in version 0.5 is ipc.module acting as a gate between Lua and ARexx ports of applications. To say it short, with ipc.module one can send ARexx commands to applications from Lua scripts, and of course receive their results. A Lua version of known love.rx script from TVPaint has been included in the archive as a proof of concept. The module supports also interface to MorphOS shell using known ARexx "address command" idea. As all Lua scripts, those using ipc.module can be debugged with source level debugger LuaExplorador included in the archive available in the download section.
 
  • MorphOS Developer
    itix
    Joined: 2003/2/24
    Posts: 1520
    From: Finland
    Sounds interesting. I took a quick look into scripts in the archive and looks very good replacement for good old ARexx.
  • »2011/6/21 17:10
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Jeckel
    Joined: 2007/3/11
    Posts: 133
    From:
    Actually, Lua seems to be a very good ARexx replacement.

    Btw, I did some test and I was wondering how we can pass arguments to a Lua script? (and it would be really nice to have a ReadArgs() implementation)
  • »2011/6/24 13:01
    Profile
  • MorphOS Developer
    Krashan
    Joined: 2003/6/11
    Posts: 1107
    From: Białystok...
    Quote:

    Btw, I did some test and I was wondering how we can pass arguments to a Lua script?


    In fact LuaX command should grab extra arguments after the script name and put them to Lua table named "arg", the same as original lua command. I will add argument passing in the next version. Additionally LuaExplorador will have a requester allowing for specifying commandline arguments after loading a script.

    Quote:

    (and it would be really nice to have a ReadArgs() implementation)


    This will be done later. Adding direct interface to all system functions is a bit dangerous, as it may break the Lua sandbox. ReadArgs() however is relatively safe.
  • »2011/6/24 14:52
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Joined: 2003/7/25
    Posts: 469
    From: Wroclaw/Poland
    Lua + ARexx = power!

    Thank you Krashan!
  • »2011/6/26 7:44
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    _DaNi_
    Joined: 2010/5/4
    Posts: 154
    From: Barcelona, Spain
    Thanks Krashan, great work! ;)
  • »2011/6/26 8:36
    Profile