From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EI+OHawTYmQ6SgEASxT56A (envelope-from ) for ; Mon, 15 May 2023 13:12:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ODx4HawTYmQNOwAA9RJhRA (envelope-from ) for ; Mon, 15 May 2023 13:12:44 +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 31849BC36 for ; Mon, 15 May 2023 13:12:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyW7O-00068h-EO; Mon, 15 May 2023 07:11:54 -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 1pyW7L-00067F-LM for emacs-orgmode@gnu.org; Mon, 15 May 2023 07:11:52 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pyW7F-0000Hc-3j for emacs-orgmode@gnu.org; Mon, 15 May 2023 07:11:50 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7FBF7240029 for ; Mon, 15 May 2023 13:11:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1684149102; bh=gwd9H+uUDQ47g+Jooi+BhCMuoSeIrBSm6J+MSrXSG/o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=dTBYNeqHxnzhD54p7o2QLbdDxP3W52qkAArwMrUj+wcv6BzBRps2LCdAY8QHWMcxZ WVY5mxxDWZvjom/sjczLsriyhkvbykiTTjII56hf806ZNqTKe5Us65x7RecLRDU87m oLmwMAg1PNCvLacOg+o2Ifh5NX28MAZ9BtSVypZSucTXHioKP7viL9gZgc8EVYTTWv 00z5Hp9wISDxR0Uc/OoDx5VPC2lL0RBarpeXV9ADvwdtRTs7byJJhi2jVd06vOtFhM xAyxh+a08CxVfGRYkMt4D6L3co8wdbV6mSqquGYX3gAkyqMjHRcne2eUAk8bjwbWAi BGvX2Gmdo5Ipw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QKcBf2pDgz9rxj; Mon, 15 May 2023 13:11:38 +0200 (CEST) From: Ihor Radchenko To: Leo Butler Cc: Org Mode Mailing List Subject: Re: [RFC/PATCH] naming src/bin files in ob-C.el In-Reply-To: <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> <878rdqd5tc.fsf@t14.reltub.ca> Date: Mon, 15 May 2023 11:15:04 +0000 Message-ID: <87pm71hmmf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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-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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684149164; a=rsa-sha256; cv=none; b=ter6I0rXVY8RpeyjSNKG94JRWUN/nMLFf8IbPkpERCS7UL+I/wEx2sUKJUHhdxWvZ7yhQB X5i4NxMy9WrMiOf6XqFqH+DUgQ0Dck0P8hK+w7E47JbAfdKlTLfkuH0RZEe8VyCqRYyanR ka6KmeObYwp4SmP62kVeKcGb2Yttbtdpz8+rNPUvni6iWXa3PBK6GaeGZDCFtlWGEHr0hc tuPiqIoWyjaEjHFjHgDRmX1gIPocOyjVtHZAv5ydze7XOqCH2k4ITW15T16lDVgCSepD2A DBHgkDjGnzGW6Gbp8JQR7rqUFSSnDmrChUVzJpPV19jlawWspjQoSyXVTBC5nw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dTBYNeqH; dmarc=pass (policy=none) header.from=posteo.net; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684149164; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AHRcjmoG0wdNNykw4DIR/mUy78ibtj6e+l4OtGzlz4Y=; b=QbbqtBgv0gbwFH+IO/UT46cft45fhN035pVt+9D29Gvbb0rrFroj13LIUrykOCoYCfU/ag wxaapRwqsMarngC2u4HCa1IatW2K9dn/tl/ahS9UTKXupNdbdHbZx9udjHdgBVRcbfw+Vk fjolSctmhfi64LDtWgRB96QbdJlJBspO999f+evjrx/ZKWFzIFkeYCyVTTmCJyCeh4jVIr 1cLSqJlJS4DF4EgGAnii4uRD43pLHRHypmX3er4WGqeF32iUa1x+CNHzg1MdWYO9cT9uqw MsGg/O22Uwel7tSgpOv8SmY3lCkoD6dmzHsVLmlAy2eY/S86yE6x1vG0oyKzFg== X-Migadu-Spam-Score: -8.17 X-Spam-Score: -8.17 X-Migadu-Queue-Id: 31849BC36 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dTBYNeqH; dmarc=pass (policy=none) header.from=posteo.net; 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" X-TUID: T5/Af4mTeGJD Leo Butler writes: > 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 ./results.csv > using namespace std; > for(int i=0; i<10; i++){ cout << i << "," << i*i << endl; } > #+end_src > > so I am not sure that we should break that. Fair point. > 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. I am not sure how I feel about such side effects of evaluation. Is there any other babel backend that is doing something similar? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at