From owner-svn-src-projects@FreeBSD.ORG Thu Mar 26 18:12:16 2015 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 18F803FC; Thu, 26 Mar 2015 18:12:16 +0000 (UTC) Received: from freebsd.czest.pl (freebsd.czest.pl [212.87.224.105]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 93D25220; Thu, 26 Mar 2015 18:12:15 +0000 (UTC) Received: from freebsd.czest.pl (freebsd.czest.pl [212.87.224.105]) by freebsd.czest.pl (8.14.5/8.14.5) with ESMTP id t2QHxvvH086846; Thu, 26 Mar 2015 17:59:57 GMT (envelope-from wkoszek@freebsd.czest.pl) Received: (from wkoszek@localhost) by freebsd.czest.pl (8.14.5/8.14.5/Submit) id t2QHxv1K086845; Thu, 26 Mar 2015 17:59:57 GMT (envelope-from wkoszek) Date: Thu, 26 Mar 2015 17:59:57 +0000 From: "Wojciech A. Koszek" To: Adrian Chadd Subject: Re: svn commit: r280677 - projects/lua-bootloader/sys/contrib/lua/src Message-ID: <20150326175957.GA86775@FreeBSD.org> References: <201503260728.t2Q7SWwX002310@svn.freebsd.org> <20150326172708.GA86549@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=2.1 required=5.0 tests=DNS_FROM_AHBL_RHSBL, RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on freebsd.czest.pl X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (freebsd.czest.pl [212.87.224.105]); Thu, 26 Mar 2015 18:00:02 +0000 (UTC) Cc: svn-src-projects@freebsd.org, "src-committers@freebsd.org" , Rui Paulo X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2015 18:12:16 -0000 On Thu, Mar 26, 2015 at 10:57:49AM -0700, Adrian Chadd wrote: > On 26 March 2015 at 10:27, Wojciech A. Koszek 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/