From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Some dynamic module questions Date: Wed, 2 Dec 2020 12:43:22 +0100 Message-ID: References: <83zh33neyv.fsf@gnu.org> <83wny7nd2b.fsf@gnu.org> <83v9drncx7.fsf@gnu.org> <20201127135406.GI1558@odonien.localdomain> <83pn3yomzz.fsf@gnu.org> <20201127152114.GJ1558@odonien.localdomain> <83mtz2om79.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18564"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers , Helmut Eller , Vasilij Schneidermann To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 02 12:55:28 2020 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 1kkQjH-0004f6-IS for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Dec 2020 12:55:27 +0100 Original-Received: from localhost ([::1]:35320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkQjG-0005st-Jm for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Dec 2020 06:55:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkQXp-0005VT-6P for emacs-devel@gnu.org; Wed, 02 Dec 2020 06:43:37 -0500 Original-Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]:34015) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkQXn-0000Gr-HC; Wed, 02 Dec 2020 06:43:36 -0500 Original-Received: by mail-ot1-x334.google.com with SMTP id h19so1354459otr.1; Wed, 02 Dec 2020 03:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XZSSMcCPEk4SedXVnQwpWij2/N/sjoCYY0bBv/7PI3U=; b=WnPv+/OLfCIK0NdNYclKwXYOzCr+lfp8jfeyqIwwujWp/mIVXK4qeE8mhYvKNWr067 Tvu30os9e93amlotvw+cGMfglenWj9Dwjm0XYZKakbpnok8nmDS9x2WYfs+rVuRBy/or NbFecbakKGv7lMdm5RHOAYmBwc1HUjwC2eSQMUVvxKrj0Nm9n/I7omlmzIWb1xYq57P6 fHJPf4vpFyx0a7Oq8au/QKO5j66n67f4h1kEKVAu1R8hMFBAvz3r8MSfCRqIwiR0vgSl WvYgoLrUMSS5O3vANdqBzK+pcIl83BNxJCgaOVuya/gQFUAesLf9LKZX07ZEwQwunOwb +DQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XZSSMcCPEk4SedXVnQwpWij2/N/sjoCYY0bBv/7PI3U=; b=KEhB/r/jwgO5NLvl/5uv0uKqs7zHo3Mq86EmrKnnP4Ce7IIwSex5oaE7A1cvuUrt1B ArvuS8wobwMXMNmsHe1TdK2wRv/Zx+D3VZkAldpI1VZi4Vck4b9E5hyJJCLpv6XMn5W6 V1eWxB1REjIuARcZ6iU3wOibzqbeyCfiTGqo11dru9MSRzOA0lENkAoNnHHa0+11w7Bf ZNkIynbS+qPSYgUDfrbN/iokbzoAez+hyb1v0ZabsdZGRN1oZA1m32ksn3Mp/p0r3x50 HSQgP/pSMNjaRDaHE7O5//hWtA8CJpkS4U4OG2FsLi2WEAdvyYOjc+lwTw2R9X02+N5z MnTQ== X-Gm-Message-State: AOAM533EABYhOJf+Su+SSH7pK5JQY+gxq2Jrkqc3hEDbIIeaNhCgrv6O 0RHk6+mRU7uQagd9jeMPmvg7ZRgWwBpKd5DBV3bd81OUYCc= X-Google-Smtp-Source: ABdhPJwHtVIAQMjQc/IuYwqVZUC550fIW4HBakdUknAOS9TFQpuyOM32YaClQObzEGXZSbwCRVI5lcGHrfsgD68zxws= X-Received: by 2002:a9d:269:: with SMTP id 96mr985441otb.174.1606909413622; Wed, 02 Dec 2020 03:43:33 -0800 (PST) In-Reply-To: <83mtz2om79.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::334; envelope-from=p.stephani2@gmail.com; helo=mail-ot1-x334.google.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:260179 Archived-At: Am Fr., 27. Nov. 2020 um 16:26 Uhr schrieb Eli Zaretskii : > > > Date: Fri, 27 Nov 2020 16:21:14 +0100 > > From: Vasilij Schneidermann > > Cc: eller.helmut@gmail.com, p.stephani2@gmail.com, emacs-devel@gnu.org > > > > > I don't yet see why would you need to send data to a module. Why not > > > generate that data in the module code itself, based on some Lisp you > > > get from Emacs? > > > > I don't see why you would need to question my approach: > > Because adding an interface doesn't come for free. Someone will need > to code it, test, document it, etc. That is why the modules interface > allows only a relatively small set of objects across. That is correct, but in this case the costs are outweighed by the benefits. Byte arrays are a ubiquitous fundamental data type (similar to integers or timestamps), and Emacs modules need good support for them. For better or worse, Emacs has been using unibyte strings to represent binary data for a long time (cf. bindat, image), so also supporting them in modules for this purpose doesn't really introduce new uses. Unibyte support has now been requested at least three times independently (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23487, https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34873, this thread), showing how much users care about it.