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?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: I created a faster JSON parser Date: Tue, 12 Mar 2024 16:39:20 +0100 Message-ID: References: <87a5n96mb5.fsf@gmail.com> <20240309203725.x456m7c6soxtgj6q@nullprogram.com> <86jzmawqbm.fsf@gnu.org> <87ttldydf2.fsf@posteo.net> <867ci8vqvl.fsf@gnu.org> <5396AC95-1D8F-4A89-B4A8-647B717A1E3C@gmail.com> <87r0ggdcki.fsf@gmail.com> <437D901F-CEC6-45E0-8ABE-B036A7B0AAF5@gmail.com> <87jzm7itw8.fsf@gmail.com> <875xxr8oa0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20659"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= , Eli Zaretskii , Philip Kaludercic , wellons@nullprogram.com, emacs-devel To: =?utf-8?Q?Herman=2C_G=C3=A9za?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 12 16:40:15 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 1rk4Eh-0005Ao-M1 for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Mar 2024 16:40:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk4Dv-0006Pj-G6; Tue, 12 Mar 2024 11:39:27 -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 1rk4Du-0006P1-GM for emacs-devel@gnu.org; Tue, 12 Mar 2024 11:39:26 -0400 Original-Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rk4Ds-0001og-84; Tue, 12 Mar 2024 11:39:26 -0400 Original-Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-33e76d653b5so4243455f8f.3; Tue, 12 Mar 2024 08:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710257962; x=1710862762; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gVeW2nvG/evSnqZ4X39bOI46tAP9U/l7ZeNa/npqmTs=; b=ly3tJEtG05GKwkU7zuB1omhmEar2o4u6FmlpRtyVXj46VJmHCKAi7g6NOURR0mkTeM oyQipnwNE/Qxent6UDa6EZ1qT8BOuWZ1K1bGCXQFB24hLfJis48rhc+/0NphohlLlb23 2R9wXI82Z0agEczTeOfvL+7gcc79GAfMcWLDMd4nqkr/PDH17pMN6vIr1UyvQlUFsWBy a892AwhWWBpucJUeJp88ZQhXBwkGKWVkr03S8iqhH5J0YIJ40Z34FqsCQhSgsHJwsL2y VIO1RMFiC2erkLl93TnLDrKwftx/ruRNND6iNbbihyEw4vNzNBp8e6EN9MtKJdQQLpNE lH8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710257962; x=1710862762; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=gVeW2nvG/evSnqZ4X39bOI46tAP9U/l7ZeNa/npqmTs=; b=RTqdRWx9M6Pk5CM2kS1KCZI8ZQEYHbGlcYAW57uslU02J2Lsb5uKPj/WRyX1S1yRtE 3yoTbfWPRYGaFg9NhFhor54xSsEmaGtuP2JgICkX0f6AiuTyfZagvkDY7BLc86c3OriC BnpKtozNI1HoONvSyZdKcd5C8hFEKOvBENnsh0+m+rGUg5745MMpyD20+z4/5NI0/WwN tBbldhlCN1XFdWxHh3/ZBQVJjLLWx0kQH5sw2onC4tYNCbTHum3qYGYdjbexlFOJRHe7 xICJSYwSezrWdbjxMRarTMdMcZ7vpe5/j5/JB6ssMbwhPBUmy4WxUh0Yryha7rN2oqYV h2gw== X-Forwarded-Encrypted: i=1; AJvYcCXfdrSBwxXCYITiPxKFUZi/Ox9zEOVYyT1xgh/ygCjXK2C0ldu57xoSoVhuJlIny9I+wPrrZR1Lx7lLk8GYxDDEwbBkgxHug6uDRQT0QWY1tkE= X-Gm-Message-State: AOJu0YycbDMvGeU87dElUGHikeXhDAn1NBIGjwCut2rJZhfxRS3o4GGh AIQ90AOoVZXD3ScbBO/QkAtR9QlRKW8a6uL26m8rl2jcVI5NUc76MbA7rtm92lU= X-Google-Smtp-Source: AGHT+IHTmq69HdUnNfrdfbOVOAvBY6AU/EBoxpmtF5yDp0BFxGlomWO5J0Yeqr5CVcY0ZMquGggB+g== X-Received: by 2002:a5d:4691:0:b0:33d:b376:8a07 with SMTP id u17-20020a5d4691000000b0033db3768a07mr490109wrq.8.1710257961779; Tue, 12 Mar 2024 08:39:21 -0700 (PDT) Original-Received: from Pro.fritz.box (p4fe3a749.dip0.t-ipconnect.de. [79.227.167.73]) by smtp.gmail.com with ESMTPSA id bn5-20020a056000060500b0033e8c2476fesm7389146wrb.5.2024.03.12.08.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 08:39:21 -0700 (PDT) In-Reply-To: <875xxr8oa0.fsf@gmail.com> ("Herman, =?utf-8?Q?G=C3=A9za=22's?= message of "Tue, 12 Mar 2024 16:23:59 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=gerd.moellmann@gmail.com; helo=mail-wr1-x430.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, T_SCC_BODY_TEXT_LINE=-0.01 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:317019 Archived-At: "Herman, G=C3=A9za" writes: > Sorry, but I don't understand. If my parser puts roots in > heap-allocated memory (that's true), and doesn't give such roots > special attention (that's also true), then why is it probably safe? Assumin GC doesn't run, nothing can happen. For me personally, that assumption would be too dangerous. At one point, Emacs' regexp engine made that assumption, GC did run, because of something N levels down a call stack, GC compacted strings, and all that was really nice to debug :-). My 2 cents :-)