From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: as for Calc and the math library Date: Wed, 14 Aug 2024 16:35:01 +0200 Message-ID: References: <864j7qhup6.fsf@gnu.org> <87a5hi0yts.fsf@valhala.localdomain> <86y152ge0b.fsf@gnu.org> <86jzgjfwqp.fsf@gnu.org> <87sev78arx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27225"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , nicolas@n16f.net, arthur.miller@live.com, emacs-devel@gnu.org To: Suhail Singh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 14 16:36:14 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1seF6j-0006vK-C9 for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Aug 2024 16:36:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seF5q-0001B4-JN; Wed, 14 Aug 2024 10:35:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seF5g-00019z-GQ for emacs-devel@gnu.org; Wed, 14 Aug 2024 10:35:10 -0400 Original-Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1seF5e-0005Wf-FF; Wed, 14 Aug 2024 10:35:08 -0400 Original-Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2f16767830dso67458131fa.0; Wed, 14 Aug 2024 07:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723646103; x=1724250903; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=j/1etTraL+hX+YCMHrzb2VNs2c83oqpWBypRNbSs0Fo=; b=GRntbDFfCOu14e9NDzYtYdYcL0dtwjznhzdhOGN6w6f5GpLkZQVBk2DiQAT8FBlGA+ hE8lEU7LUDKOuPod2us8S4Yq8bIRkEXsi+ad9hWDSYSXxotJggeLnlL24DpaeKK4aN13 zNbcNPQLH8QrfQFxD+m8Gsl6fgVVj7LO5GYfiCVwXZ1/UunrxMduTlqRELzyWMmVLkgs lfoxfar8CC6kXjDsxS2lWGm6o+GnGgwHG/RPVqohuB2SaVjr6zy0EhqAIv52sXd86Imj U/ISrvdBdjoLP/babDBZOMM2IN7nQfxinfEpz2y4G4LSwota2eOC4yzcO7kASgbtz6zE zgMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723646103; x=1724250903; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=j/1etTraL+hX+YCMHrzb2VNs2c83oqpWBypRNbSs0Fo=; b=qhSO9xerVDB0V5gLyXZpobENASXsxa4DRfyiwJciKsnRNFxe/pUEnjcYGYTXtBo3Da D/oXq/GNnBOnECJyjxWizlnty7ZnotXVHPBT89p1tNsZqgU3r4Olee/qByyW9MOdzsjN hCEpHiaf5VEcLeaEHGRPy14OKzIe5g6Mseu7U803EhIQyvlTdtV0pHk/x6OWMb7R/FJH CJ6cHR1mGNboFPDkYNDbOXDAjt+Go1hnFzRvNzQrczxpPpVT1W5SRLVbZD4ClswuXOuz cmQvKGtgLzv/YGDIKJPrJYwa1JkXfy1iVkeimROBN12hdvgu7Hhu0+TKHEAG7xxnmvcv wXKg== X-Forwarded-Encrypted: i=1; AJvYcCXydBxUt1mBr8vXqFJywlFggh9EhMve88o5K87Lkebf5wH7m9ml8qyxwBuGG4YmsA6NfXgRzSn9w3HnFtOEL0hYSv7+ X-Gm-Message-State: AOJu0Yz6wriB+4/1LMSwrVT1Dwr/yKWPaTcUL4/37A9N4KZh+5xz1Jve 0sZ97Dn1Q5JxScWG6um5QKooDjIFv6L8/LT1IvcDBT/jYQpma2Li8sRPZg== X-Google-Smtp-Source: AGHT+IG1vyfa7X68fsEEqz22KTaH0JZj2uN5IGtQZIuWvNImzeth6yuj6xaf2tm7fCfKV5nGXOVVkQ== X-Received: by 2002:a2e:b167:0:b0:2ec:5364:c791 with SMTP id 38308e7fff4ca-2f3aa1b7270mr19171251fa.17.1723646103028; Wed, 14 Aug 2024 07:35:03 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36ddc.dip0.t-ipconnect.de. [217.227.109.220]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bd191a20bcsm3942294a12.34.2024.08.14.07.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 07:35:02 -0700 (PDT) In-Reply-To: <87sev78arx.fsf@gmail.com> (Suhail Singh's message of "Wed, 14 Aug 2024 10:00:18 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=gerd.moellmann@gmail.com; helo=mail-lj1-x22e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322746 Archived-At: Suhail Singh writes: > Eli Zaretskii writes: > >>> I guess an FFI is already there? Or was there because it looks kind of >>> dead: >>> >>> https://github.com/tromey/emacs-ffi >>> >>> Tom Tromey says in one of the issues >>> >>> https://github.com/tromey/emacs-ffi/issues/20 >>> >>> that John Wigley asked him on IRC to submit it for inclusion. Can't find >>> anything on emacs-devel though. >> >> It doesn't ensure GPL-compliance, AFAICT, so in its current form it >> cannot be accepted, sorry. And I'm not sure I understand how can one >> technically enforce GPL compliance in FFI-style loading of arbitrary >> shared libraries. The only idea that comes to mind is allow-list of >> known libraries, the way we do in sqlite.c, but I'm not sure that >> method is scalable to the basically infinite world of arbitrary >> libraries. > > On the topic of what would be acceptable for an FFI, wouldn't something > akin to what's done for modules be sufficient ? I.e., have the users of > the interface explicitly state that they are compliant. > > It would scale better than an allow-list. IIUC, Arthur mentioned this > in another thread. If this wouldn't be sufficient for an FFI, could you > please elaborate on why that's the case ? Another question is of course why something like Tom's FFI must be made part of Emacs when, AFIU, it could be a package like vterm which also contains an Emacs module.