From owner-freebsd-arch@FreeBSD.ORG Tue Sep 2 19:32:28 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B624B5DB for ; Tue, 2 Sep 2014 19:32:28 +0000 (UTC) Received: from nm12-vm2.bullet.mail.ne1.yahoo.com (nm12-vm2.bullet.mail.ne1.yahoo.com [98.138.91.88]) by mx1.freebsd.org (Postfix) with ESMTP id 68F68199B for ; Tue, 2 Sep 2014 19:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1409686341; bh=xdvwpVILCgeTsmG2Sy8Ltod68wFTzfO0VBwAykwBjzU=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent:From:Subject; b=Ny7MiF8t2cPSLflA9BuoH+AAm/zIgGSd0Lj4cEsZH1VlD9Cf1AcHzKbcXtSDBtS9UvGLpiBdKYzut0rC4ZSLo1MxgA3eFx4hq/0yAWFQkLFzL6yAuzbH89Lf9+RTVqV0fGCkDfiTGXpWHHX+rvr8DCh/v6soS6+eNx+e1c6FGX96c0DYMS7HOYNeR1OGugTR39qE2bzpuUcCbrCZHgyUnN/ABDuigGEOTVDFAuU6dvAwD97Rl8yBMLbhlQPRNGhHfSytwQuXiDi1vZ/LNaXwLE3frBBVxAJYjT/Y/CcDi6UgnfHj9In6HGdySDe/+pS5aH5ooo9UYsfZE2HnQDl4+w== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=L9gnO9/nTJwGv84gfDKz79pEv4NV74N1kODhjMQb/c6LqOrWhESkkTiorGvqpK0d37Lrybc0zbxn+RU7UxZAT86UQ2h/bd3VTeTryfL28r6MGt1eFOgpDNkyu7TiYUImjpHn29rotQCY7q68IJSOzmzkk06mRz9QTlpIYekHdG+0/qnD8SIAwhFistdQPTA+ZVUYSXPEieiHWUC1EDGintVfRIwAl2qH7f8N9ickmYVCVpw+ELTxl3DVkUf8CFOjUMBVY6LrqtZLRX+NyVbJhafYWZSrOs+g6qWxJ4NRzVJwnZnA0PrF4RpqITfdzPH2dFE2ohS+KYeiB65jEZwv/A==; Received: from [98.138.100.103] by nm12.bullet.mail.ne1.yahoo.com with NNFMP; 02 Sep 2014 19:32:21 -0000 Received: from [98.138.226.133] by tm102.bullet.mail.ne1.yahoo.com with NNFMP; 02 Sep 2014 19:32:21 -0000 Received: from [127.0.0.1] by smtp220.mail.ne1.yahoo.com with NNFMP; 02 Sep 2014 19:32:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1409686340; bh=xdvwpVILCgeTsmG2Sy8Ltod68wFTzfO0VBwAykwBjzU=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; b=kqS8+bAISYS+lcXibEqf88OTnJR7QK2TbvWeoODNpMlK1Nvl36Shh0K7sTFZeqX1+et4i7CmbbwDY3lYgpu81NseYU4yfys8JDnp6YcvyG0FMPR1dKaH/qSGcqLKOAY+fJ+8bdMen2RRmz4NvzgCy9iou47w2WZuAi6Gf5FBKqU= X-Yahoo-Newman-Id: 980863.32643.bm@smtp220.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: .bLyV2UVM1k9DnxcWxXbbiVzYeI7pASWCXLfAha3lHpbl6M ZpYEsJofZrmCwVCUGhVHIKARL14w.xavWFrXEiNg1qM4WE0zL1LPgV1UaWjY VCDuyj2j38.PhKXxCQPr93fcbR35gaItdFmdttEcya_fBlod7lrpl1poGPop gR5JdnwmWb.P87c9hxcT05y8VRMeTwRKkncWCsLg_RNP.GCFlAxrpcdgOTHz 0lb5uCVYMxj2HBrbo0BYybrUcRlNCKzsaZiJx_d6kfG21zVwqDciEuEQntFU uEiCm_q8mC_TZtoNlYHcRt.knfSOHHYMEWX.Ra91dB5KXWdXayA2cI8rFsSj Dm.ajaIEmR12tLkYjuR_D822HvBaao1XI_o5VQE_gp6DtWpkSBwQ4ffDTVkj 4RX17iXQjJk0LbNes3p_R8h5qbQ5cd8l0bT1M8szorFiO7d1i3HwwWVOh2Bk DLTNUoYmPIinJGE3B3TG7sx8xG_0M7SrKR9fXTvbTaNJK8gkNGE6Gdfsgctp 4law- X-Yahoo-SMTP: yVvIDoOswBD5zOzqXnwUE.yVSR2Kvw-- Date: Tue, 2 Sep 2014 15:32:11 -0400 From: Walt Ford To: Poul-Henning Kamp Subject: Re: script(2) [was: [CFT/review] new sendfile(2)] Message-ID: <20140902193211.GA29155@nbu> References: <20140529102054.GX50679@FreeBSD.org> <20140729232404.GF43962@funkthat.com> <20140831165022.GE7693@FreeBSD.org> <540382E2.3040004@freebsd.org> <2770.1409522711@critter.freebsd.dk> <5403B13C.60008@freebsd.org> <4204.1409549879@critter.freebsd.dk> <5404D1B8.9010006@mu.org> <40210.1409607245@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40210.1409607245@critter.freebsd.dk> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Alfred Perlstein , freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2014 19:32:28 -0000 On Mon, Sep 01, 2014 at 09:34:05PM +0000, Poul-Henning Kamp wrote: > In message <5404D1B8.9010006@mu.org>, Alfred Perlstein writes: >>> In message <5403B13C.60008@freebsd.org>, Alfred Perlstein writes: >>> >>>> Lua at the syscall level makes sense. :) >>> I doubt it. >>> >>> We're looking at high performance stuff and we don't want a silly >>> parser and string processing involved. >>> >>Would it really matter? Lua is bytecode, [...] > > I though you wanted the interpreter in the kernel. > > If it's only the executor, then ... maybe... > > We'd need to do a serious audit of the lua bytecode first... I've been sort of working on a Lua-based FreeBSD for years in my spare time just because I love both so much. I could be wrong, but I think making use of Lua in-kernel would require modifying the interpreter to include the kernel's idea of locks, mutexes, memory barriers, and threads. In Lua, threads and their safety must be written by end-users last I knew, but I don't follow Lua development closely. At least in my latest work, trying to replace init_main.c and mi_startup() with a Lua script, all of that is necessary. Really, I'd even need the interpreter to be aware of the FreeBSD scheduler for a Lua-based mi_startup to be workable. I've got a lot of Lua bits and pieces in userland utilities, libraries, and now init_main.c is in boot/ but none of it works yet. I have visions of a FreeBSD that unboot backwards to reload subsystems, but I'm not close. -- Walt