script(2) [was: [CFT/review] new sendfile(2)]
Alfred Perlstein
bright at mu.org
Mon Sep 1 20:04:22 UTC 2014
On 8/31/14 10:37 PM, Poul-Henning Kamp wrote:
> --------
> In message <5403B13C.60008 at 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
More information about the freebsd-arch
mailing list