From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GIa+G8RDYWQTswAASxT56A (envelope-from ) for ; Sun, 14 May 2023 22:25:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +AfGG8RDYWQX2gAAauVa8A (envelope-from ) for ; Sun, 14 May 2023 22:25:40 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EB92C8C5B for ; Sun, 14 May 2023 22:25:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyIGj-00077y-Lp; Sun, 14 May 2023 16:24:37 -0400 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 1pyIGi-00077q-EW for emacs-orgmode@gnu.org; Sun, 14 May 2023 16:24:36 -0400 Received: from mail-yt3can01on2070a.outbound.protection.outlook.com ([2a01:111:f403:7053::70a] helo=CAN01-YT3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pyIGg-0008Ax-MT for emacs-orgmode@gnu.org; Sun, 14 May 2023 16:24:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XF8aW5sA7gaQA/s27PclyFmzIU25qNgxHWBnUIj3a3V/6mrJtqRfGhgKW8/3+tclV8nupRO3ertVa07DhZRHS+zN2z2k+gB0bI8J4HBclvN1tirG34lFh34CPhShK7TGI/yCkxQQra7zKfFq7yRd5r2JIhTOsAP2XuowOF+vxS2adWqpwsbNe4lqLJH5/ekCqLsN0opy8AayTY07ksBHemKVJyiqlp6R4zrUEriiG6VY+0JbRmFJx8UBKZgsWvxWZ8ktQzhGq/DX0Ip12uxrG5uYU6LPyAkmkkev24OfSmWKA7Ln1TBOAgF7ds5UGmmiS7Cl6iWlp5nh/mara85FyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k9b/RD7Nv9NJIl1SxSfv2MV2CvsyYQxTVQVY2/BUsiE=; b=WzQ2gUxhyMTP6g7gkUyDtzQYGYQiikAMQ28LS/4V6QC0GU2Z1k98eTo/hQqcp6OoiOZViRvN7BRBEr1FqqnAIKT9KFVF0R0Zfa+7Aafn1qrrPJM1NgLE8sfAMxXRVMp1UNYLhKbh064HYmum0uogknKNBHHBr3rs7NLQZsgDTXyOWKK3Qw4J7ixCxe7htFnwcqn73SiziLwsEkv50SJdhnRwpOqnqJq7meFA3MCrbUX7Y14BeN/H0YQbdC9hNcxoo3Hlij29HPg+8CGNsEOdAx0VGie2/3gnplAVVhmwDhcFKdbGqa44zRUorV4tBTT0U78gWzXrXbez4JA73OFB6w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.ca; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k9b/RD7Nv9NJIl1SxSfv2MV2CvsyYQxTVQVY2/BUsiE=; b=mk8ef/zM/iXloSUc37aNxyGdA4+VtBL8DJghzkMDkbEdXeEfwX8MxA2sfPAjQ7TEwWPx6J3z68IsiiwOrSYLQuHNAegxhic8UFsGSLqscU1Km7PCM3GtChmo582y7iksF1NXXFE1gdmB9joIq0frzHpvE8u/uioq+5KH4bAW0jZ46UiHCNcuI4ZuR9UCdMd9skY3zlS9waxj1dnSrJmtMx7MSNz8Spla8Rt/Knmf838uWa+CvIZEydh0PXEpi2VDwrO9RAAEcyY4uA6FWpJpElQvIY0ie4KOLhHL9UjXGH8kWyHECrbXlOOeSYDyyOJnCvsCi8xXDYJN7Y35aBadGA== Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:90::5) by YT1PR01MB8282.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:c3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.30; Sun, 14 May 2023 20:19:29 +0000 Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::6224:e126:d86a:c1e9]) by YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::6224:e126:d86a:c1e9%6]) with mapi id 15.20.6387.029; Sun, 14 May 2023 20:19:29 +0000 From: Leo Butler To: Ihor Radchenko CC: Org Mode Mailing List Subject: Re: [RFC/PATCH] naming src/bin files in ob-C.el Thread-Topic: [RFC/PATCH] naming src/bin files in ob-C.el Thread-Index: AQHZhOMot3JeNUOHfka4MrmqWAjcmQ== Date: Sun, 14 May 2023 20:19:29 +0000 Message-ID: <878rdqd5tc.fsf@t14.reltub.ca> References: <87fs81egk5.fsf@t14.reltub.ca> <87a5y9eevv.fsf@t14.reltub.ca> <87jzxdzeoz.fsf@localhost> <874johe1pv.fsf@t14.reltub.ca> <87bkio1y4n.fsf@localhost> In-Reply-To: <87bkio1y4n.fsf@localhost> (Ihor Radchenko's message of "Sat, 13 May 2023 07:36:24 +0000") Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) x-ms-publictraffictype: Email x-ms-traffictypediagnostic: YT3PR01MB9964:EE_|YT1PR01MB8282:EE_ x-ms-office365-filtering-correlation-id: a63702ff-da54-482d-c208-08db54b88563 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jZi0WywDOBFBoP8Pgl6+dedpOCtUln8Ept2Pw0GTDtVzubaUIvJUy3b0S56ouIScG34+Mn0h6V1ouspsX6AgXIRCacXlD7eFZSu3sYSePNJBxxOHadVVB4VRTSQKkg5qOfxscrNd5tpjXQ47VTtPHqoqSOX1av8WERAfndm1ZUKLPA25u5kJfOUdMDe5YS8UClAwptgcEB4SfWd0N4YvYEFljw/+hQqI0mvirZsl4LY0OIUUDyfNri8zz4Hw59Cto9viGZI8Xwxdpv5FaH3gqwTlbu8C9I3pYB3/azZqXP5S2QtVKpM4lK3+IcPfiFg8nVHPlrkVWqVrAGhoO5l6RO1n5CegoHYbZQGPjzIYjENF0xLgobhZuR+pR1mnmpobhj741XQdQ5eT1sw0+Rn9GbH6aSObL77KDsYHev7eAMN8wMXemqt/YSOuKf8Nf0xnxYypX4bZe4aV6u/Su3EiVn/YfJvKqihS7AZ44adRVIBeX5rz5QmGJRwvhfaL9ErrFQKSlW/dFykkHJFhKrstza2iSHdIUZvm8MR+JSKPW+8mAAwoJtp1SzBSf/UyAEHaEsfZssSfGcZTTQhtf1U4in2s/7vt9nkIBulL+0zHN5xpuzh98FwmCpAUgTmpgxV9 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230028)(346002)(396003)(39860400002)(376002)(366004)(136003)(451199021)(478600001)(66556008)(66476007)(66446008)(64756008)(6916009)(4326008)(66946007)(91956017)(76116006)(71200400001)(6486002)(786003)(316002)(41320700001)(2906002)(8936002)(8676002)(41300700001)(5660300002)(26005)(122000001)(86362001)(38100700002)(38070700005)(83380400001)(186003)(9686003)(6512007)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?XihwNfJMdGTweGudB2XEa7ePr9Njg6PHenGBhepFOQf8tzREwh7tM6k59U?= =?iso-8859-1?Q?0RK3ImyWhs2vcuLL8Gl+E4/CQMSsnlwev7ZNmFHHS4udA3DZQsooX6mo/A?= =?iso-8859-1?Q?hNAGl5la2roGRU6xCgHa/lnlpPn5NMy2V9OQQ0xQ7zzzga+SentKwdsodu?= =?iso-8859-1?Q?VyvR4UOvborhyx19cfgIdrxkAGcmzQdc3EbBUTMVslmK47XVi6cb5Q2LWh?= =?iso-8859-1?Q?+rxQ6I3oHflOrgvfOQeJcC55ie11JCyO1cAP83f9fpH1pKr4SNJDNMslw5?= =?iso-8859-1?Q?EO9qUMO0iWw6Oxab3FQDQUxPlI0Mch1iDFZofJopOBS5DeuzoJZHg2ZfFd?= =?iso-8859-1?Q?rmJEei55i+PRZgnc+q0B9FoRDj6w4MrAuK6xOnFCrdoAT3/caieTmPiRAq?= =?iso-8859-1?Q?QufcFTOdsXsog7WYYCy+7Zt2z1yFuq+/jl2KNWBJg65i7o63Nr3c1GRKhr?= =?iso-8859-1?Q?grxBh+LsTREE+ElAHOe4TlSdqx9zCkul3pNOxVopcdLnRW2C3lse07EHjW?= =?iso-8859-1?Q?NXGxK65P46u91XY7lVBIMOxfeiUYaRrsvu44/YDuysy8PYF7l9oNYhWrph?= =?iso-8859-1?Q?+tdmAsigWueAm4xM052ZMQSlHnHYh1fOPy86hh4ttNon6uJPoqtILWkOI3?= =?iso-8859-1?Q?2iVX+USWZhbR/M0D+qSVaT46+smGaLjSw3A+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w6tEMnGrypYpLDOmWOurEOUC6SEsbZnx7kP7EFQjG/TNGYPUb?= =?iso-8859-1?Q?Xz5w+buF/lSjvQP6l6ONKP3SxOXCBfUWjRt+VOozJylVITN3iFSUzDEA?= =?iso-8859-1?Q?=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: a63702ff-da54-482d-c208-08db54b88563 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 May 2023 20:19:29.1136 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Yzsy3mHFTjA8e9TcpWQ7aPwlStOQoh0wWTVGDPhLwTDeQ6O0oYt5PLtWQNj9rxSwhSb9oiKgeAa4HkYY7JNADg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT1PR01MB8282 Received-SPF: pass client-ip=2a01:111:f403:7053::70a; envelope-from=Leo.Butler@umanitoba.ca; helo=CAN01-YT3-obe.outbound.protection.outlook.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, SPF_HELO_PASS=-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-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=2; s=key1; d=yhetil.org; t=1684095940; a=rsa-sha256; cv=pass; b=nIi/bvjnxRtL7REXWJ2btTUsXDdl50qadKF+HZWfP5ZoUELlE7QdrnKA25VUnt3M4x81Yc bsnDCKj0LyNWMGZrnZucYOzA3jRat3GVQ3L7swGCWk5PK0j5gxyVKJdKcjdgYd+h0FKdEj q3JT2PHD0X7FIypxRjSmn5euMp5NkzvJVLGtkfnU6e20Wngl8zEuzk1P7LY4/yWbjQxHex P0dFY7SyUYylUuYrCji1x17kzkP2x0THm4dBxraHcMmKuDPCJlqgEhnkKXn0C6zViiJWO6 TjjhvY7RMxuCEVNb9Gptau+WNEELHtVUX8q8y3CYeEYtixZE1Msg0OZ9quQn0w== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=umanitoba.ca header.s=selector2 header.b="mk8ef/zM"; dmarc=pass (policy=none) header.from=umanitoba.ca; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684095940; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=k9b/RD7Nv9NJIl1SxSfv2MV2CvsyYQxTVQVY2/BUsiE=; b=SlIx/fKMsAArBAQuiyNxSYsd9hje06XoYHtsvfGXufIeEaqXa7MpzlAm9ZadyMPapU/kzo u5f2QvNf1w/2y53odG2CyO0CVjg6ub5l+0hw23xiBhyVGjDj7oB4TTsRQ63xj9rsiOvRda vpY3+GeiXq5uSj0XiSJPg//0UbfC5Eat8AW+r18HQPxBWgB4gx6pXx9r/51bzlZ8vuJzcx Mv07rwMvSgmnbvGBeB0jtRr/axIfbeBAl3EOlAfz1EyNCEs8go55SqhLcugh3Lb7PAUvru H0yMoWqnO4vd59C7hfnLuPvSR5fyh4sXEQYjgsOC9jjo2Mpzre1J3HEMMI7QjQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umanitoba.ca header.s=selector2 header.b="mk8ef/zM"; dmarc=pass (policy=none) header.from=umanitoba.ca; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; arc=pass ("microsoft.com:s=arcselector9901:i=1") X-Migadu-Spam-Score: -8.27 X-Spam-Score: -8.27 X-Migadu-Queue-Id: EB92C8C5B X-TUID: bcr58GlK6TcQ On Sat, May 13 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>> IMHO, it will be more consistent with other backends to use :results fi= le :file /path/to/executable >> >> No, I don't think this is the way to do it. What happens in this >> case is: >> >> 1. `org-babel-C-execute' creates a named source file, compiles it to the >> named binary file; >> 2. then executes that binary file, producing output; >> 3. that output is inserted into the named binary file, overwriting its >> contents. > > What I am suggesting is making :results file :file /path/to stop after 1 > and produce a link to the binary file. Ok, stopping after 1 seems reasonable when the code block is meant to produce just the executable. But, your suggestion would mean that the code block can *only* produce an executable file. Maybe that is ok, but since the current semantics allow something like #+begin_src C++ :includes :results file :file ./result= s.csv using namespace std; for(int i=3D0; i<10; i++){ cout << i << "," << i*i << endl; } #+end_src so I am not sure that we should break that. On the other hand, I don't see any sense in producing a link to the binary file. Org can't do anything with that link, so the user would need to write something like ":results file :file /path/to :wrap comment". That is why I would prefer something like a :bin-file header. Leo=