From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: For text processing, which is more powerful, emacs or perl? Date: Sun, 20 Dec 2020 09:42:40 +0800 Message-ID: References: <87tushbawm.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9341"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 20 02:43:55 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1kqnlL-0002Hz-Ft for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Dec 2020 02:43:55 +0100 Original-Received: from localhost ([::1]:49736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqnlK-0006YV-GU for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 20:43:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqnkQ-0006YG-0j for help-gnu-emacs@gnu.org; Sat, 19 Dec 2020 20:42:58 -0500 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:35228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqnkM-00088n-LE for help-gnu-emacs@gnu.org; Sat, 19 Dec 2020 20:42:57 -0500 Original-Received: by mail-lf1-x12e.google.com with SMTP id h22so5768300lfu.2 for ; Sat, 19 Dec 2020 17:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=NbzgADVHU4juuvvnoLdb7n5SpzEWXQPTIieBadvnrh8=; b=KJPRXisPysEbpXk319ArdWSOh8mpLL6VZWhdEHoxE6EimAUE8culnXFFuo4g8qnpxm mfCdDDR2uAhx4Ug22X1A56uQcEozSUjNryJqbB/FNNVBik0tL1GnaZ81AYLYZIQcCcxe ocr7YjZS69YWoyoyyxmzd7g74awZpoDSMD4xrq0Vw6w22bSqu17XxnrZsR0YLwS7oBVM 1rzYl5s6NjDu9NEHSl3n+/MZixqd4FhdKc8LGYs5i0555uyYLeED30VwJjp6IAB2sOxD MCdWo86BdRW35gmnUFayOVG6yyDhC2s05Tm7kYzRIamSrMIuBnppr7L1iO0ikNe3P9Uk pL1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=NbzgADVHU4juuvvnoLdb7n5SpzEWXQPTIieBadvnrh8=; b=l9pNdbwubYSJvxUf63jcmnfK41muhkr2rp4vDwyLK8i6J2xuOjfyztXJQAonSDuN2g wqZDaT8Ll5TZVZO5kHu50kmSykm/ZzKkkwxIiwma04/Q4mFmHfzOgClcuHfH8maYXN+z ckH0BWrbs/9RQfiBXuUOm8iBZZcEibLe2jm7WH1eA3DMYYPJtTMXgR/AlNmEubE4A7j8 M4mRRXdezunZD+AAJee8XVxaj/NLYFqKXpa7EwGsUnyL9YhjP7b6swWg/0mZdazOalwT WFiu4quaqJA5yW2JnndfvKT3PosUk/BrCcDFJq2gRNp5PbPT9f9RRBY5+IJAWcaMxebv qsvQ== X-Gm-Message-State: AOAM531w6+6m07CyAFNk6+4pPKA6Tj5/dzL6ZnV/9vcOarEtXzDljz2L 0cHZtew7XqVgG9iOuLZwmhDddwD7k9UvQKOTKQQ= X-Google-Smtp-Source: ABdhPJy1qrLYQ+nluL/DQpJCJASEeYGt4viB0RzCGVaZfLZsmE8YvZUGzbFoyT+OMdierDjzJbXr5zq0alsxdYtGB/w= X-Received: by 2002:a2e:5756:: with SMTP id r22mr4920772ljd.481.1608428572781; Sat, 19 Dec 2020 17:42:52 -0800 (PST) In-Reply-To: <87tushbawm.fsf@zoho.eu> Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126589 Archived-At: On Sun, Dec 20, 2020 at 8:04 AM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Jean Louis wrote: > > > CPAN and Perl are not obsolete, not at all > > Today most people will turn to Python instead of Perl for > solving a general task. Development in Python is very fast and > the code is to the untrained eye easier to read than Perl code > which has a more cryptic and esoteric style. > > But that doesn't mean Perl is obsolete and people will still > use it for many years to come. > > For Emacs there should be many alternatives and packages that > deal with Perl code. `perl-mode' is built-in (defined in > perl-mode.el.gz), you get that when you open a .pl file. > > Interestingly, while Perl feels old, and Python pretty new, > the difference is only 4 years: Perl is from 1987, > Python 1991. The performance penalty is the largest bottleneck of Python code. It can be seen from the following minimal example: werner@X10DAi:~$ time python3 --version >/dev/null real 0m0.086s user 0m0.065s sys 0m0.027s werner@X10DAi:~$ time perl --version >/dev/null real 0m0.003s user 0m0.003s sys 0m0.000s > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic Vocational and Technical University NO. 552 North Gangtie Road, Xingtai, China