Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Mar 2015 17:59:57 +0000
From:      "Wojciech A. Koszek" <wkoszek@freebsd.org>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        svn-src-projects@freebsd.org, "src-committers@freebsd.org" <src-committers@freebsd.org>, Rui Paulo <rpaulo@freebsd.org>
Subject:   Re: svn commit: r280677 - projects/lua-bootloader/sys/contrib/lua/src
Message-ID:  <20150326175957.GA86775@FreeBSD.org>
In-Reply-To: <CAJ-Vmonj77oqUAtn_NDtp2_pB19gUJxch_3TrGVc3Ts797ZvTw@mail.gmail.com>
References:  <201503260728.t2Q7SWwX002310@svn.freebsd.org> <20150326172708.GA86549@FreeBSD.org> <CAJ-Vmonj77oqUAtn_NDtp2_pB19gUJxch_3TrGVc3Ts797ZvTw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 26, 2015 at 10:57:49AM -0700, Adrian Chadd wrote:
> On 26 March 2015 at 10:27, Wojciech A. Koszek <wkoszek@freebsd.org> wrote:
> > On Thu, Mar 26, 2015 at 07:28:32AM +0000, Rui Paulo wrote:
> >> Author: rpaulo
> >> Date: Thu Mar 26 07:28:32 2015
> >> New Revision: 280677
> >> URL: https://svnweb.freebsd.org/changeset/base/280677
> >>
> >> Log:
> >>   Port lua to libstand.
> >>
> >>
> >
> > Rui,
> >
> > I appreciate you taking care of this project.
> >
> > Would we be willing to consider placing Lua in src/sys/... I originally
> > requested that during GSOC, but it turned out we run out of time for this.
> >
> > Motivation: This would open up some new fronts for us.
> 
> Sure, if someone comes up with a non-terrible way of actually
> interfacing lua in as a kernel execution context.
> 
> Does lua still have that big-interpreter-lock? The last time I looked
> at using lua in something threaded it ended up being too terrible to
> use.

To clarify: motivation I had in mind was to basically enable building a
standalone program, which I feel is easier with sources in src/sys/... than
with src/sys/boot/...

As for the threading: I don't know. But once can imagine kernel thread
running Lua interpreter and doing something useful, e.g.: at boot
/boot/debug.lua could be getting loaded. In case of kernel failure, DDB
could poke a Lua thread and actually run this script to print custom
debugging information of some sort.

-- 
Wojciech A. Koszek
wkoszek@FreeBSD.czest.pl
http://FreeBSD.czest.pl/~wkoszek/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150326175957.GA86775>