lua-users home
lua-l archive

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


FYI: There is busybox for windows, and I've did some minimal porting for busybox for OSX (64-bit executable only)

https://github.com/pclouds/busybox-w32
https://github.com/malkia/busybox-osx

Windows executable:
  http://dl.dropbox.com/u/5943991/busybox-w32/busybox.exe

OSX (10.7 64-bit) executable:
  https://github.com/downloads/malkia/busybox-osx/busybox
  (you would need to chmod +x it)

There might be some better ports, but after looking couldn't find any.

Already looking as if it's going to work me, and this way I can use only one shell script, and functions across all host platforms relying only on one executable per it (and probably future ffi library through luajit).

I'm more interrested in the cut, grep, sed, ed, vi, find, etc. tools rather than some administrator ones (I've cut quite a a lot of them from the .config already).

On 11/18/11 12:07 AM, Natanael Copa wrote:
On Thu, Nov 17, 2011 at 7:46 PM, Dimiter 'malkia' Stanev
<malkia@gmail.com>  wrote:
I've been looking at couple of things:

GLIB

have a look at lgob
http://oproj.tuxfamily.org/wiki/doku.php?id=lgob

APR (Apache Run Time)

Lua/APR?
http://peterodding.com/code/lua/apr

and also bundling

BusyBox (lots of unix tools, bundled in one, which are "C" callable too).

Busybox has a libbb with lots of utility helper functions.

This is if license allows it.

GPL2

I was looking mainly for LuaJIT and exposing them through FFI, not like Lua
normally does, and now that there is work on the FFI for Lua too it might
get work on it too.

My goal is to make a specialized build system, that would help me rebuild
various "C" libs, there is also premake that is the closest lua writting
build system I know.

On 11/17/2011 1:20 AM, Natanael Copa wrote:

Hi,

So we (Alpine Linux) are playing with the idea of having an init
system with lua for Linux. The idea is that instead of writing start
up scripts in shell you write them in lua. I think this makes much
sense because:
* you avoid many forks = speed up
* you can have scripts instead of compiled C stuff
* you have a nice language which gives you arrays/hash tables etc for
a low price (half size of bash)
* lots smaller than glib - you can have a very small base system

This means that if we want have the possibility to have /usr on
separate partition we must move Lua out from /usr.

This is easily done with /usr/bin/lua and /usr/lib/liblua*. My
question now is, what about pluggable modules? /usr/lib/lua can move
to /lib/lua but what about /usr/share/lua? I don't like the idea of
moving it to /share/lua. Suggestions?

Since this means we will replace lots of shell scripts with lua, are
there any lua modules for typical shell things? like mv, cp, ps, kill
etc.

Does anyone know similar projects? (bsdlua is one)

Thanks!