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?Herman=2C_G=C3=A9za?= Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: [PATCH] Implement fast verisons of json-parse functions Date: Sat, 30 Mar 2024 21:51:49 +0100 Message-ID: <87sf07mnmx.fsf@gmail.com> References: <87h6h2rsgn.fsf@gmail.com> <867chy3vpm.fsf@gnu.org> <87cyrqrqnb.fsf@gmail.com> <865xxi3tsu.fsf@gnu.org> <874jd2rnwj.fsf@gmail.com> <864jd14lqs.fsf@gnu.org> <87edc1rzig.fsf@gmail.com> <865xx4dv0g.fsf@gnu.org> <871q7snffr.fsf@gmail.com> <86plvbdgcx.fsf@gnu.org> <87wmpjmsie.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27838"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?Q?Herman=2C_G=C3=A9za?= , Eli Zaretskii , Mattias =?utf-8?Q?Engdeg=C3=A5rd?= , "emacs-devel@gnu.org" To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 30 22:11:56 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 1rqfzX-00071C-QV for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Mar 2024 22:11:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqfye-0008IB-Oq; Sat, 30 Mar 2024 17:11:01 -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 1rqfyV-0008Hh-T7 for emacs-devel@gnu.org; Sat, 30 Mar 2024 17:10:52 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rqfyU-0007T5-9P; Sat, 30 Mar 2024 17:10:51 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4155f5b8c41so720615e9.1; Sat, 30 Mar 2024 14:10:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711833048; x=1712437848; darn=gnu.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :references:from:to:cc:subject:date:message-id:reply-to; bh=3DIwVauqZp+AxyCTdyiJqcGhD0tDPNLXbiXB+snU9nw=; b=TukET1TBGAXvWP1wW9moO8bFuBZpYtsm8046rez7sEizQXiWiyBqSd1yqh4DpvG+uN XKlD6kclQTw4o5r12b/a+GGoitN4XNa64O6n4/qYRZILK9WTZeQBrRkyYdvpbyL8EiiA ukpHDPREYnhmkwyOIDWAAfkGDntfi5xo6JnB8RKKaul9HZrwd01e5cLEIEFsrOf7wd+v 7J3ftpHrHso2Uyn6A4VF6G66d1oWSvwG4tAzVW7kB+aAxlLkmNj3BROsFTnV9eAfsmOb cWgz24mNskdNve28BTLw9it6ntG2/IaUizd7nwLxsGGFIghZ6JvfT2A/FwIXvgP+1HsS wXBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711833048; x=1712437848; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :references:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3DIwVauqZp+AxyCTdyiJqcGhD0tDPNLXbiXB+snU9nw=; b=ttrovImyac73Cwl0PyLfHh7StfJhKpzqAXxcBXgX9xTShPof9ia1oFRtkslJuJW1pA LIfO7y7/5eyd8LRPMqgB24tewMOOTb68ARItSzRq9uGwF1Ex3a7T4QGvzb4GUwMHQttv 8EIKIuEBSxYVifMNKiJKwDRMRazN63XN3GLpk9spFobst2T4KWVm+gK5cwpkWevSYo3u DwjOktBijyfT+nDNZGV33qCEgcpU7KBrLiimAynwER0tzWRNFVQX1QVyOOZRspyL0Nog FwGMc9pdeP1M+gV1dsER4U6fHHkjEopyFcSGCXS/JN59b+N2/nsWEAFs+k6Hh2bPE/0g SdgA== X-Forwarded-Encrypted: i=1; AJvYcCXdwJJFIKDratH7L1n9ud1bCSilRFWsci2DtHvtr2/OC9067WbCLgwd6WhjIEmRnVKoOBlSI+KM50FQkfObz0z/fx0fKhISWfiaAdLgX9GfD7M= X-Gm-Message-State: AOJu0YzUXxqSZPdYq3Msq/CEz06hacgyPqfgMvxrU7t2+26CMehtFevn QRj0TyTIU6Un2rsSbuUZLt1ZJkFWZGaiQV1WwWiampOHFkUA584y X-Google-Smtp-Source: AGHT+IFj+oVvXTM65i4kTpUb+EG8glyjgv5iHcZ4uW8dCjmGva0y0GOscwNESJOM3QHyyw6ROOkTvQ== X-Received: by 2002:a05:600c:45c7:b0:414:86a6:f9ff with SMTP id s7-20020a05600c45c700b0041486a6f9ffmr4869531wmo.4.1711833048154; Sat, 30 Mar 2024 14:10:48 -0700 (PDT) Original-Received: from localhost (netacc-gpn-104-145-196.pool.yettel.hu. [91.104.145.196]) by smtp.gmail.com with ESMTPSA id g18-20020a05600c4ed200b0041495d17992sm9623906wmq.34.2024.03.30.14.10.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 14:10:47 -0700 (PDT) In-reply-to: Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=geza.herman@gmail.com; helo=mail-wm1-x330.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 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:317401 Archived-At: Drew Adams writes: >> >> 2. Handling of a single \0 byte >> > >> > Does JSON allow null bytes in its strings? > > Strict JSON doesn't allow null characters (U+0000). > But does this parser only support strict JSON? This parser only accepts JSONs which are according to the spec (in theory). But this is not different from the libjansson based parser in this regard. That also doesn't allow null characters in JSON. Just to be sure that we're on the same page: this means that the parser doesn't support actual null bytes in the stream. But if a user wants to put a U+0000 character in a string, they can do that by using "\u0000".