Lua on MorphOS?
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    UPDATE: download link has been broken, fixed now.

    A new version is released, "dirty preview" now can be named "early beta". What's changed?

    - lua.library has got internal 'package' module. It can load Lua modules as well as binary modules. Standard Lua port has no support for dynamically loaded binary modules, as this feature is available for unixlike systems (via *.so) and Windows (via *.dll). I've implemented a MorphOS specific dynamic loader, which uses MorphOS shared libraries for binary modules. An example source code for a binary Lua module will be available soon.

    - lua.library API has been extended with some helper functions useful in binary modules, related to argument checking and error reporting. These functions come from 'lauxlib.c' in the Lua source.

    - as the first binary module, 'string' standard module has been released. It is usually built-in in a typical Lua port. I've decided to implement all standard Lua modules as dynamically loaded ones. The 'string' module contains a set of useful functions for string manipulation, parsing, formatting etc.

    - Autodocs for lua.library and string.module. Not 100% complete, but started anyway ;-).

    - A slightly improved Lua Explorador, it shows the string length in variable view lists. When showing string contents, LuaExplorador replaces non-printable characters with dots and shortens automatically strings longer than 64 characters, to not clutter the list display.

    HOW TO INSTALL

    - Copy the contents of Libs/ to Libs: (so the string.module resides in Libs:Lua/).
    - Copy autodocs where you want.
    - Copy Lua Explorador directory where you want.

    NOTE: The 'string' module is not autoloaded at the start of interpreter. You have to use "require 'string'" at the start of your script to use the module functions.

    [ Edited by Krashan on 2010/12/14 15:16 ]
  • »14.12.10 - 09:47
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Ok, so here is another "dirty preview" of my Lua port. What's new?
    - Lua Explorador has a nice icon ;-).
    - lua.library has got most of functions from auxiliary C API (chapter 4 of the Lua Reference Manual) added.
    - base.module implemented as a shared library. Complete autodocs.
    - finished autodocs for string.module.
    - LuaX - simple shell/ambient Lua script launcher with basic error reporting.

    The next step will be io.module so one can finally run demo scripts from the standard distribution ;-).

    Archive download.
  • »25.12.10 - 22:47
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    amigadave
    Posts: 2789 from 2006/3/21
    From: Northern Calif...
    Working on Christmas Day! Either someone who does not celebrate that day (perfectly understandable, as only a percentage of the population participate in this crazy yearly ritual), or a very dedicated programmer (who probably does not have any small children, or a wife/girlfriend, to spend the day with).

    Nice to see progress on this work. Hope you had a great day, even if you don't celebrate Christmas.
    MorphOS - The best Next Gen Amiga choice.
  • »26.12.10 - 22:21
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Either someone who does not celebrate that day

    Depends on definition of celebration. We (I mean my family) used to celebrate the Christmas Eve more, and this celebration is pretty traditional. I mean the Eve Supper (not with 12 dishes however, but some of them), Christmas tree, gifts, singing carols etc.

    The Christmas Day (and the day after, being a holiday in Poland) is another story. I'm not religiuos, so I don't go to a church. I also do not like a "typical" way of spending this day, which is meeting family, eating, drinking some alcohol and watching stupid shows on TV. How boring. Why not write some code instead? ;-)

    who probably does not have any small children, or a wife/girlfriend

    Missed ;-). I have a wife and two children (5 and 3 years old).
  • »27.12.10 - 07:54
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    jcmarcos
    Posts: 1178 from 2003/3/13
    From: Pinto, Madrid ...
    Quote:

    Krashan wrote:

    I have a wife and two children (5 and 3 years old).


    Which, if interested in computing, will have the best possible teacher. Brilliant job Krashan!
  • »27.12.10 - 10:00
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    amigadave
    Posts: 2789 from 2006/3/21
    From: Northern Calif...
    @Krashan,

    I hope you know that my comments about having kids & a wife were made in jest and not meant to offend in any way. I applaud you for working on MorphOS related code on Christmas Day.

    When I was married and my children were 3 & 5 my wife would have been very upset with me if I even looked at a computer on that day.
    MorphOS - The best Next Gen Amiga choice.
  • »27.12.10 - 16:33
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    I hope you know that my comments about having kids & a wife were made in jest and not meant to offend in any way.

    I by no means feel offended. I'm happy that I do not fit into a category of typical computer nerd :-).

    My wife has her own computer and uses it very frequently. And how it is possible she's not upset by my hobby? It's simple - I always buy her better hardware than mine. Currently she owns a moderate class PC box with 20" panoramic Samsung LCD display, and a laser printer. Compare it with my $80 500 MHz PowerMac and my 7 years old (t)rusty 15" LCD panel ;-).
  • »27.12.10 - 18:12
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    amigadave
    Posts: 2789 from 2006/3/21
    From: Northern Calif...
    Not only a good programmer and writer of tutorials for us beginning programmers, but a wise man as well!
    MorphOS - The best Next Gen Amiga choice.
  • »28.12.10 - 06:24
    Profile