tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: unix(3lua)




> Am 19.05.2018 um 13:25 schrieb Sevan Janiyan <venture37%geeklan.co.uk@localhost>:
> 
> On 19/05/2018 11:36, Alexander Nasonov wrote:
>> The main page of the repository says it's incomplete.
> 
> "This module does not aim to be complete, it merely contains functions
> that I needed at some point of time"

Aiming for completeness is like "design by committee".  luaunix is "design by practicioners" and is easy enough to extend, if need arises.

Why on earth should have written a Lua module to access 100% of NetBSD's functionality when all we need is fork and friends?  When we later needed directory access functionality, we simply added that.

We have a module that complements luaunix, called luanet, which is for network access from Lua.  Unlike The luasocket module, it supports IPv6...

> 
>> Does anyone plan to make it complete or near complete?
> 
> I was thinking along that line. Continuing on the idea of the fully
> scriptable operating system. Why not have bindings for the items we
> include in base, not necessarily external third party components but
> core os and our homegrown parts (netpgp, bozo,...). This would be ideal
> for a workshop where you want to give a taste of what's possible and
> build up from there.

luaunix, just to make that clear, is fully maintained and in use.  And everyone is welcome to add bits to it.

> 
>> Wouldn't be easier to take luaposix and add missing (NetBSD
>> specific?) bits.
> 
> Seeing that it was Marc's work and he is of this parish, it was a nice
> compliment to the other work he has done and we are lacking such a
> component.

It makes Unix accessible using a scripting language.  And that is what I use it for.  This module is actually in widespread use ;)




Home | Main Index | Thread Index | Old Index