From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: bug#49822: master e32c7d2: Change Python eval to send directly instead of using temporary files Date: Tue, 07 Sep 2021 20:13:36 +0200 Message-ID: <87o894l0dr.fsf@gmail.com> References: <20210903122828.16890.65271@vcs0.savannah.gnu.org> <20210903122829.EAAC220B71@vcs0.savannah.gnu.org> <87r1e4eklw.fsf@gmail.com> <87v93fnfmm.fsf@igel.home> <87lf4aooge.fsf@gmail.com> <878s0a409g.fsf@gmx.de> <87ilzef65i.fsf@igel.home> <878s0aeyna.fsf@gmx.de> <87r1e1ex7z.fsf@igel.home> <875yvcmgm2.fsf@gmail.com> <83y288nuoq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40060"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: andrewjmoreton@gmail.com, Mark.Barton@disney.com, emacs-devel@gnu.org, schwab@linux-m68k.org, monnier@iro.umontreal.ca, 49822@debbugs.gnu.org, michael.albinus@gmx.de, larsi@gnus.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 07 20:17:55 2021 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 1mNffP-000AEn-AC for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Sep 2021 20:17:55 +0200 Original-Received: from localhost ([::1]:33302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNffO-0005gd-CN for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Sep 2021 14:17:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNfbI-0007dG-Uj for emacs-devel@gnu.org; Tue, 07 Sep 2021 14:13:41 -0400 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:43572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNfbH-0006Bb-8p; Tue, 07 Sep 2021 14:13:40 -0400 Original-Received: by mail-ej1-x62b.google.com with SMTP id ia27so21356447ejc.10; Tue, 07 Sep 2021 11:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=zrxWbBgwYFPZILvNVd2y8BTvMf3bmCfD58uD+kGyzCk=; b=Egj2spMc8Y7U7/qrHK++wAHpfj3Rtw5E+ehcMtawYFt6U0nDnDOzsuyV71p83ObleK TNrUuZDkSU3tRx8mbdcef+Iv5G3gKy6ZNOFcV2IwKWw/e4Qaq+N1iiVcyCMaN68t0ZFH tD8ChFDI12OBmJYEjx1vXCS+hocFDWp1V2Uq0I/w01bwsRIHxIc/kJpjhcOpOoMeoD+y eSgo174/VgU1/62eJdw04/+WU1RX4cadxUGQrIP7ZSY+8GxHsQK17kZJnlceoMnBaagX Xa6iRxwe1Pt84o2BR6ogj0icAgRIuv8YhnYsgKsdNmmA4GFSfCC/g2Wk+jdbfe4h8wAo nIhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=zrxWbBgwYFPZILvNVd2y8BTvMf3bmCfD58uD+kGyzCk=; b=QE1tiqjj8Zj/uyVmiBwZZyYeHiRisawOvLFYK9tLaNTKLsbk7uo5MDR4g79kAAe0gP vJyAiR95fmvmJCwZ0Xt2SW+mAJVZxWBCiLVJYwIWTpDAicyDXvmi9ts290/200R9iy4y Xw8y0xYoQdBm5clZGQzHR1VeSm38Xlk13I4ABbs7AVwZtTGUWrj7G+jHnZSRhyYIyKY0 iX0PLy1oOVKKBfjFhD82rotm7GTMHvDSeisT4dHQaV0eAfoh7LBUlQRWoaa81dpfpo3X FojkRfhpy0PowIqYTE5tQOBWA7Rn64LxNTpF+0bdd8RQFivPSzly0EQiVBQ8haXzYVvq tGwQ== X-Gm-Message-State: AOAM533HK3sZ30vF3XV2E4O9NJXl89l3pIeLSwPJ7Wcr+Ogz4HZWEFuv TatbuB1GUeGlc7IBjO8Nntc= X-Google-Smtp-Source: ABdhPJxObNyusEX8iIeKE8MkeHlijLwMreBdtOsRPqWq5QwCx8n4jdP64JqG905d9+UYKSPilp8rgA== X-Received: by 2002:a17:906:fc7:: with SMTP id c7mr20434084ejk.333.1631038417475; Tue, 07 Sep 2021 11:13:37 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::b1d]) by smtp.gmail.com with ESMTPSA id k15sm5868471ejb.92.2021.09.07.11.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 11:13:37 -0700 (PDT) In-Reply-To: <83y288nuoq.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 07 Sep 2021 20:48:21 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x62b.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.23 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" Xref: news.gmane.io gmane.emacs.devel:274279 Archived-At: On Tue, 7 Sep 2021 at 20:48, Eli Zaretskii wrote: >> From: Augusto Stoffel >> Date: Tue, 07 Sep 2021 19:37:41 +0200 >> Cc: Andy Moreton , emacs-devel@gnu.org, >> Andreas Schwab , >> Stefan Monnier , 49822@debbugs.gnu.org, >> Michael Albinus , Lars Ingebrigtsen >> >> Okay then. Since there seem to be no better alternatives, I have >> attached a new patch reducing the limit to a hard-coded 1024 bytes. If >> some day someone adds a variable specifying a more precise limit, then >> we can change this. > > I thought the conclusion was that we do know the limits, but they are > different on different OSes? If so, why not use the correct limit for > each OS, instead of using the most strict limit? The underlying OS is > available in system-type. > >> - (if (<= (string-bytes code) 4096) >> + (if (<= (string-bytes code) 1024) > > In any case, IMO this should be a defconst with a suitable doc string, > so that we'd have this stuff documented for posterity. > > Thanks. Another open question (at least to me) is what happens when you put an SSH connection in the game. Presumably it has some buffer limits as well, and this seems even harder to determine exactly.