From owner-freebsd-arch@FreeBSD.ORG Mon Sep 1 20:04:22 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 79BE8B44 for ; Mon, 1 Sep 2014 20:04:22 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 64FF61B98 for ; Mon, 1 Sep 2014 20:04:22 +0000 (UTC) Received: from u10-2-16-021.office.norse-data.com (unknown [50.204.88.51]) by elvis.mu.org (Postfix) with ESMTPSA id 43929346DE11; Mon, 1 Sep 2014 13:04:16 -0700 (PDT) Message-ID: <5404D1B8.9010006@mu.org> Date: Mon, 01 Sep 2014 13:06:16 -0700 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: freebsd-arch@freebsd.org, Poul-Henning Kamp Subject: Re: script(2) [was: [CFT/review] new sendfile(2)] 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> In-Reply-To: <4204.1409549879@critter.freebsd.dk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 01 Sep 2014 20:04:22 -0000 On 8/31/14 10:37 PM, Poul-Henning Kamp wrote: > -------- > 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, sure it's "slow" but if the API exported to it has hooks for things like "read mbufs from socket" as opposed to "copyout data" then you can do zero copy without context switches. In addition you get a language that people know as opposed to YADSL (yet another domain specific language). http://duktape.org/ :) -Alfred