From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add a mechanism for passing unibyte strings from lisp to modules. Date: Wed, 26 Jun 2024 15:26:52 +0300 Message-ID: <86wmmb99f7.fsf@gnu.org> References: <86v822jeqh.fsf@gnu.org> <225D336D-933E-4CA3-B245-89992D7E6C41@umanwizard.com> <86frt5jwtc.fsf@gnu.org> <87o77t6lyn.fsf@taipei.mail-host-address-is-not-set> <867cehgdn1.fsf@gnu.org> <861q4md0o1.fsf@gnu.org> <87jzickjq8.fsf@taipei.mail-host-address-is-not-set> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31860"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acorallo@gnu.org, stefankangas@gmail.com, emacs-devel@gnu.org To: "Brennan Vincent" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 26 14:28:16 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 1sMRl0-00081t-V6 for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Jun 2024 14:28:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMRk1-0005NG-OG; Wed, 26 Jun 2024 08:27:13 -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 1sMRjz-0005Mi-JK for emacs-devel@gnu.org; Wed, 26 Jun 2024 08:27:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMRjz-00063Q-7k; Wed, 26 Jun 2024 08:27:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tAWeO8Itr60wU2UhjtT3BMykCVWWZF1MYhM0C8LYd1k=; b=hU68qxfGPEQJ wQgdTEfLZWfCanKnlfwwsCbc6Ywgvuq6mzS1yROzoAaySStVM6/q6oSL9011bsnARLsXh2aeU7w3d xHut54Z302r5YgQsh0BNtePt454Q7ypm9V7eyS64ZZvfUUSF7SWNFJxx3Kv46rlTELPmNWtI+DrNY 0PZtB33ZfosguhlaXxWkF7+hVrIDpxMprCF06cucuqcdPkpiBiABrvBn5O7Y2KRWDQFru2I5bIZMj gESjmvQ5egivyYSFuhDodWFCyz9SSL0fMbQTUoG7c9QXAAfIPSTqE2MagR8+OILz1450664nzSKtN risRRnHg+eCnSL981G7EAQ==; In-Reply-To: <87jzickjq8.fsf@taipei.mail-host-address-is-not-set> (brennan@umanwizard.com) 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:320674 Archived-At: > From: "Brennan Vincent" > Cc: stefankangas@gmail.com, emacs-devel@gnu.org > Date: Tue, 25 Jun 2024 13:36:31 -0400 > > Eli Zaretskii writes: > > > If we want to allow Emacs to send binary data, I'd rather come up with > > a specialized interface to do just that. Explaining the subtleties of > > using unibyte text in Emacs is a tough job, since it involves a lot of > > low-level technical details. When unibyte text comes from encoding > > human-readable text that is at least justified, since that's what > > Emacs was designed to d, among other things. But using Emacs as a > > handy method of reading binary data, to avoid doing that in the module > > itself, and asking us to add an interface for that use case is too > > much for my palate. > > I think it would be great if emacs grew a specialized vector-of-bytes type. How will it be different from the Lisp vectors we already have?