From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Bindings for =?utf-8?B?4oCYc2VuZGZpbGXigJk=?= Date: Thu, 21 Mar 2013 10:15:25 +0100 Message-ID: <8738vp3yhe.fsf@gnu.org> References: <87ip4liufs.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363857370 2884 80.91.229.3 (21 Mar 2013 09:16:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 09:16:10 +0000 (UTC) Cc: guile-devel To: Noah Lavine Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 21 10:16:32 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UIbbr-0001qI-0W for guile-devel@m.gmane.org; Thu, 21 Mar 2013 10:16:31 +0100 Original-Received: from localhost ([::1]:48074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIbbS-0000KZ-Vg for guile-devel@m.gmane.org; Thu, 21 Mar 2013 05:16:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIbb5-0008Us-MC for guile-devel@gnu.org; Thu, 21 Mar 2013 05:15:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIbay-0008Px-5e for guile-devel@gnu.org; Thu, 21 Mar 2013 05:15:43 -0400 Original-Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=35601 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIbax-0008Ck-Vo for guile-devel@gnu.org; Thu, 21 Mar 2013 05:15:36 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 2AB1AC228; Thu, 21 Mar 2013 10:15:26 +0100 (CET) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EADj82QzgIkJ; Thu, 21 Mar 2013 10:15:26 +0100 (CET) Original-Received: from pluto (nat-eduroam-36-gw-01-bso.bordeaux.inria.fr [194.199.1.36]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id D709BBACC; Thu, 21 Mar 2013 10:15:25 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 Germinal an 221 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Noah Lavine's message of "Wed, 20 Mar 2013 20:17:21 -0400") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2a01:e0b:1:123:ca0a:a9ff:fe03:271e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15946 Archived-At: Hi Noah, Noah Lavine skribis: > I've thought for a while that if I had time (which I know I won't) I would > make a module called (linux) with bindings for non-POSIX Linux kernel > features. What do you think of this idea? If so, what do you think of > putting sendfile there and expanding it with other functions as we need > them? I=E2=80=99ve thought about it, but ended up with making sendfile work wheth= er or not the syscall is available (just like glibc does, after all). So for this particular case, I=E2=80=99d rather keep it in the global name space. There=E2=80=99s also the untold argument that even if sendfile(2) is unavailable, the loop written in C is going to be faster than the equivalent bytecode. FWIW, I plan to integrate the Linux bindings I wrote for =E2=80=9Cboot-to-G= uile=E2=80=9D eventually: http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/guile= -linux-syscalls.patch These are not defined in POSIX, but apart from the Linux module syscalls, they (that is, mount(2) and the networking ioctls) happen to be supported by glibc on all 3 kernels, and also by other libcs. Thus, I=E2=80=99d rather keep them in the global name space as well. WDYT? Thanks, Ludo=E2=80=99.