From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: On elisp running native - Update 11 Date: Tue, 18 Aug 2020 07:13:56 +0200 Message-ID: References: <83imlwl9vm.fsf@gnu.org> <83o8uegykm.fsf@gnu.org> <74dd94a9-28cb-a5fd-dbc7-ab21009834ad@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34306"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , Stefan Monnier , rms@gnu.org, Andrea Corallo To: Andrea Corallo via "Emacs development discussions." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 18 07:14:40 2020 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 1k7txH-0008pY-AR for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Aug 2020 07:14:39 +0200 Original-Received: from localhost ([::1]:49272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7txG-0004G3-6I for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Aug 2020 01:14:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7twk-0003pO-UG for emacs-devel@gnu.org; Tue, 18 Aug 2020 01:14:06 -0400 Original-Received: from mail-am7eur06olkn2062.outbound.protection.outlook.com ([40.92.16.62]:37312 helo=EUR06-AM7-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 1k7twh-00055R-Eq; Tue, 18 Aug 2020 01:14:06 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fERMyUeJuUPwpLCQK0IEroFo9oSp+++LJIogrjF36IE+nApIbW1y/K341hwATSXfyBEs/0EZc3wgB7yECVBwceZ0uMcaO1KQp3XE7GKixxdG7ejJyOwZdULizt+i++FsT3hKyzWyiygFZ5MraU+WlPItN83diI38iAqlG7TuIV/gbRBTrg0Do1B32U/pCjOYLKvIS8fJq+Uyjul5SrblkRSKOto73auIkRgj/V9dXm3p/I1LERnMtfxXQpdvVjg5XGxXIL1v9Tl1TwN3WqEii/77Oy3kp9pfXFBLYtEAjhplI00xLlVJV9bPE2SkuoO1h5ypNEAcewzwl+Mb1axGOw== 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-SenderADCheck; bh=dyVCPdAXFqYRqa2kmwcN9zxXbRsMEoC4/MpyCKghwfA=; b=IHmKf+TuUEllUHSDBP8jvbGsdcIq1aWK3hltdfKZwoftg5/37B+iB32D4yn4/2g+C8RVBT20Z9DCuGuhdU2I95N8ALGUnLziCZTGT/CkxCiWUt3EAkiu1hBPtovLn9Av9wNAfLNyScd3en//eQ5+lWactHTVy8WZRCyW1hA0x7hBicE8ZB4Ztf5kf5KBMvxpwODETPE8X1HhEn32nAUt2epwAKlWebWbXOZu8P7C0Ful5WjIsmltDFWFddb9sfJvuTWEwIyqhzhNM3trhs/3BNMY4QSNr+5qsWECdkwJyAFcAcnK6AYHp6rMMU+CRS39alsLftyF/jGKxGjPZgjxfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dyVCPdAXFqYRqa2kmwcN9zxXbRsMEoC4/MpyCKghwfA=; b=XveZTygFDfhxDVhweptlc7fKOuvS4jcE+IhBeTY2H1d+lxSvavVgbC79KqWh02+Np1XvH3jOj6rHRKzRTozZRAP3hdekkRxCS7dScj0Gr0ofpejr0IpY5iczOn36tqY76C2pF7pr/uLatP+yXWttfvkKgTbyoxVoq4kQl6Pf4OPxFcBHvjLC22rHUx+cwbU2gj/nP/YnHwSNHF8xN3yvfAX9U3E4MK+cexbIeOznu427chY8yMxLrRJFY/Gs/oalGSkEVt+DaG5I3QoMtX2D9rr9xxNtKTBxwd4Bt80Vq1YhJNXXv4F7ZckyXfcZ8IWmgUUjGzHiq5i48xVp1dR+fw== Original-Received: from AM7EUR06FT059.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::44) by AM7EUR06HT009.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.16; Tue, 18 Aug 2020 05:13:58 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:fc36::4a) by AM7EUR06FT059.mail.protection.outlook.com (2a01:111:e400:fc36::124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.16 via Frontend Transport; Tue, 18 Aug 2020 05:13:58 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:6D567746A3792A2655451148B84CF306B202E3DF8FA83622E0398F1A74A6A347; UpperCasedChecksum:D9887D69890AC43694199EAC6CD1DD1D03EB13896714CA324ED45B040ACDF948; SizeAsReceived:8184; Count:47 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::b547:51cd:16c5:4487]) by VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::b547:51cd:16c5:4487%7]) with mapi id 15.20.3283.028; Tue, 18 Aug 2020 05:13:58 +0000 In-Reply-To: (Andrea Corallo via's message of "Mon, 17 Aug 2020 18:43:50 +0000") X-ClientProxiedBy: AM5PR1001CA0021.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:2::34) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87tux05yej.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM5PR1001CA0021.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:2::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.16 via Frontend Transport; Tue, 18 Aug 2020 05:13:57 +0000 X-Microsoft-Original-Message-ID: <87tux05yej.fsf@live.com> X-TMN: [g4tNJ2Er/0OelRhrtIE6LNyzqLPd1IC7] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: eadbeeeb-6b12-4ef1-46a0-08d84335827a X-MS-TrafficTypeDiagnostic: AM7EUR06HT009: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: URGxPhdg0uVZa2ZXs0vLjBCC55is56q0DSXgus4E4l/ilNyKwfzB6lrgNoaccG1gPf92f2o0s272hcX4zOWJWfD/OQmaOkfITPuN52wOE3yUfIubbi8sA2CLhwATKoTUQUZ8VonoXFngnkFFL8Dqgc//AdTxcLc0eveU2gjpqGViK28hp7hS61mO9EyDdSZXISB1SfgMxGDgbk4cuQlZfGW0Dvv37j3MOJXaGaGTbi5qFNFZpF1ecdsJ/Q6y9uqn X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR06MB4526.eurprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:; DIR:OUT; SFP:1901; X-MS-Exchange-AntiSpam-MessageData: s4CsXc8GARBandVF4AlOHPrWbqc1qMsqNIgZQTm+5Fz6FUmkSquqdcsh1JOqFgy8RcSgAly34nYGoaunXRxvaA/NPIF8vgnNqzm8+fxWJQDFSgXLTdRj/c9M6KxCJfCPWvXELWqdxbc5vQW+d54QSg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: eadbeeeb-6b12-4ef1-46a0-08d84335827a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2020 05:13:58.1400 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM7EUR06FT059.eop-eur06.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7EUR06HT009 Received-SPF: pass client-ip=40.92.16.62; envelope-from=arthur.miller@live.com; helo=EUR06-AM7-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/18 01:14:00 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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:253929 Archived-At: Andrea Corallo via "Emacs development discussions." writes: > Hi all, > > I've pushed the branch reorganizing the layout of the .eln files and the > load and compilation triggering mechanism. > > Works for me, hope it does not introduce too much breakage. > > I tried to summarize how it works now on my usual dev log page > http://akrl.sdf.org/gccemacs.html Hi Andrea; Thanks for great work, native compiler is really awesome and works for the most part great, have being using it since you posted first update and it works for the most part really well. I have noticed really big difference since few weeks ago when I compiled both Emacs and elpa folder to native. I have some questions about this last update: "Deferred compilation is now enabled by default, therefore is not anymore necessary to set comp-deferred-compilation manually." Can I still compile everything to native "up-front", without need to wait for deffered compilation to kick in? It does not take so much time for me to do it, so I prefer to do it all in advance. "When a .elc file is being loaded if a suitable .eln file is found in one of the eln-cache directories this is loaded instead. Otherwise the file is compiled asyncronously and its definitions are swapped once finished with that. I've removed .eln from load-suffixes as loading native code is not supposed to be manually done by the user. This has also the positive side effect to reduce the number of files we search for while performing a load." > Also having now some more infrastructure on how and where to place .eln > files should be easier to tackle the advised primitives topic for which > I plan to generate some code. Will there ever be possible for emacs to check if natively compiled file is older then .el (source file) and do compilation (el->elc->eln) automatically so we don't have to waste disk space and keep around .elc files? Or did I missunderstand how is is supposed to work? I would really prefer to see .eln as "equal" to .elc; and as there is a 'some-file.el' and 'some-file.elc' to see 'some-file.eln' and .eln to replace .elc as compiled .el file. > > Thanks! Thank you for the great work!