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.bugs Subject: bug#70007: [PATCH] native JSON encoder Date: Sat, 31 Aug 2024 12:45:25 +0300 Message-ID: <861q25c9fu.fsf@gnu.org> 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> <4AD8D161-142C-4DED-BD53-7724BC6AE16E@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11683"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , casouri@gmail.com, monnier@iro.umontreal.ca, 70007@debbugs.gnu.org To: Stefan Kangas , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 31 11:46:19 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 1skKgU-0002qI-N8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Aug 2024 11:46:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skKgI-0005r4-7K; Sat, 31 Aug 2024 05:46:06 -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 1skKgG-0005qo-L9 for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 05:46:04 -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 1skKgG-0007Yz-CT for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 05:46:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=dh01TFV0e5MhxupD2s7FfgFWh5c0fS4eEHPRu7BRWNM=; b=VGqvTbbqmcwgj5zhzNZI075m2cFR4qzqSRsG9ss7Wi0ArbVD3SPPvqe+ClKCjY2CxFEDZIKJHKsM50w+izW+phSllGyH6cnMxT/TquhIItS0FefN8ZdqypD3D/Kh0NVAHdvXXB227qhHYa5Ch1DVBOVXkeCBZqG+sxDtOrPijG3D1RJr18oQXjGrepMw4EpgkaVDV6sLXh5/h9Ayc4qvKKrv/Uu29Pt05F5A9+awD6S2ipvMMpLDxL5rPITglMGOmFD+A6+OqDiTTCAKcyu1Ask9QsfuPBdfmsgbWUgns4YBcp/KyKwZu/q48g7KFA7z1ff2t+v9Te744/JHfUKvmg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1skKhC-0000py-7q for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 05:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Aug 2024 09:47:02 +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.17250975933180 (code B ref 70007); Sat, 31 Aug 2024 09:47:02 +0000 Original-Received: (at 70007) by debbugs.gnu.org; 31 Aug 2024 09:46:33 +0000 Original-Received: from localhost ([127.0.0.1]:53967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skKgj-0000pE-42 for submit@debbugs.gnu.org; Sat, 31 Aug 2024 05:46:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skKgh-0000oz-4b for 70007@debbugs.gnu.org; Sat, 31 Aug 2024 05:46:31 -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 1skKff-0007Xc-TC; Sat, 31 Aug 2024 05:45:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=dh01TFV0e5MhxupD2s7FfgFWh5c0fS4eEHPRu7BRWNM=; b=S1SrescHAjokkDgzBuCh Jynf7F3h6j535p6T2sKjZrA6aKuk9mamtGN/L2pCNg7V0Wjzv/FBzbVD+Fd5kuy46W9VUTaoLIuDe FNlnBVMRymsOacKqQWGWhQ4ISYUraTvhEnrVcKew20IH7QwKJY+fExzPnQkaOfv/anKHtviga7jkA G2S5/spg84XEAt0WvsqbeHaqfl8DNjWSOXWU3V5inTY/TFDstP7yOSljmdlODjJ/O1fCUaKjZCogl AluNi9S4bsnELYZDQB4RHMlSKLbBjck91zbn8cdv28MiJT/GZvYFEG7v2chMh1xJQBmhWNO+UMSwA 0QgbhtxXv13c3g==; In-Reply-To: <4AD8D161-142C-4DED-BD53-7724BC6AE16E@gmail.com> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Sun, 25 Aug 2024 22:08:30 +0200) 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:290995 Archived-At: > From: Mattias EngdegÄrd > Date: Sun, 25 Aug 2024 22:08:30 +0200 > Cc: Eli Zaretskii , > Stefan Kangas , > Andrea Corallo , > casouri@gmail.com, > 70007@debbugs.gnu.org > > 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. Stefan Kangas and Andrea, can I have your opinions on this, please?