Re: Lua in-kernel (lbuf library)

2013-10-23 Thread Artem Falcon
> On Tue, Oct 15, 2013 at 06:01:29PM -0300, Lourival Vieira Neto wrote: > > > Also, having to switch mentally between zero-based arrays in the > > > kernel C > > > code and 1-based arrays in the Lua code make my head ache. Above this well-discussed inconvenience there is a thing which may hurt mor

Re: Moving Lua source codes

2013-10-20 Thread Artem Falcon
2013/10/21 Marc Balmer : > Am 20.10.13 22:02, schrieb Artem Falcon: > > [...] > >> Ok, here i have a clean diff. Sorry for the attach instead of inline. >> By the way, do you want to move from malloc(9) to kmem(9) as >> recommended? I may provide a draft version, i

Re: Lua in-kernel (lbuf library)

2013-10-19 Thread Artem Falcon
18.10.2013, в 21:03, John Nemeth написал(а): > On Oct 18, 11:03am, Marc Balmer wrote: > } Am 18.10.13 10:43, schrieb Artem Falcon: > } > Marc Balmer msys.ch> writes: > } >>>> Justin Cormack specialbusservice.com> writes: > } >>>> I have bee

Re: Lua in-kernel (lbuf library)

2013-10-18 Thread Artem Falcon
Lourival Vieira Neto gmail.com> writes: > > On Wed, Oct 16, 2013 at 11:45 AM, Justin Cormack > specialbusservice.com> wrote: > >(...) > > Yes absolutely it makes more sense if already defined in C. For parsing > > binary stuff I would look at Erlang for inspiration too, it is one of the > > nic

Re: Lua in-kernel (lbuf library)

2013-10-18 Thread Artem Falcon
Marc Balmer msys.ch> writes: > >> Justin Cormack specialbusservice.com> writes: > >> I have been using the luajit ffi and luaffi, which let you directly > >> use C structs (with bitfields) in Lua to do this. It makes it easier > >> to reuse stuff that is already defined in C. (luaffi is not in it

Re: Moving Lua source codes

2013-10-18 Thread Artem Falcon
Mouse Rodents-Montreal.ORG> writes: > ... > I think the biggest reasons I haven't tried to push any of those into > NetBSD are (1) a perception that NetBSD doesn't want my changes, > combined with (2) a lack of motivation to, a sort of "NetBSD no longer > cares about me; why should I care about i

Re: Moving Lua source codes

2013-10-16 Thread Artem Falcon
Marc Balmer msys.ch> writes: > > Hi All > > I am in the progress of > > ... > - Commiting the kernel parts from our GSoC project, "Lua in the NetBSD > Kernel" > ... > > - mbalmer > > Hi, Marc Had you managed to fix broken things i mentioned here? [1] Thank you! [1] http://marc.info/?l=

Re: Importing lua(4), but where in the source tree?

2013-06-13 Thread Artem Falcon
Marc Balmer msys.ch> writes: > Sure. The full diff is at > http://www.netbsd.org/~mbalmer/diffs/kernel_lua_010.diff and it's the files > that the diff now places in sys/modules/lua/ that I think should better go to > sys/dev/lua/ Marc, Very nice work! However, i've found few problems in the co

Re: Importing lua(4), but where in the source tree?

2013-06-13 Thread Artem Falcon
Marc Balmer msys.ch> writes: > Sure. The full diff is at > http://www.netbsd.org/~mbalmer/diffs/kernel_lua_010.diff and it's the files > that the diff now places in sys/modules/lua/ that I think should better go to > sys/dev/lua/ Marc, Very nice work! However, i've found few problems in the co