From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Floating-point constant folding in Emacs byte compiler Date: Mon, 2 Apr 2018 06:37:40 -0700 (PDT) Message-ID: References: <<2ce39e5c-cd1b-65d6-b125-719caad67932@cs.ucla.edu> <83vadmgfbz.fsf@gnu.org>> <<87d0zr2n1u.fsf@gmail.com> <83h8p2g99p.fsf@gnu.org> <87370m3k4y.fsf@gmail.com>> <<838taeg6z5.fsf@gnu.org> <7a49cbdf-f2c3-0803-2ee8-3d9f55e405a5@cs.ucla.edu> <7a4f10ec-c1b9-953d-7a95-b2f1ff762735@cs.ucla.edu> > <<83y3i568i0.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1522676161 21713 195.159.176.226 (2 Apr 2018 13:36:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2018 13:36:01 +0000 (UTC) Cc: rpluim@gmail.com, eggert@cs.ucla.edu, pipcet@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii , Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 02 15:35:56 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f2zcp-0005VS-IN for ged-emacs-devel@m.gmane.org; Mon, 02 Apr 2018 15:35:55 +0200 Original-Received: from localhost ([::1]:35520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2zes-0000mG-Te for ged-emacs-devel@m.gmane.org; Mon, 02 Apr 2018 09:38:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2zem-0000ly-Ct for emacs-devel@gnu.org; Mon, 02 Apr 2018 09:37:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f2zel-0003CU-Ij for emacs-devel@gnu.org; Mon, 02 Apr 2018 09:37:56 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:59944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f2zei-000390-Aw; Mon, 02 Apr 2018 09:37:52 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w32DU3Nm007902; Mon, 2 Apr 2018 13:37:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=TfZ27OcV/QfZGAgl3nVtYr68elASc1tcDc651alM7Dk=; b=UoRCvTkSTrc/4ucuw8LKFsa9OyOcQpaMDodsswpPegfypZkse986e+qLeGFkZ2K4MF6r E7k6YI15IftnRa7QwGKZAnU9znNs1PdqgTADd51Qi3sEook8XNYuG5hUp+f1+I234JsH SUZi23SpOyyT/yOInl8EjrRJFOGnI6Aewz0JGsyrMrqoBjj06Tsq5PSJbkoV5RuqrWM/ 0oUBlycYoMBb+8usFPRKdmjgZnoEKVb1FhJHndzEqBlEt8+We/mnsz24MjB0z9mQL0ts hqaL46GgX7SDZQBxLJpNvizScMoROFm2tVlAR0Gsgp/F9hTQ/8utjNHT2NYxkHa2cPyk dw== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2h3nf480yq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Apr 2018 13:37:43 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w32DbfLj027792 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 2 Apr 2018 13:37:42 GMT Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w32DbfAA004164; Mon, 2 Apr 2018 13:37:41 GMT In-Reply-To: <<83y3i568i0.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4666.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8850 signatures=668697 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=627 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804020149 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.78 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224242 Archived-At: (Apologies for not following this thread.) Would it be possible for a user or Lisp code to be able to specify that it does not want the byte compiler to perform such floating-point optimization, in order to provide more platform-independence? Many uses of Emacs Lisp and C code don't really need such optimization, I would think. Couldn't the byte compiler be made to respect a user (or Lisp-code) choice here?