From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Emacs Lisp JIT Compiler Date: Sun, 19 Aug 2018 12:00:51 +0200 Message-ID: <876006fzfw.fsf@gmail.com> References: <87va8ej4o1.fsf@tromey.com> <87mutpiyz6.fsf@tromey.com> <701cd05f423e0c46595a3010f45414d0.squirrel@dancol.org> <520f536b5a603831c9a57a5f6f0978a2.squirrel@dancol.org> <83va8binu8.fsf@gnu.org> <87bma3i26m.fsf@tromey.com> <83in4aigs7.fsf@gnu.org> <86lg94htom.fsf@dod.no> <83in47gbbl.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1534672771 20500 195.159.176.226 (19 Aug 2018 09:59:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2018 09:59:31 +0000 (UTC) Cc: Steinar Bang , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 19 11:59:27 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 1frKUW-00057o-JU for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2018 11:59:24 +0200 Original-Received: from localhost ([::1]:42269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frKWb-0004jN-Bg for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2018 06:01:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frKW3-0004hk-EB for emacs-devel@gnu.org; Sun, 19 Aug 2018 06:01:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frKW0-0002MK-6O for emacs-devel@gnu.org; Sun, 19 Aug 2018 06:00:59 -0400 Original-Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:38164) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frKVz-0002M8-VN; Sun, 19 Aug 2018 06:00:56 -0400 Original-Received: by mail-wm0-x22e.google.com with SMTP id t25-v6so11037584wmi.3; Sun, 19 Aug 2018 03:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=ZKTFdO39ha9WtSV08Z5he+rdjhH3C/ECguNHg+ObHxM=; b=Zstapp6gTMcODvY7yvLCC+gW2oi7KPRQIwjacytzf+VO0hSSKbczpHlh8agKyNaeVb PgFtIgvIL2xFmDaQXfMyCa3R8Zo3S09pMTULLhMMKc6gpzuwepeceJBTB8HmdN+4dHv1 J4emjaseYlSzHT3eHWjcafMr1dXkMWrc8+jR9W0zbzzYO2msw5vtTxdzwLFL/pZpAhFJ 7CsR1aypisOqYLeTOakUWF0kl66BWzAtKA15JVlzVqd7diP5z4wJFq3kQrYlklbQyC5H ddgWG4OABGqyRLnKRugQbqk5oUUtsWT1R3ksr8ndnQZhPY/pLxipPwkyPeLeuDnssqVV 0cGQ== 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:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=ZKTFdO39ha9WtSV08Z5he+rdjhH3C/ECguNHg+ObHxM=; b=GleEoxDStXX5edqvYWcxOCdi99/TQrXpaJ4gQvTFTO+ek8gGZ6FXk8L3EMKpix0tCv zkrWdom1DN274Q+u6U8rc7vgkM57/2dvemOJq7a4wthhuMoSGo5/oMyZ+skztgwGhJl+ uobOJ0fsrGx/V9vIb+gL8Pvg6jvgtsSrcw9ygp9WEom7AwHcKI+5zk4R00DcEGt69SGd K/M6pkJFrC7U0WbR36LZkTx9O/t6sAWKkHljx/PSZKi/kGbRnqrouK94K6B/k3IyioQu X0vQJLvFy/83j9RUiIJfWKXqO9jwRnG5i2ZI92ckD63QbJggOwabnFOQTvT5TaZdw/l1 iHBw== X-Gm-Message-State: AOUpUlGUW0sMMYp8GXaPJGQTcGjWrud1tfRx3BC7tSWKgbnFZoDrzLmC aO1X1JIf3ZIIN9kOGDsJgFENu4zw X-Google-Smtp-Source: AA+uWPxldBQQ2DJSqCoqia9dI+1Sk4Xet856HAGWLTFv7ASVYU8n5wBRevd+RyvRZCGi7xovESzXnw== X-Received: by 2002:a1c:1182:: with SMTP id 124-v6mr23090070wmr.75.1534672854397; Sun, 19 Aug 2018 03:00:54 -0700 (PDT) Original-Received: from rpluim-ubuntu (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id z1-v6sm5920939wmf.5.2018.08.19.03.00.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Aug 2018 03:00:53 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <83in47gbbl.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 18 Aug 2018 14:31:58 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22e 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:228677 Archived-At: Eli Zaretskii writes: >> It could be used ahead-of-time (or whatever the term is), to move emacs >> code currently implemented in C to lisp. > > The intent is to allow Emacs to compile _any_ Lisp into native code. > The main advantage of that is when the Lisp in question didn't come > with the distribution. Because otherwise we could just JIT-compile > everything in advance and be done. > > IOW, what you mention is a one-time feature, mainly useful to Emacs > developers. The drawback I mentioned is for the Emacs users, and > AFAIU the JIT feature mainly targets the users. Unless I=CA=BCve misunderstood, nothing prevents us from doing both: pre-compile all the lisp that ships with emacs to C, and also have a JIT for 'user code'. Personally, a JIT that sometimes gives me a speed increase with a fallback of 'same speed as before' sounds like a big win to me. Robert