From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Ideal performance of ELisp (was: Why tree-sitter instead of Semantic? (was Re: CC Mode with font-lock-maximum-decoration 2)) Date: Sat, 13 Aug 2022 12:39:53 +0800 Message-ID: <875yiw92p2.fsf@localhost> References: <83o7wuva9o.fsf@gnu.org> <83mtceupbx.fsf@gnu.org> <83lerxvfnu.fsf@gnu.org> <838rnxvdcq.fsf@gnu.org> <83r11ptksn.fsf@gnu.org> <83a68dti6w.fsf@gnu.org> <874jykzvx9.fsf@yahoo.com> <83fsi4sttn.fsf@gnu.org> <838rnws5c7.fsf@gnu.org> <838rntocb8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23785"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Lynn Winebarger , luangruo@yahoo.com, acm@muc.de, emacs-devel@gnu.org, casouri@gmail.com To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 13 06:39:47 2022 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 1oMiw7-0005wv-Df for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Aug 2022 06:39:47 +0200 Original-Received: from localhost ([::1]:46100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMiw6-000050-7H for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Aug 2022 00:39:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMivH-0007qf-7L for emacs-devel@gnu.org; Sat, 13 Aug 2022 00:38:55 -0400 Original-Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:46964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMivF-0005KJ-Hw; Sat, 13 Aug 2022 00:38:54 -0400 Original-Received: by mail-pf1-x431.google.com with SMTP id 130so2532316pfv.13; Fri, 12 Aug 2022 21:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=CxUsSkpVG4KO+ouSWP/mtTODH18Wm6S9pePyMxNrU94=; b=it172v4o/Y5XTnhVW6lGpUA90kpiARdF/LaiUh6dx+nV5TPsekvtxFwD2vhZacIk3Z sREOU9N6ODORdgJEj+HRL6lhcHMQymJb/dFxhrZVdGmQzydyw317nVdFp8uHxuv8XVtp mJeI8dwgVO7JGhc5kCJZiYMlhagr9bXvfBxRnLnWIZNoLqH/FpmJW4jnSDqWeLYfWSqq c1SobB5wL3Uf6Sd7IzKgH8n0CySKVNPo6fS7rfvL9cLY56rs5MCPCa09nSgq4E6SefyM 466V2TrT53WUeTeToxuc9B4tEognTu6KAOK7gYzU1Scsc9iAO2PjRSUkT6uY+WL9YV+y tSgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=CxUsSkpVG4KO+ouSWP/mtTODH18Wm6S9pePyMxNrU94=; b=LGRKEYZDI8643eEPu5ppgkXYKteZqF94fLO/5vTXvEtzpVbn/pcS81ry+Avv2Hn5Lf 91QVe5Af4yzSAF1GilLO39cBycpPepUE6N94Fq7Ryfq2he4MMwwh7R4Za8uGGgHiL7l/ U7G3vKauYQx6bTQ2W6cFgff3iYMII3/MozpCfebybBqzQVnOcSAICnHtgfp09xXmgkIp Jz2rDMSfEWtL4NV7KuoYcKGaOgZ9VyCCX3kVIqXdghOrWbn5aKsOCs4BP3K2/ByLfjTj LCuAtoLLfAbIPXqhyXx4Ux2NxUyge6UgCQ3+RKup5XuY426vjtOuphu8jG0mIKfOaquV lRIQ== X-Gm-Message-State: ACgBeo20vQeEacmtMArjQNvNJmeg3jgp8OS5J1MFffkaYXgwM6VOOavp qHXugijm5vWRA6OYQdb8r8k= X-Google-Smtp-Source: AA6agR4u7X+1OgD1RaESznZpvVKYUKhUw7/o5vuLd0rNsXnih0lhbFxA6zdQ+mP/kQT8TsTno75njQ== X-Received: by 2002:a05:6a00:2290:b0:52f:9293:afe6 with SMTP id f16-20020a056a00229000b0052f9293afe6mr7026073pfe.17.1660365531351; Fri, 12 Aug 2022 21:38:51 -0700 (PDT) Original-Received: from localhost ([2409:8a70:2bf:80b0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id n186-20020a6227c3000000b0052ce1737ee1sm2526298pfn.37.2022.08.12.21.38.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 21:38:50 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=yantar92@gmail.com; helo=mail-pf1-x431.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-devel@gnu.org X-Mailman-Version: 2.1.29 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:293400 Archived-At: Stefan Monnier writes: >> ELisp code cannot match the speed of optimized C code. > > I suspect it could, to some extent, in theory. Getting there would > require a fair bit more work, probably using a different compilation > strategy than the AOT compiler we have now. Could it be possible to embed C snippets into lisp functions directly? Similar to assembler snippets in C. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92