unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Greg Troxel <gdt@ir.bbn.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: "Mark H. Weaver" <mhw@netris.org>, guile-devel <guile-devel@gnu.org>
Subject: Re: [PATCH] socket: Add AF_NETLINK support.
Date: Sun, 07 Jun 2015 17:44:32 -0400	[thread overview]
Message-ID: <rmir3pn6vnj.fsf@fnord.ir.bbn.com> (raw)
In-Reply-To: <87a8wb365z.fsf@gnu.org> ("Ludovic Courtès"'s message of "Sun, 07 Jun 2015 17:11:04 +0200")

[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]


ludo@gnu.org (Ludovic Courtès) writes:

> One concern we discussed on IRC is precisely that it’s Linux-only, and
> so far we’ve tried to avoid promoting Linux-only interfaces.
>
> An argument in favor of having it in libguile proper is that it cannot
> be implemented outside since we need ‘make-socket-address’ to do the
> right thing.
>
> Another one is that it just provides bindings to the existing socket
> interface, and like other parts of the socket interface, libguile would
> just mirror what the OS provides.
>
> OTOH, it could be argued that libnl is more appropriate than the socket
> interface anyway, and that one can write FFI bindings to libnl.

I think Linux-only interfaces is a real concern, as it will lead to
guile programs that work only on Linux.

An alternative is to look at something like quagga, which has a glue
layer for various OS support for netlink/rtsock/?.   That's more work,
but would let people implment a non-OS-specific interface on multiple
systems and allow portable scheme code.

But, that's much harder.


Until then, why can't the netlink code not be part of guile, and just
another package to build and install and then access via use-modules,
sort of how guile-pg is separate?  Other than wanting to avoid an extra
package, what's the downside?

[-- Attachment #2: Type: application/pgp-signature, Size: 180 bytes --]

  reply	other threads:[~2015-06-07 21:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-03 14:12 [PATCH] socket: Add AF_NETLINK support David Thompson
2015-06-07 15:11 ` Ludovic Courtès
2015-06-07 21:44   ` Greg Troxel [this message]
2015-06-08 12:21     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rmir3pn6vnj.fsf@fnord.ir.bbn.com \
    --to=gdt@ir.bbn.com \
    --cc=guile-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=mhw@netris.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).