From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#70007: [PATCH] native JSON encoder Date: Sun, 25 Aug 2024 22:08:30 +0200 Message-ID: <4AD8D161-142C-4DED-BD53-7724BC6AE16E@gmail.com> References: <1BF559D1-DB9F-4FEB-90ED-72E0EFD76424@gmail.com> <86wmpphrg7.fsf@gnu.org> <4589243D-C11A-45C1-AF3E-6F4A5BADEB54@gmail.com> <864jcrindg.fsf@gnu.org> <291DD5F1-85B8-4647-A40A-EBBD4C51E253@gmail.com> <8634sbijfx.fsf@gnu.org> <2CF47DA5-A65B-47C4-A28A-6FEE1469BD13@gmail.com> <86cyrdfuai.fsf@gnu.org> <3139C8FE-5C67-4FE3-B940-F449DA73E76C@gmail.com> <86le5zdfbi.fsf@gnu.org> <4C93E902-282D-4408-B449-C8E771B2B3E4@gmail.com> <86cyr7agjo.fsf@gnu.org> <850DEC32-F318-4F3E-BA87-55FC6DC74CD3@gmail.com> <86ikvpnbj5.fsf@gnu.org> <867cc5mbq3.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38961"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Andrea Corallo , casouri@gmail.com, Stefan Kangas , 70007@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 25 22:10:48 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1siJZY-0009wQ-26 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Aug 2024 22:10:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siJZ2-0001Uj-NE; Sun, 25 Aug 2024 16:10:17 -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 1siJZ0-0001UZ-Se for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 16:10:15 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1siJYz-0007nB-Ej for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 16:10:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=xob02ckvQpoaMAzskuGIrc5UgOGd3SZSQiT4f3szxD4=; b=d9wE9dkRuAtUsQ3YWYgQ3P0EATUWS9CYk4KmdpAQotxbYsOmaC+ow7yRmSPjFNrbFHb8kcHrXVSSmQqZBtC8ZlOfowFeap741S+ucdZLk+TUwXphSv26o1mDn9FpqkaW81sK1+sUi/kPhkGw4SKlMf/jon8EYqNiuHmH6lRrDl8yqm524La8Gxf6FPn517bA0KvY9W8FeZH5Ye/jn5tctvwEuF73yvX12kE4lD+r0nP6ql/GzhImw77MVgRcDPleWTPvFBtikOJ9q3I2Vvvzy4pf1CKKaDbMrG8fDPk1NK6gr/SYlk7luxnTWlqPy3szKlVUapu5hI6ctZz2mRJPsg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1siJZl-0000qD-TE for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 16:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Aug 2024 20:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70007 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70007-submit@debbugs.gnu.org id=B70007.17246166333176 (code B ref 70007); Sun, 25 Aug 2024 20:11:01 +0000 Original-Received: (at 70007) by debbugs.gnu.org; 25 Aug 2024 20:10:33 +0000 Original-Received: from localhost ([127.0.0.1]:43332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siJZJ-0000p9-75 for submit@debbugs.gnu.org; Sun, 25 Aug 2024 16:10:33 -0400 Original-Received: from mail-lf1-f48.google.com ([209.85.167.48]:46321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siJZH-0000ou-4w for 70007@debbugs.gnu.org; Sun, 25 Aug 2024 16:10:32 -0400 Original-Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-533488ffaebso4126345e87.0 for <70007@debbugs.gnu.org>; Sun, 25 Aug 2024 13:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724616515; x=1725221315; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=xob02ckvQpoaMAzskuGIrc5UgOGd3SZSQiT4f3szxD4=; b=Fse6KXgf9LVKgZWcGlCcZ/PwUAxGgT8QfAs/5B46ltHZ1vPA/gGxda//lPGpBcnnuU VIXIXZsqAT1B2g4zjSqPsfB9ICDK2I3w4eX+ObaK+EqokyMtsMlLyQ9K94UrwMGK5rO8 lMQhaSSTxknswtQV2b80Fz2jVWdK7OWO/PM/IiZSfdXXJ/BV9lxWs7modL0ILpovhWiK VI+icL2COzyTjQD4iiV/bzKGAL5ZhY17lyFRZXxVfV666YW19k8W91jw1vHVmMC5p5WI pxeK9emUBej/Kz4J/pIcekXi0NSKNgTf9eR7D2vHnIENuNf+GEikricbTgQfglush5F2 db6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724616515; x=1725221315; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xob02ckvQpoaMAzskuGIrc5UgOGd3SZSQiT4f3szxD4=; b=BAjYoRtUAKWpczNBLwyadJG1T4eBSRCr7rxSmnAv7Fn0RR/KZ4KY7e9hmq7AYZQVr5 ZRpmIRnQNygEgSMUuq0//p1wNy0NwflMb6e+wyAHEIx9q6M7cpmtFoDJI7lhfq2EZwCb qHcpBKTygJdMiaQKAeUUeCjtZNZIwjaJ7228jh7ontsGNyBD/lEoEHWgEXubDXpkb3ul tZFt6Efs3Pdte1Nz0N4Di25lAIN1WhcjYr4zoBL89+r5JSm3LgWworwnW1RdE94yp/53 VgEtG7T7KThHHguDnh8xBNWkhtwvbAgBSka6z1s3qpK128u03iLPASOMwdJ2MwAs/DGk 08CA== X-Forwarded-Encrypted: i=1; AJvYcCWeQOX5sskOsN93srP8Kqu/QrhixsCzwLjwE9AyfT4cR1ubDZYWQB57/G9vMeRj5oHThjwilg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyJkn2Ql9Aj08nUqvk9hHIpjMq/6paamjMbgisApqQkn3+n2EHg vqnVwor9rv1lN5aXpgGURPaSKgwQq0p6yECoHAnyrVWJkwFJvAtO X-Google-Smtp-Source: AGHT+IGBLRYpsrdy9Rox1w1ujOEuxLn+XtuBugf9jxd6brfRS4DLtyNFv9Df+yXB5jmGks09UO5xXw== X-Received: by 2002:a05:6512:124f:b0:533:526a:cd08 with SMTP id 2adb3069b0e04-53438773434mr6091324e87.14.1724616514106; Sun, 25 Aug 2024 13:08:34 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-191-82.bredband.tele2.se. [188.150.191.82]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5334ea996b2sm1233198e87.305.2024.08.25.13.08.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Aug 2024 13:08:33 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290762 Archived-At: 25 aug. 2024 kl. 19.55 skrev Stefan Monnier : > The variable solution has one advantage: users can (setq ... t) in = their > `.emacs` to keep old code working, tho potentially at the cost of > breaking new code. Actually that's a terrible solution because it affects all code, not = just a single package. In addition, it will linger in the user's system = indefinitely (.emacs being the prime bioaccumulation tissue) and = potentially cause trouble when he or she installs a perfectly working = package years later. So my preferences are: First place: always unibyte, with no controlling variable. Very close second place: always multibyte, idem. Distant third place: contrived new function name for unibyte, like = json-serialize-encode (no, I don't like it either). Very distant fourth place: variable controlling the string type = returned.