Where do I find Lua?
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 385 from 2014/6/11
    From: Germany
    Hi.

    Maybe this is a dumb question, but I can't find the lua executable in the latest SDK (3.10).
    Where do I find it?


    Manfred
  • »24.01.16 - 11:40
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    polluks
    Posts: 431 from 2007/10/23
    From: Gelsenkirchen,...
    indeed, a good question!
    by the way why this time "sdk-source" but not "sdk"?

    [ Editiert durch polluks 04.02.2016 - 08:40 ]
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.11
  • »24.01.16 - 21:50
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 343 from 2003/2/25
    From: Berlin
    Don't we already have a lua interpreter?
    From Krashan!
  • »25.01.16 - 13:21
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1768 from 2003/3/5
    From: Poland
    Quote:

    polluks wrote:
    indeed, a good question!
    by the way why this time "sdk-source" but not "sdk"?


    Huh? Both packages were released at the same time. It seems, though, that lua didn't get packaged in the bundle. I'll try to correct that in the next few days.
  • »25.01.16 - 13:43
    Profile Visit Website
  • jPV
  • Paladin of the Pegasos
    Paladin of the Pegasos
    jPV
    Posts: 1504 from 2003/2/24
    From: po-RNO
    Quote:

    igracki wrote:
    Don't we already have a lua interpreter?
    From Krashan!


    Yes, indeed. It comes with MorphOS itself and won't need any installation. I don't know why there will be another one in SDK then... maybe direct compatibility with Linux etc scripts? The one provided with MorphOS has couple differences to general implementations (to be integrated better in MorphOS way).

    It'd recommend to make the scripts to work with the bundled Lua instead of probably more *nixish one in SDK. It's always nice if the stuff works without needing to install anything extra.

    [ Edited by jPV 26.01.2016 - 16:53 ]
  • »26.01.16 - 14:49
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 385 from 2014/6/11
    From: Germany
    Why actually Lua?
    Isn't Arexx good enough? As a pretty much first time Arexx user the language actually feels kind of fresh and it is very much integrated into the OS.

    For application development I'd much rather would like to have a modern, state-of-the-art language. Like Swift, Go or Rust.
    One that is object-oriented (Yeah, OK, Rust is not OO), functional, statically typed and possibly can do type-inference.
    I think that would attract more people do to development.


    Manfred
  • »27.01.16 - 20:09
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    AFAIK Arexx isn't fully implemented in the OS. You need the 68k library.
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »27.01.16 - 20:27
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 385 from 2014/6/11
    From: Germany
    Quote:

    Yasu wrote:
    AFAIK Arexx isn't fully implemented in the OS. You need the 68k library.

    Right. Wasn't there a bounty for a PPC port?


    Manfred
  • »27.01.16 - 20:30
    Profile
  • jPV
  • Paladin of the Pegasos
    Paladin of the Pegasos
    jPV
    Posts: 1504 from 2003/2/24
    From: po-RNO
    Quote:

    asrael22 wrote:
    Why actually Lua?
    Isn't Arexx good enough? As a pretty much first time Arexx user the language actually feels kind of fresh and it is very much integrated into the OS.



    Unfortunately it seems that ARexx is a dead end, no matter how nice it has been. There isn't native ARexx implementation and you need an old 3rd party 68k library to get it work fully. BTW. OS4 is in the same situation, even they don't have PPC native ARexx, because it's originally written in 68k assembly and it'd be a huge task to rewrite it from scratch. 68k library has worked for now, but it'll stop working with the ISA switch in the future, and of course it's not good that it isn't bundled and working out-of-the-box with the OS. There's been talks about native re-implementation for MorphOS since the day 1, but it certainly feels very unlikely to happen now after 15 years or so.

    Lua on the other hand is a modern mainstream scripting language. It's also lightweight, which suits the MorphOS philosophy. What's great with the MorphOS implementation is that it can be used to replace ARexx scripts, because you can use the existing ARexx ports from Lua and all ARexx functions of all legacy and new programs are usable with Lua scripts. You can do pretty much everything what you'd do with ARexx, but with modern and native alternative. The great legacy standards which have been build with ARexx can be inherited with Lua, and I find it worth to support and move on with :)
  • »27.01.16 - 20:57
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    polluks
    Posts: 431 from 2007/10/23
    From: Gelsenkirchen,...
    Lua has no support for function hosts, for example you cannot access the locale.library
    Lua is not Amiga like, see http://stackoverflow.com/questions/8886615/lua-how-to-do-internationalization
    I need full integration, no hype language.
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.11
  • »28.01.16 - 07:02
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 1768 from 2003/3/5
    From: Poland
    Quote:

    polluks wrote:
    Lua has no support for function hosts, for example you cannot access the locale.library
    Lua is not Amiga like, see http://stackoverflow.com/questions/8886615/lua-how-to-do-internationalization
    I need full integration, no hype language.



    You could actually write a plugin for it in C, adding locale.library support. I know this is not for everybody, but lua is something I rely on now for my MorphOS projects, so I saw no reason not to add it. Same goes for perl, really (and that one builds most of the SDK, from parts of syntax hilighting to the autodocs).
  • »28.01.16 - 07:30
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    polluks
    Posts: 431 from 2007/10/23
    From: Gelsenkirchen,...
    Ok, you can write a plugin for it in C, I write just one line
    Code:
    CALL ADDLIB('locale.library',0,-30)
    done.
    Lua is not bad but "modern" not always means better ;-)

    [ Editiert durch polluks 28.01.2016 - 09:19 ]
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.11
  • »28.01.16 - 08:19
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 385 from 2014/6/11
    From: Germany
    Quote:

    jPV wrote:
    Quote:

    asrael22 wrote:
    Why actually Lua?
    Isn't Arexx good enough? As a pretty much first time Arexx user the language actually feels kind of fresh and it is very much integrated into the OS.



    Unfortunately it seems that ARexx is a dead end, no matter how nice it has been. There isn't native ARexx implementation and you need an old 3rd party 68k library to get it work fully. BTW. OS4 is in the same situation, even they don't have PPC native ARexx, because it's originally written in 68k assembly and it'd be a huge task to rewrite it from scratch.

    Doesn't AROS has a working Arexx implementation, at least partial? And they can compile against a variety of architectures.
    It could be extended so that existing Arexx programs will continue to work.


    Manfred
  • »31.01.16 - 17:39
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    polluks
    Posts: 431 from 2007/10/23
    From: Gelsenkirchen,...
    Quote:

    asrael22 schrieb:
    Doesn't AROS has a working Arexx implementation, at least partial? And they can compile against a variety of architectures.
    It could be extended so that existing Arexx programs will continue to work.


    Indeed, the interpreter is ready http://aminet.net/package/dev/lang/ReginaMOS
    you just have to create a library out of it...
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.11
  • »04.02.16 - 07:46
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 385 from 2014/6/11
    From: Germany
    I'm wondering if stuff like RMH, RxSerial, RxMUI still works with this?


    Manfred
  • »04.02.16 - 18:44
    Profile